wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Principle of Programming

Total questions: 68

Worksheet time: 40mins

Name
Class
Date
1.

Which category of software is designed to perform specific tasks for end-users?

a)

System software

b)

Application software

c)

Utility software

d)

Firmware

2.

What does this symbol represent?

(a)  

3.

Which type of software manages computer hardware and provides common services for application software?

a)

System software

b)

Application software

c)

Utility software

d)

Firmware

4.

Which software category includes programs like word processors, web browsers, and spreadsheet applications?

a)

System software

b)

Application software

c)

Utility software

d)

Firmware

5.

What type of software helps users perform maintenance tasks on their computers, such as disk cleanup and antivirus scans?

a)

System software

b)

Application software

c)

Utility software

d)

Firmware

6.

Which software category controls the operation of a specific hardware device and is often stored in non-volatile memory?

a)

System software

b)

Application software

c)

Utility software

d)

Firmware

7.

(a)   is designed to perform specific tasks for end-users.

8.

(a)   manages computer hardware and provides common services for application software.

9.

Examples of (a)   include word processors, web browsers, and spreadsheet applications.

10.

(a)   helps users perform maintenance tasks on their computers, such as disk cleanup and antivirus scans.

11.

(a)   controls the operation of a specific hardware device and is often stored in non-volatile memory.

12.

System software is not essential for the operation of a computer.

a)

False

b)

True

13.

Application software includes programs like device drivers and operating systems.

a)

False

b)

True

14.

Utility software is primarily used to perform specific tasks for end-users.

a)

False

b)

True

15.

Firmware can be updated or changed easily by end-users.

a)

False

b)

True

16.

System software includes programs like antivirus software and disk defragmenters.

a)

False

b)

True

17.

What type of software allows users to create, edit, and manipulate data in various formats?

a)

System software

b)

Application software

c)

Utility software

d)

Firmware

18.

Which software category includes programs like antivirus software, disk cleanup utilities, and backup tools?

a)

System software

b)

Application software

c)

Firmware

d)

Utility software

19.

What is the primary function of firmware in electronic devices?

a)

Provide common services for application software

b)

Control the operation of specific hardware devices

c)

Perform maintenance tasks on computers

d)

Create, edit, and manipulate data

20.

Which software category manages the interface between hardware components and the operating system?

a)

System software

b)

Application software

c)

Utility software

d)

Firmware

21.

What is the fundamental unit of digital data storage in computers?

a)

Bit

b)

Byte

c)

Kilobyte

d)

Megabyte

22.

Which component of a computer is primarily responsible for storing data permanently?

a)

RAM

b)

CPU

c)

Hard drive

d)

GPU

23.

What is the binary system used in computing to represent data?

a)

Base 8

b)

Base 10

c)

Base 2

d)

Base 16

24.

Which statement best describes a flowchart?

a)

A visual representation of an algorithm using symbols and arrows

b)

A formal programming language

c)

A type of pseudocode used for mathematical calculations

d)

A database management system

25.

What is the primary purpose of pseudocode?

a)

Outlining the logic of a program in plain language

b)

Executing programs directly on the computer

c)

Writing code in a specific programming language

d)

Debugging code errors

26.

In pseudocode, what does the "IF" statement represent?

a)

A decision-making construct

b)

Function definition

c)

Variable declaration

d)

A loop structure

27.

What symbol is commonly used to denote a process in a flowchart?

a)

Rectangle

b)

Arrow

c)

Diamond

d)

Circle

28.

What does the "REPEAT-UNTIL" loop in pseudocode do?

a)

Repeats a set of instructions until a condition is true

b)

Terminates the program

c)

Executes a set of instructions once

d)

Repeats a set of instructions while a condition is true

29.

What does the "OUTPUT" statement in pseudocode represent?

a)

Displaying information to the user

b)

Input from the user

c)

Declaring a variable

d)

Terminating the program

30.

What does the "INPUT" statement in pseudocode represent?

a)

Outputting data to the user

b)

Taking input from the user

c)

Declaring a variable

d)

Terminating the program

31.

Which construct in pseudocode is used for making decisions based on conditions?

a)

FOR loop

b)

REPEAT-UNTIL loop

c)

IF-THEN-ELSE statement

d)

OUTPUT statement

32.

What is the purpose of pseudocode?

a)

To directly run programs

b)

To outline the logic of a program before writing actual code

c)

To generate machine code

d)

To debug code errors

33.

What does this symbol represent?
Decision

(a)  

34.

What does this symbol represent?

(a)  

35.

What does an arrow represent in a flow chart

(a)  

36.

True or False

A flowchart does not need to have a Start

(a)  

37.

What symbol do flowcharts begin with?

(a)  

38.

Which of the following is a valid variable name in C++?

a)

myVariable123

