wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PROGRAMMING QUIZZES

Total questions: 66

Worksheet time: 33mins

Name
Class
Date
1.

Interpreter or compiler is used to convert high-level language to low-level language.

a)

TRUE

b)

FALSE

2.

The following are called programming languages except ___________

a)

Oreo

b)

Java

c)

C++

d)

Python

3.

Assembly language programs must be translated into machine instructions, using an ________

a)

Translator

b)

ExecutablesGatherer

c)

Gatherer

d)

Assembler

4.

The following programming languages uses the compilation process except _____

a)

Java

b)

Python

c)

C++

d)

C#

5.

Instructions in _______ are written in 0s and 1.

a)

machine language

b)

high-level language

c)

human language

d)

middle-level

6.

A way of translating source code in which all statements are translated and stored as an executable program, or object program; execution occurs later

a)

Linker

b)

Builder

c)

Interpreter

d)

Compiler

7.

High level language is executed directly without any translation and require very less time for their execution.

a)

TRUE

b)

FALSE

8.

Each class of computer has its own particular machine language

a)

TRUE

b)

FALSE

9.

The Instructions written in 0s and 1s are called source code.

a)

TRUE

b)

FALSE

10.

A programmer writes __________ using a programming language to create programs.

a)

pseudocode

b)

source code

c)

flowchart

d)

object code

11.

Developing a program involves steps similar to any problem-solving task.

a)

TRUE

b)

FALSE

12.

When the program is finalized, free of errors and the logic works, a documentation is prepared

a)

TRUE

b)

FALSE

13.

Even before the software is completed, it needs to be maintained and evaluated regularly

a)

TRUE

b)

FALSE

14.

In maintenance phase, the programming team fixes program errors and updates the software.

a)

TRUE

b)

FALSE

15.

Check the feasibility of implementing the program is part of the requirement analysis.

a)

TRUE

b)

FALSE

16.

Coding is the fourth step in Program Development Cycle.

a)

TRUE

b)

FALSE

17.

During system design, we write the program to solve the given problem using programming languages like C, C++, Java, etc.,

a)

TRUE

b)

FALSE

18.

Determine the input to achieve the desired outputs is part of System Design.

a)

TRUE

b)

FALSE

19.

A type of error that occurs when there is a mistake in a program's source code that results in incorrect or unexpected behavior.

a)

logical error

b)

run-time error

c)

syntax error

d)

semantic error

20.

It is the step-by-step sequence of instructions that describe how data will be processed to produce the desired output.

a)

algorithm

b)

pseudocode

c)

flowchart

d)

procedure

21.

Character is a primitive data structure.

a)

TRUE

b)

FALSE

22.

int

a)

PRIMITIVE DATA STRUCTURE

b)

NON-PRIMITIVE DATA STRUCTURE.

23.

queue

a)

PRIMITIVE DATA STRUCTURE

b)

NON-PRIMITIVE DATA STRUCTURE

24.

stack

a)

PRIMITIVE DATA STRUCTURE

b)

NON-PRIMITIVE DATA STRUCTURE

25.

TRUE/FALSE: Program = Algorithms + Data Structures

a)

TRUE

b)

FALSE

26.

Refer to ADT: What is the data type of the elements that the ADT may accommodate?

a)

string

b)

float

c)

int

d)

char

27.

Abstraction is providing only essential information outside the world.

a)

TRUE

b)

FALSE

28.

heap

a)

LINEAR LIST

b)

NON-LINEAR LIST

29.

linked list

a)

LINEAR LIST

b)

NON-LINEAR LIST

30.

Queue adds anywhere, removes the highest priority

a)

TRUE

b)

FALSE

31.

Refer to ADT: What is the name of the ADT?

a)

ListType

b)

listType

c)

listtype

d)

Listtype

32.

TRUE/FALSE: Refer to ADT: The ADT is HOMOGENEOUS.

a)

TRUE

b)

FALSE

33.

array

a)

LINEAR LIST

b)

NON-LINEAR LIST

34.

Refer to ADT, How many operations can the ADT do?

a)

8

b)

7

c)

6

d)

5

35.

A Tree is unordered lists which use a ‘hash function’ to insert and search.

a)

TRUE

b)

FALSE

36.

A linked list is variable in size.

