WorksheetsCIW Programming Essentials and Logic
Total questions: 25
Worksheet time: 50mins
What is the term for a graphical diagram that uses symbols to represent the steps contained in a program?
Graphing
Flowchart
Pseudocode
Brainstorming
Charles is stuck. He knows that computers use zeros and ones in a sequence to represent data, but he cannot remember the name of this term. His teacher reminds him that it is referred to as:
bisect
decimal
binary
syntax
Study the flow chart shown:
This flowchart provides steps for determining whether a number is even or odd. Which statement should be inserted in the empty rectangle to correctly determine the solution?
Divide the number by 2
Multiply the number by 2
Divide the number by 3
Multiply the number by 3
Which term describes the various characteristics of an object, such as size, color and type?
Argument
Method
Property
Class
Katherine is creating a computer program that will allow the cursor to jump to a different location when the mouse is clicked on a certain image. Which programming component should Katherine use to tell the program what to do when the mouse is clicked on the image?
a class
an event
a parameter
an event handler
Which type of error occurs when a programmer misspells a word or instruction?
Runtime
Logic
Syntax
System
Olivia thinks that her first program code is quite good and that it will run well. She is surprised to learn that the computer, however, is not able to understand the language her code is written in, without first translating it. What is the only language that a computer can understand without needing to be translated?
Assembly Language
High-Level
Application Language
Machine Language
Consider the following:
Input a number
Check to see if the number ends in 0, 2, 4, 6 or 8?
If yes, write "The number is even."
If no, write "The number is odd."
This is an example of which type of control structure?
Sequence
Iteration
Loop
Selection
Which control structure repeats a set of instructions until some condition is met?
Object
Loop
Sequence
Selective
Consider the general problem-solving steps shown:
Which option lists the problem-solving steps in the correct order?
4, 1, 3, 2
2, 1, 4, 3
4, 2, 1, 3
1, 2, 3, 4
Erik is using object-oriented programming to design a game. He has created a Dragon class, and he has used the Dragon class to build two Dragon objects. Which term describes the objects that Erik built using the Dragon class?
Subclasses
Instances
Methods
Occurrences
Which of the following best defines the term "algorithm"?
A way to write programming code in short English phrases to describe the program components
The rules for writing instructions in a specific programming language
A combination of zeroes and ones that represents an instruction to the computer
A set of step-by-step instructions to solve a problem or perform a task
A set of instructions that tells a computer what to do to accomplish a particular task is called:
a computer program.
programming language
an application
software
Which type of programming error causes a program to stop loading or executing?
Syntax
System
Runtime
Logic
Julia has an idea. She wants to use a computer to create a list of daily "to-do" suggestions based on the previous activity on her calendar. To create this, she needs to develop a set of instructions to tell the computer what to-do to accomplish this task. This is known as:
a flowchart
a programming language
a computer program
an algorithm
Devising a plan to solve a problem or perform a task using a set of step-by-step instructions is called:
running a program
interpreting instructions
creating syntax
writing an algorithm
Which term describes the various characteristics of an object, such as size, color and type?
Class
Argument
Method
Property
Which term describes a set of instructions that lists steps that must be followed in a particular order, starting at the beginning and continuing to the end?
Compiled
Assembly
Sequential
Executed
During testing, your development team identified some problems in the first program draft. What is the next step you need to complete?
Test the plan.
Use logic to plan a solution.
Revise the plan until a solution is found.
Review the result of the solution
Which of the following best defines the term "algorithm"?
A way to write programming code in short English phrases to describe the program components
A set of step-by-step instructions to solve a program or perform a task
A combination of zeroes and ones that represents an instruction to the computer
The rules for writing instructions in a specific programming language
Lucy is sharing her program with a student at another school. She is having a video conference with the student and shows a section of code that she is working on. Lucy describes it as the decision control structure. The other student is confused. What other name can this structure be called?
Selection
Object
Loop
Sequence
Rosie has created a computer program, tested it and made revisions. To grade it, her professor runs it and watches the code. What is it called when the computer performs the instructions contained in the program?
Executing
Debugging
Compiling
Assembling
Anna is asked to explain the differences between compiled and interpreted languages in her programming class. Which statement would be her best response?
Interpreted languages usually execute faster than compiled languages.
Compiled languages are translated in batches, whereas interpreted languages are translated entirely before use.
Interpreted languages are translated entirely before use.
Compiled languages usually execute faster than interpreted languages.
Consider the following example algorithm:
1.Set members to 0
2.For each pair of members in the group, add two to members
3.Continue until all members in the group are counted
4.Display members
Which scenario would cause an error in this algorithm?
Three members in the group
Zero members in the group
Two members in the group
Ten members in the group
Basic mathematics taught in elementary school is a base 10 number system (which makes it easy if you are using your fingers). Computers use a different number system, known as:
base 2
base 1
base 8
base 6