b)

123myVariable

c)

my Variable

d)

my-Variable

39.

What is a variable in programming?

a)

A constant value

b)

A storage location with a name and a value

c)

A reserved keyword

d)

An arithmetic operation

40.

What is the purpose of declaring a variable before using it?

a)

To reserve memory space for the variable

b)

To assign an initial value to the variable

c)

To specify the data type of the variable

d)

To prevent the variable from being modified

41.

Which of the following data types is used to store whole numbers in C++?

a)

float

b)

double

c)

int

d)

char

42.

What does it mean to "initialize" a variable?

a)

Assigning a value to a variable for the first time

b)

Declaring a variable without assigning a value

c)

Changing the data type of a variable

d)

Printing the value of a variable

43.

what symbol is used for the assignment operator?

a)

==

b)

=

c)

=>

d)

->

44.

Which of the following is not a valid variable declaration in C++?

a)

int x = 10;

b)

float y = 3.14;

c)

char z;

d)

double 123abc;

45.

What does it mean to "declare" a variable?

a)

To assign a value to the variable

b)

To specify the type and name of the variable

c)

To display the value of the variable

d)

To perform operations on the variable

46.

What is the value of x after the following statement: int x = 10 % 3; ?

(a)  

47.

Which of the following is an invalid statement in C++ for assigning a value to a variable?

a)
  • int x = 5;

b)
  • x = 5;

c)
  • x := 5;

d)
  • float y = 3.14;

48.

What is the result of the expression: 5 * (2 + 3)?

(a)  

49.

Which of the following statements is used to increment the value of x by 1 in C++?

a)
  • x = x + 1;

b)
  • x++;

c)
  • ++x;

d)
  • All of the above

50.

Which of the following is the correct syntax for declaring a constant variable in C++?

a)
  • const int x = 10;

b)
  • constant x = 10;

c)
  • int constant x = 10;

d)
  • int x = 10; constant;

51.

what does the modulus operator (%) return?

a)
  • Quotient of division

b)
  • Remainder of division

c)
  • Multiplication result

d)
  • Exponential result

52.

can a variable name start with a number?

a)
  • Yes

b)
  • No

c)
  • Only if it's a float variable

d)
  • Only if it's a string variable

53.

Which of the following is a valid variable name?

a)
  • my_variable_name

b)
  • my variable name

c)
  • my-variable-name

d)
  • 1myVariableName

54.

Which of the following is a valid variable declaration in C++?

a)
  • int num;

b)
  • integer number;

c)
  • num = int;

d)
  • number: int;

55.

What happens if you declare a variable without assigning it a value?

a)
  • It automatically gets assigned a default value.

b)
  • It remains uninitialized.

c)
  • It throws an error.

d)
  • It gets assigned a value based on the context.

56.

Can you redeclare a variable with the same name within the same scope in C++?

a)
  • Yes, but it must have a different data type

b)
  • Yes, as long as it's declared before its first use

c)
  • No, it will result in a compilation error

d)
  • No, it will automatically assign the new value to the existing variable

57.

What is the purpose of initializing a variable?

a)
  • To give it a name

b)
  • To reserve memory for it

c)
  • To assign it an initial value

d)
  • To declare its data type

58.

when should you declare a variable?

a)
  • It doesn't matter

b)
  • At the end of the program

c)
  • After assigning it a value

d)
  • Before using it

59.

......... the process of designing, building something in a logical way.

a)

Programming Language

b)

Computer Programming

c)

Programming Algorithm

d)

Programming

60.

it is a formal language that will be used to direct instructions to the

computer

a)

Programming Language

b)

Computer Programming

c)

Programming Algorithm

d)

Programming

61.

Set of instructions / rules to be followed by a computer program which

should contain an input, process and an output depending on the problem to be solved

(a)  

62.

It works by comparing a value with another value if the condition is met

then run this step if not skip this step.

a)

Pseudocode

b)

Flowchart

c)

Conditional Statements

d)


Loop Statements

63.

A method that allows a programmer to represent the algorithm in a more

programming related way.

a)

Pseudocode

b)

Flowchart

c)

Conditional Statements

d)

Loop Statements

64.

Indication of a variable to be used in a process.

a)

Input

b)

Output

c)

IF/ELSE

d)

WHILE

65.

Indication of a value to be displayed.


a)

Input

b)

Output

c)

IF/ELSE

d)

WHILE

66.

Jasmine is writing a computer program that will allow her to control her IPhone from her computer.  She has created a sequential list of instructions in order to execute her program.  This set of instructions is also known as...

(a)  

67.

Jasmine is typing the code for her new IPhone software into her computer using her keyboard.  The data that she is typing into the computer is an example of...

(a)  

68.

The coding system of zeros and ones used by computers to process information is known as...

(a)