a)

TRUE

b)

FALSE

37.

Each instruction in the algorithm will describe an action that the computer needs to take.

a)

TRUE

b)

FALSE

38.

The following are characteristics of non-primitive data types, except:

a)

They are derived from primitive data types.

b)

The design of an effective data structure must take operations to be performed in that data structure.

c)

The non-primitive data structures emphasize on structuring of a group of homogeneous data items only.

d)

They are more sophisticated data types.

39.

To produce the boolean values (i.e., true and false) the logical operators and, or and not and the relational operators <, ≤, =, =, ≥ and > are provided.

a)

TRUE

b)

FALSE

40.

Write the algorithm in the ____________ column of the Input-Process-Output (IPO) chart.

a)

Output

b)

anywhere

c)

Input

d)

Processing

41.

Most algorithms end with instruction to display, print, or store the _______ items.

a)

Input

b)

Output

c)

Processing

d)

Sale

42.

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

a)

Line 1

b)

Line 4

c)

Line 5

d)

Line 2

43.

Pseudocode is a more plain and human understandable form of algorithm where natural language is also combined with the high-level programming language constructs.

a)

TRUE

b)

FALSE

44.

Problem Specification: Jay-ar wants to determine if the inputted number is a positive number. Which of the following serves as the processing item?

a)

Number > 0

b)

It is a positive number or not.

c)

Number

45.

Most algorithms begin with instruction to enter the input items into the computer

a)

TRUE

b)

FALSE

46.

Use appropriate naming conventions and be consistent in writing pseudocodes.

a)

TRUE

b)

FALSE

47.

Which keyword is used to show your output to a screen or the relevant output device?

a)

INPUT

b)

ENTER

c)

READ

d)

PRINT

48.

It is a flowchart symbol that denotes a decision to be made

a)

Rectangle

b)

Parallelogram

c)

Diamond

d)

Oval

49.

If the flowchart becomes complex, it is better to use intersection of flow lines.

a)

TRUE

b)

FALSE

50.

Whenever flowchart becomes complex or it spreads over more than one page, it is useful to use connectors to avoid any confusions.

a)

TRUE

b)

FALSE

51.

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.

a)

Diamond

b)

Circle

c)

Home plate-shaped pentagon

d)

Oval

52.

It is a flowchart symbol that contains the initial values of variables or variable declaration.

a)

Rectangle

b)

Parallelogram

c)

Diamond

d)

Hexagon

53.

Terminal is the first and last symbols in the flowchart.

a)

TRUE

b)

FALSE

54.

C++ is regarded as a middle-level language because it has a combination of both high-level and low-level language features.

a)

TRUE

b)

FALSE

55.

Decision symbol represent the direction of flow of control and relationship among different symbols of flowchart.

a)

TRUE

b)

FALSE

56.

The following statements are true about C++ except __________.

a)

It is a low-level language.

b)

It supports procedural, object-oriented, and generic programming.

c)

It is case sensitive.

d)

It uses compilation process.

57.

These are names that are given to various elements of a program created by the program.

a)

Tokens

b)

Identifiers

c)

Constants

d)

Keywords

58.

All variables in C++ must be declared prior to their use.

a)

TRUE

b)

FALSE

59.

All are arithmetic operators, except ______

a)

!=

b)

*

c)

%

d)

+

60.

A global may be used in any part of the program.

a)

TRUE

b)

FALSE

61.

The expression x += y is the same as ______.

a)

x =+ y

b)

x == +y

c)

x = x + y

d)

y += x

62.

The special character that indicates a string constant in a Turbo C++ program.

a)

' '

b)

" "

c)

/* */

d)

/ /

63.

The relational operator that can be used to test for equality of two expressions.

a)

==

b)

<>

c)

=

d)

!=

64.

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--;

a)

10

b)

9

c)

11

d)

8

65.

Let a=2, b=5, c=15, d=17: Evaluate the given expression: cout << !((a<b)||(c>d));

a)

1 (TRUE)

b)

Undefined

c)

INVALID

d)

0 (FALSE)

66.

C++ performs mathematical expression based on the order of precedence. Given the expression 3 + (9 – 7) * 5 / 2, which operator will be performed first?

a)

+

b)

-

c)

*

d)

/