NEW
Font size
WorksheetsPROGRAMMING QUIZZES
Total questions: 66
Worksheet time: 33mins
Interpreter or compiler is used to convert high-level language to low-level language.
TRUE
FALSE
The following are called programming languages except ___________
Oreo
Java
C++
Python
Assembly language programs must be translated into machine instructions, using an ________
Translator
ExecutablesGatherer
Gatherer
Assembler
The following programming languages uses the compilation process except _____
Java
Python
C++
C#
Instructions in _______ are written in 0s and 1.
machine language
high-level language
human language
middle-level
A way of translating source code in which all statements are translated and stored as an executable program, or object program; execution occurs later
Linker
Builder
Interpreter
Compiler
High level language is executed directly without any translation and require very less time for their execution.
TRUE
FALSE
Each class of computer has its own particular machine language
TRUE
FALSE
The Instructions written in 0s and 1s are called source code.
TRUE
FALSE
A programmer writes __________ using a programming language to create programs.
pseudocode
source code
flowchart
object code
Developing a program involves steps similar to any problem-solving task.
TRUE
FALSE
When the program is finalized, free of errors and the logic works, a documentation is prepared
TRUE
FALSE
Even before the software is completed, it needs to be maintained and evaluated regularly
TRUE
FALSE
In maintenance phase, the programming team fixes program errors and updates the software.
TRUE
FALSE
Check the feasibility of implementing the program is part of the requirement analysis.
TRUE
FALSE
Coding is the fourth step in Program Development Cycle.
TRUE
FALSE
During system design, we write the program to solve the given problem using programming languages like C, C++, Java, etc.,
TRUE
FALSE
Determine the input to achieve the desired outputs is part of System Design.
TRUE
FALSE
A type of error that occurs when there is a mistake in a program's source code that results in incorrect or unexpected behavior.
logical error
run-time error
syntax error
semantic error
It is the step-by-step sequence of instructions that describe how data will be processed to produce the desired output.
algorithm
pseudocode
flowchart
procedure
Character is a primitive data structure.
TRUE
FALSE
int
PRIMITIVE DATA STRUCTURE
NON-PRIMITIVE DATA STRUCTURE.
queue
PRIMITIVE DATA STRUCTURE
NON-PRIMITIVE DATA STRUCTURE
stack
PRIMITIVE DATA STRUCTURE
NON-PRIMITIVE DATA STRUCTURE
TRUE/FALSE: Program = Algorithms + Data Structures
TRUE
FALSE
Refer to ADT: What is the data type of the elements that the ADT may accommodate?
string
float
int
char
Abstraction is providing only essential information outside the world.
TRUE
FALSE
heap
LINEAR LIST
NON-LINEAR LIST
linked list
LINEAR LIST
NON-LINEAR LIST
Queue adds anywhere, removes the highest priority
TRUE
FALSE
Refer to ADT: What is the name of the ADT?
ListType
listType
listtype
Listtype
TRUE/FALSE: Refer to ADT: The ADT is HOMOGENEOUS.
TRUE
FALSE
array
LINEAR LIST
NON-LINEAR LIST
Refer to ADT, How many operations can the ADT do?
8
7
6
5
A Tree is unordered lists which use a ‘hash function’ to insert and search.
TRUE
FALSE
A linked list is variable in size.
TRUE
FALSE
Each instruction in the algorithm will describe an action that the computer needs to take.
TRUE
FALSE
The following are characteristics of non-primitive data types, except:
They are derived from primitive data types.
The design of an effective data structure must take operations to be performed in that data structure.
The non-primitive data structures emphasize on structuring of a group of homogeneous data items only.
They are more sophisticated data types.
To produce the boolean values (i.e., true and false) the logical operators and, or and not and the relational operators <, ≤, =, =, ≥ and > are provided.
TRUE
FALSE
Write the algorithm in the ____________ column of the Input-Process-Output (IPO) chart.
Output
anywhere
Input
Processing
Most algorithms end with instruction to display, print, or store the _______ items.
Input
Output
Processing
Sale
In the given pseudocode below, which line is checking if numberCounter has already reached a value of 3?
Line 1 SET numberCounter = 1, sum = 0
Line 2 WHILE numberCounter < =3
Line 3 INPUT number
Line 4 CALCULATE sum := sum + number
Line 5 INCREMENT numberCounter Line
6 ENDWHILE Line
7 PRINT sum
Line 1
Line 4
Line 5
Line 2
Pseudocode is a more plain and human understandable form of algorithm where natural language is also combined with the high-level programming language constructs.
TRUE
FALSE
Problem Specification: Jay-ar wants to determine if the inputted number is a positive number. Which of the following serves as the processing item?
Number > 0
It is a positive number or not.
Number
Most algorithms begin with instruction to enter the input items into the computer
TRUE
FALSE
Use appropriate naming conventions and be consistent in writing pseudocodes.
TRUE
FALSE
Which keyword is used to show your output to a screen or the relevant output device?
INPUT
ENTER
READ
It is a flowchart symbol that denotes a decision to be made
Rectangle
Parallelogram
Diamond
Oval
If the flowchart becomes complex, it is better to use intersection of flow lines.
TRUE
FALSE
Whenever flowchart becomes complex or it spreads over more than one page, it is useful to use connectors to avoid any confusions.
TRUE
FALSE
It is a flowchart symbol that is used as a connector to show a jump from one point int the process flow to another within the same page.
Diamond
Circle
Home plate-shaped pentagon
Oval
It is a flowchart symbol that contains the initial values of variables or variable declaration.
Rectangle
Parallelogram
Diamond
Hexagon
Terminal is the first and last symbols in the flowchart.
TRUE
FALSE
C++ is regarded as a middle-level language because it has a combination of both high-level and low-level language features.
TRUE
FALSE
Decision symbol represent the direction of flow of control and relationship among different symbols of flowchart.
TRUE
FALSE
The following statements are true about C++ except __________.
It is a low-level language.
It supports procedural, object-oriented, and generic programming.
It is case sensitive.
It uses compilation process.
These are names that are given to various elements of a program created by the program.
Tokens
Identifiers
Constants
Keywords
All variables in C++ must be declared prior to their use.
TRUE
FALSE
All are arithmetic operators, except ______
!=
*
%
+
A global may be used in any part of the program.
TRUE
FALSE
The expression x += y is the same as ______.
x =+ y
x == +y
x = x + y
y += x
The special character that indicates a string constant in a Turbo C++ program.
' '
" "
/* */
/ /
The relational operator that can be used to test for equality of two expressions.
==
<>
=
!=
Consider the following program snippet. What will be the output?
int A = 1, B = 2, C = 3, X = 4, Y = 5, Z = 6;
A++; B--; --C;
X = Y++ + --Z;
cout << ++A + Z--;
10
9
11
8
Let a=2, b=5, c=15, d=17: Evaluate the given expression: cout << !((a<b)||(c>d));
1 (TRUE)
Undefined
INVALID
0 (FALSE)
C++ performs mathematical expression based on the order of precedence. Given the expression 3 + (9 – 7) * 5 / 2, which operator will be performed first?
+
-
*
/
