Skip to main content

Introductory Coding Concepts Exam Practice Tests - 655 Verified Questions

Page 1


Introductory Coding Concepts

Exam Practice Tests

Course Introduction

Introductory Coding Concepts is designed to provide students with a foundational understanding of computer programming. This course covers essential coding principles such as variables, data types, control structures, functions, and basic algorithms. Through hands-on activities and problem-solving exercises, students learn how to write, test, and debug simple programs using a beginner-friendly programming language. By the end of the course, learners are equipped with the skills necessary to tackle more advanced programming challenges and have a solid grasp of the logic and structure behind coding.

Recommended Textbook

Starting Out with Programming Logic and Design 3rd Edition by Tony Gaddis

Available Study Resources on Quizplus

15 Chapters

655 Verified Questions

655 Flashcards

Source URL: https://quizplus.com/study-set/1537

Page 2

Chapter 1: Introduction to Computers and Programming

Available Study Resources on Quizplus for this Chatper

48 Verified Questions

48 Flashcards

Source URL: https://quizplus.com/quiz/30362

Sample Questions

Q1) What is the encoding technique called that is used to store negative numbers in the computer's memory?

A)Unicode

B)ASCII

C)Floating-point notation

D)Twos complement

E)None of the above

Answer: D

Q2) Data is not recorded magnetically on a(n)____________,but is encoded as a series of pits on the disk surface.

A)disk drive

B)floppy disk

C)USB drive

D)optical disk

E)None of the above

Answer: D

Q3) RAM is a volatile memory used for temporary storage while a program is running.

A)True

B)False

Answer: True

To view all questions and flashcards with answers, click on the resource link above. Page 3

Chapter 2: Input, processing, and Output

Available Study Resources on Quizplus for this Chatper

48 Verified Questions

48 Flashcards

Source URL: https://quizplus.com/quiz/30363

Sample Questions

Q1) Most programming languages do not automatically print spaces between multiple items that are displayed on the screen.

A)True

B)False

Answer: True

Q2) The process where the programmer steps through each of the program's statements one by one is called _____________.

A)Hand tracing

B)Debug

C)Execute

D)Run

E)Checking

Answer: A

Q3) A sequence of characters that is used as data is called a string in programming.

A)True

B)False

Answer: True

Q4) The word ________________is used to declare a named constant. Answer: Constant

To view all questions and flashcards with answers, click on the resource link above. Page 4

Chapter 3: Modules

Available Study Resources on Quizplus for this Chatper

48 Verified Questions

48 Flashcards

Source URL: https://quizplus.com/quiz/30364

Sample Questions

Q1) Which type of variable is visible to every module and the entire program?

A)Local

B)Pass by value

C)Reference

D)Global

E)Pass by reference

Answer: D

Q2) What phrase is placed in the starting terminal symbol of a module in a flowchart?

A)Start

B)Begin

C)Name of the module

D)Continue

E)Resume Answer: C

Q3) An attempt to pass a non-variable argument into a reference variable parameter will cause an error.

A)True

B)False

Answer: True

To view all questions and flashcards with answers, click on the resource link above.

Page 5

Chapter 4: Decision Structures and Boolean Logic

Available Study Resources on Quizplus for this Chatper

44 Verified Questions

44 Flashcards

Source URL: https://quizplus.com/quiz/30365

Sample Questions

Q1) The _______ symbol indicates that some condition must be tested in a flowchart.

A)Rectangle

B)Oval

C)Parallelogram

D)Square

E)Diamond

Q2) The _________ symbol is used to represent a selection structure in flowcharting.

Q3) The expression with an AND operator ___________ when the expression on its left is false and so it does not evaluate the expression on its right.

Q4) Consider the following statement:

A store is giving a discount of 30% for all purchases of over $100.

Which of the following is not the appropriate structure to use to program the statement?

A)Control

B)Decision

C)Selection

D)Sequence

E)None of the above

Q5) A ____________ expression evaluates as either true or false.

Q6) The _____ operator is best to determine whether a number is outside a range.

To view all questions and flashcards with answers, click on the resource link above.

Chapter 5: Repetition Structures

Available Study Resources on Quizplus for this Chatper

44 Verified Questions

44 Flashcards

Source URL: https://quizplus.com/quiz/30366

Sample Questions

Q1) The following is an example of what type of loop? For k = 7 To maxValue

A)Count-controlled

B)Condition-controlled

