Font size
WorksheetsQUIZ1
Total questions: 86
Worksheet time: 39mins
Which of the following is a correct block comment?
*/ Comments */
// Comment
/* Comment */
{ Comment }
Program
int main()
{
cout<<"Hi everybody";
return 0;
}
A program written in a high language is called a ____________
object
source code
variable
constant
______ is used to input value from the user.
cin>>
cin<<
<cin>
Which of these is used to output text in C++?
cprint
cdisplay
cout
clout
Which of these is the symbol used with the output statement to begin the output stream?
<<
>>
((
[[
Where do we write the codes?
1
2
3
4
What is the output of this program?
int main()
{
cout<<"Hi everybody";
return 0;
}
"Hi everybody"
Hi everybody"
Hi everybody
"Hi everybody
A logic error
is when the program is coded correctly, but an error occurs because of a problem while the program is being executed (not because of a mistake in the code)
is when incorrect words or punctuation is used, or when correct words and punctuation are used in the wrong order
is when the stars don't line up properly and a cosmic ray changes a true value to a false value
is when the program is coded incorrectly to produce an incorrect result, but with correct statements. The only way to know there was an error is to notice that the result is wrong
What is X?
Implementation Phase
Coding Phase
Writing Phase
Development Phase
The statement above refer to ........................ phase
The following figure is an example of simple flow chart.
Flow chart is used in _____________ phase.
analysis
design
coding
testing
The spelling and grammar of a programming language
diction
syntax
vocabulary
word wall
Which level of a programming language is Machine Code?
Low
High
Which level of a programming language is Assembly Code?
Low
High
Which level would create the easiest code for humans to understand?
Low
Assembly
High
Python is an example of a High Level programming language
True
False
Which generation?
Machine Code - Low
Assembly Code - Low
High Level
Which generation?
Machine Code - Low
Assembly Code - Low
High Level
Which generation?
Machine Code - Low
Assembly Code - Low
High Level
What is an Algorithm?
A picture that you use to make a program
A precise set of instructions
Shapes and symbols connected together
Breaking a problem down into smaller tasks
This is a graphical representation of an algorithm
Computer Program
Binary Diagram
Decomposition
Flowchart
Haruto is a high school student who has never taken a programming course.
He wants a programming language that is easy to learn, that contains English words and phrases, as well as easily recognized symbols.
The counselor recommends a Javascript course.
What type of programming language is this?
Machine language
Assembly language
Application language
High-level language
What is the only language that a computer can understand?
Application
Machine
Assembly
High-level
The set of rules that must be followed when writing program instructions for a specific programming language is called:
executing
machine language.
binary.
syntax
Assembly is a...
high level programming language
low level programming language
Machine code is a...
high level programming language
low level programming language
What is the only thing that computers understand?
Machine Code
Low Level Language
High Level Language
Algorithm
Before a computer can understand a program it must be...
Translated into its machine code.
Translated into a high level language.
Translated into a low level language.
Java, Python, PHP, and C++ are examples of
low level languages
Graphic arts languages
medium level languages
high level languages
What is machine code?
A programming language that a computer understands
The make and model of a computer
The serial number of a computer
Which of these is the set of rules that must be followed when typing code using a programming language?
Syntax
Value
Expression
Statement
Which type of error causes a program to produce incorrect results, such as the sum of two values instead of the difference of two values?
Syntax
Logic
Runtime
System
Which type of error is usually identified by the compiler or interpreter?
Runtime
Syntax
System
Logic
Which tool used to plan computer programs is an English-like representation of program steps?
Flowchart
Debugging
Pseudocode
Assembly
There are _____ types of programming errors.
2
5
4
3
What type of error occurs while the program is running?
Syntax
Logic
Runtime
System
Uses Mnemonics as command words (for example LDA, STA and ADD)
High level code
Low level code
Assembly language
The physical parts of a computer system are called?
Hardware
Software
Hard copy
Soft copy
An input device is defined as . . .
a device that sends data to the end user.
a device that sends data to the computer.
a device that creates soft copy.
a device that creates hard copy.
An output device is defined as . . .
a device used to display or print data from a computer system.
a device used to send data to a computer system.
a device used to connect all components of a computer system.
a device used to power up a computer system.
What is the only function all C++ programs must contain?
start()
system()
main()
program()
What punctuation is used to signal the beginning and end of code blocks?
{ }
-> and <-
BEGIN and END
( and )
Which of the following is a correct comment?
*/ Comments */
** Comment **
/* Comment */
{ Comment }