C)While D)Do-while

E)Do-until

Q2) The While loop is known as a pretest loop,which means it tests its condition before performing an iteration.

A)True

B)False

Q3) When processing a long list of values with a loop,the program knows it has reached the end of the list when the _________ value is read.

Q4) In a For loop a negative step value is used to __________ the counter variable.

Q5) A While loop repeats infinitely when there is no statement inside the loop body that makes the test condition false.

A)True B)False

Q6) A ______________ structure is commonly known as a loop.

To view all questions and flashcards with answers, click on the resource link above. Page 7

Chapter 6: Functions

Available Study Resources on Quizplus for this Chatper

44 Verified Questions

44 Flashcards

Source URL: https://quizplus.com/quiz/30367

Sample Questions

Q1) The variable r would contain the value ________ after the execution of the following statement.

Declare Integer i = 12

Declare Real r

Set r = toReal (i)

A)12

B)1.2

C)12.0

D)0.12

E)None of the above

Q2) What is the data type of the value returned by the random library function?

A)String

B)Integer

C)Boolean

D)Real

E)None of the above

Q3) A ___________ statement specifies the value that is returned from the function when the function ends.

Q4) The ________ chart is a tool that programmers use when designing functions.

Q5) A function is a group of _________ that perform a specific task.

8

To view all questions and flashcards with answers, click on the resource link above.

Chapter 7: Input Validation

Available Study Resources on Quizplus for this Chatper

44 Verified Questions

44 Flashcards

Source URL: https://quizplus.com/quiz/30368

Sample Questions

Q1) An input validation loop is sometimes called an error handler.

A)True

B)False

Q2) Checking for accuracy of data,even when the user provides the right type of data,is part of input validation.

A)True

B)False

Q3) Which of the following library functions could be used to validate that the correct data type was input for an amount of money?

A)isInteger

B)isString

C)toLower

D)isReal

E)All of the above

Q4) If the user provides bad data as input to a program,the program will correct the data and produce output.

A)True

B)False

Q5) An error trap can be performed by a(n)____________________ validation loop.

To view all questions and flashcards with answers, click on the resource link above. Page 9

Chapter 8: Arrays

Available Study Resources on Quizplus for this Chatper

46 Verified Questions

46 Flashcards

Source URL: https://quizplus.com/quiz/30369

Sample Questions

Q1) A partially filled array is normally used with __________.

A)a library function that performs array insertions

B)an accompanying variable that holds a copy of the last item stored in the array

C)an accompanying integer variable that holds the number of items that are actually stored in the array

D)a warning to the user that some of the elements contain invalid values

E)None of the above

Q2) The storage locations in an array are known as _________________.

Q3) When processing the data in a two-dimensional array,each element has two subscripts.

A)True

B)False

Q4) Every element in an array is assigned a unique number known as a

A)subscript

B)integer

C)character

D)number

E)None of the above

Q5) Arrays are designed to store and process a ________ of data.

10

To view all questions and flashcards with answers, click on the resource link above.

Chapter 9: Sorting and Searching Arrays

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

Source URL: https://quizplus.com/quiz/30370

Sample Questions

Q1) In the swap module,the third variable is declared as a __________ variable.

A)Global

B)Reference

C)Local

D)Constant

E)None of the above

Q2) For an array of n items,the average number of comparisons in a sequential search is _______.

Q3) In the bubble sort algorithm,the two arguments sent into the swap module are

A)array[index] and array[index-1]

B)array[index+1] and array[index-1]

C)array[index-1] and array[index+1]

D)array[index-1] and array[index]

E)None of the above

Q4) When values in an array need to be swapped,the array and the size of the array have to be sent to the swap module.

A)True

B)False

Q5) The bubble sort is limited to arranging data only in acceding order.

Page 11

To view all questions and flashcards with answers, click on the resource link above.

Chapter 10: Files

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

Source URL: https://quizplus.com/quiz/30371

Sample Questions

Q1) The direct access file is also known as a ___________ access file.

Q2) The ________________ usually indicates the type of data stored in the file.

Q3) In general,how many types of files are there?

A)one

B)two

C)three

D)five

E)None of the above

Q4) When writing a program to perform a file operation,there are _________ names that you have to work with in the program's code.

Q5) All types of data files are viewable in a text editor.

A)True

B)False

Q6) The use of a buffer increases the system's performance because writing data to memory is faster than writing to a disk.

A)True

B)False

Q7) When a program performs the task of retrieving data from a file,it is known as __________ data from/to the file.

Page 12

To view all questions and flashcards with answers, click on the resource link above.

Chapter 11: Menu-Driven Programs

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

Source URL: https://quizplus.com/quiz/30372

Sample Questions

Q1) The If-Then-Else If statement can be used as an alternative for performing the user's menu selection.

A)True

B)False

Q2) Which of the following decision structures could be used in a menu-driven program?

A)Case structures

B)If-Then-Else If statements

C)If-Then-Else statements

D)All of the above

E)None of the above

Q3) Any program that allows the user to select an item from a menu should ____________ the user's selection.

A)store

B)validate

C)hide

D)write

E)All of the above

Q4) The ____________ statement is the easiest and most straightforward method to process a user's menu selection.

To view all questions and flashcards with answers, click on the resource link above. Page 13

Chapter 12: Text Processing

Available Study Resources on Quizplus for this Chatper

31 Verified Questions

31 Flashcards

Source URL: https://quizplus.com/quiz/30373

Sample Questions

Q1) In pseudocode you can use the _________ library function to determine whether a character is whitespace.

Q2) In pseudocode you can use the _________ library function to determine whether a character is a numeric digit.

Q3) Assuming the following variable declaration, Declare String str = "ABC" which of the following pseudocode statements displays the last character in the string?

A)Display str[0]

B)Display str[3]

C)Display str[length(str)]

D)Display str[length(str)- 1]

E)None of the above.

Q4) In pseudocode you can use the _________ library function to determine whether a character is lowercase.

Q5) In pseudocode you can use the _________ library function to determine whether a character is an alphabetic letter.

Q6) A ____________ character is a space,a tab,or a newline.

To view all questions and flashcards with answers, click on the resource link above.

Page 14

Chapter 13: Recursion

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

Source URL: https://quizplus.com/quiz/30374

Sample Questions

Q1) The Fibonacci Series is a well-known mathematical problem that is solved recursively.

A)True

B)False

Q2) Comparing the recursive algorithm of a binary search with its counterpart,without recursion,it is much more elegant and easier to understand.

A)True

B)False

Q3) In a recursive call,the computer actions of setting up memory for parameters and local variables and storing the address of the program location where control returns after the module terminates is called ______________.

Q4) Which of the following can be solved with recursion?

A)Finding the greatest common divisor

B)Binary search

C)The Fibonacci Series

D)None of the above

E)All of the above

Q5) If a module has called itself six times,the depth of recursion was ____________.

Q6) When a recursive module calls only itself,it is called a ___________ recursion.

Page 15

To view all questions and flashcards with answers, click on the resource link above.

Chapter 14: Object-Oriented Programming

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

Source URL: https://quizplus.com/quiz/30375

Sample Questions

Q1) When a class variable is assigned the address of an object,it is said that the variable references the object.

A)True

B)False

Q2) The act of declaring a class variable does not actually create an object in memory.

A)True

B)False

Q3) A method that gets a value from a class's field but does not change it is known as a(n)____________ method.

Q4) The variables,arrays,or other data structures that are stored in the object are known as the object's __________.

A)Records

B)Methods

C)Addresses

D)Fields

E)None of the above

Q5) The object's ___________ are the modules and functions of the object.

Q6) Each object that is created from a class is called a(n)_________ of the class.

To view all questions and flashcards with answers, click on the resource link above. Page 16

Chapter 15: Gui Applications and Event-Driven Programming

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

Source URL: https://quizplus.com/quiz/30376

Sample Questions

Q1) When creating a GUI program,the programmer must design the program's windows and all of the text components that appear in them.

A)True

B)False

Q2) Some of the common GUI components are class,object,methods,and fields.

A)True

B)False

Q3) If an event occurs and there is no event handler to respond to that event,the event is ignored.

A)True

B)False

Q4) What is the first thing you should do before constructing a window in the IDE?

A)Draw a sketch of the window

B)Create flowchart of the window's events

C)Name each of the components

D)All of the above

E)None of the above

Q5) The color,size,and position of a component are known as the _________________ of the component.

Page 17

Q6) The acronym IDE stands for _____________________________.

To view all questions and flashcards with answers, click on the resource link above.

Page 18

Turn static files into dynamic content formats.

Create a flipbook
Introductory Coding Concepts Exam Practice Tests - 655 Verified Questions by Quizplus - Issuu