wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Tech Programming Concepts Quiz

Total questions: 108

Worksheet time: 3570secs

Name
Class
Date
1.

What helps programmers interact with and analyze how the program behaves?

a)

Debugging tools

b)

Writing documentation

c)

Refactoring code

d)

Running tests

2.

Which programming languages support object-oriented programming (OOP)?

a)

SQL and NoSQL

b)

XML and JSON

c)

C++ and Python

d)

HTML and CSS

3.

What does a diamond shape in a flowchart indicate?

a)

A process

b)

Input or output

c)

The start or end of a program

d)

A decision point

4.

Which number type is similar to a float but can store larger and more precise numbers?

a)

Double

b)

Fixed-point

c)

String

d)

Integer

5.

Which of the following is a string?

a)

True

b)

451

c)

"Hello World"

d)

99.999

6.

What is one advantage of interpreted languages?

a)

They are platform-independent.

b)

They have limited access to system resources.

c)

They are faster than compiled languages.

d)

They turn source code into binary ahead of time.

7.

What is a binary executable file?

a)

A file that can be directly executed by the computer's processor

b)

A file that contains text code

c)

A file that stores images and videos

d)

A file that needs to be interpreted line by line

8.

Why is the planning process important in programming?

a)

It eliminates the need for hardware.

b)

It allows for immediate coding.

c)

It ensures a well-thought-out program.

d)

It helps in writing more code.

9.

What is assembly language?

a)

A compiler

b)

A high-level programming language

c)

A low-level programming language

d)

A type of hardware

10.

Which of the following is an example of an integer?

a)

9.95

b)

4.1

c)

5.62

d)

23

11.

What is another term for interpreted languages?

a)

Compiled languages

b)

Scripting languages

c)

Machine languages

d)

Binary languages

12.

Which type of loop runs a specific number of times?

a)

Conditional loop

b)

While loop

c)

Infinite loop

d)

For loop

13.

Why are comments ignored by the computer?

a)

Because they are written in uppercase letters

b)

Because they are not part of the executable code

c)

Because they are written in a different language

d)

Because they are placed at the end of the code

14.

What is the purpose of using functions in programming?

a)

To create more variables

b)

To avoid repeating the same code

c)

To make the code longer

d)

To write more comments

15.

What is the role of a query in a database search?

a)

To search the database and find matching records

b)

To create new data

c)

To delete data

d)

To update software

16.

What is a constant in a computer program?

a)

A type of variable

b)

A value that never changes

c)

A type of identifier

d)

A value that can change

17.

Which of the following is an example of a character variable?

a)

'7'

b)

3.14

c)

"555-1212"

d)

False

18.

In pseudocode, what does the symbol || represent?

a)

Logical AND

b)

Logical NOT

c)

Logical OR

d)

Logical XOR

19.

What is the main purpose of a flowchart in programming?

a)

To design the user interface of the program

b)

To show the flow (sequence) of logic in a program

c)

To test the program for errors

d)

To write the actual code of the program

20.

What is a loop in programming?

a)

A statement that runs code repeatedly

b)

A condition that stops the program

c)

A function that runs once

d)

A variable that stores data

21.

What does the NOT operation do to a condition?

a)

Leaves it unchanged

b)

Makes it True

c)

Inverts it

d)

Makes it False

22.

Which of the following is NOT a programming language?

a)

Python

b)

Assembly Language

c)

HTML

d)

C++

23.

Why are arrays useful?

a)

They are a type of function

b)

They can hold only one value

c)

They can be used in loops to go through values one by one

d)

They are used to create databases

24.

What makes it easier for humans to read and write instructions for computers?

a)

Binary code

b)

Hardware

c)

Programming languages

d)

Machine language

25.

What is a class in object-oriented programming (OOP)?

a)

A specific instance of an object.

b)

A variable that stores data.

c)

A method that an object can perform.

d)

A blueprint or template for creating objects.

26.

Why do modern developers not work directly with machine language?

a)

It is too slow.

b)

It is very hard to understand.

c)

It is too expensive.

d)

It is outdated.

27.

What is bytecode?

a)

A type of text file

b)

A high-level programming language

c)

A low-level language that is interpreted by a runtime engine

d)

The final machine language code

28.

What happens when you enter a number as a character?

a)

You can perform math operations with it.

b)

It becomes a string.

c)

You cannot perform math operations with it.

d)

It gets deleted.

29.

What does the term "syntax" refer to in computer programming?

a)

The color scheme of the code editor.

b)

The type of computer used to run the program.

c)

The speed at which a program runs.

d)

The rules for how to write the language.

30.

Why is understanding the code important for debugging?

a)

To add new features

b)

To improve the program's speed

c)

To know what each part is supposed to do

d)

To ensure the program looks good

31.

In what areas is assembly language still used today?

a)

Specialized areas

b)

General programming

c)

Graphic design

d)

Web development

32.

What is encapsulation in object-oriented programming (OOP)?

a)

The method of defining variables in different ways.

b)

The technique of keeping variables secure inside a class.

c)

The action of making objects move around an environment.

d)

The process of creating objects from a class.

33.

Which of the following is an example of a floating-point number?

a)

-7

b)

23

c)

8.02

d)

'X'

34.

What is an escape character used for in a string?

a)

To end a string

b)

To start a string

c)

To include special characters in the output

d)

To delete a character

35.

What is the main purpose of pseudocode?

a)

To describe what the code will do using plain language

b)

To create a user interface for the program

c)

To write the final code for a program

d)

To compile the program into machine language

36.

What does a function return after it runs?

a)

A variable

b)

A loop

c)

A comment

d)

A value

37.

What is the purpose of adding comments to your code?

a)

To make the code run faster

b)

To create a user interface

c)

To compile the code

d)

To explain what each part of the code does

38.

What is the first step in fixing errors in code?

a)

Asking for help

b)

Finding and repeating the problem

c)

Writing comments

d)

Running the program

39.

Which symbol is used to show the logical flow of the program in a flowchart?

a)

Arrow

b)

Oval

c)

Rectangle

d)

Diamond

40.

What type of language adds tags to text?

a)

Scripting language

b)

Interpreted language

c)

Markup language

d)

Compiled language

41.

Why is code written in assembly language more efficient?

a)

It is a high-level language.

b)

It uses a compiler.

c)

It is written in binary.

d)

It allows direct access to hardware.

42.

What is an array?

a)

A type of loop

b)

A single value variable

c)

A special type of variable that holds many values at once

d)

A type of function

43.

What is an object in object-oriented programming (OOP)?

a)

An action that an object can perform.

b)

A method to store data securely.

c)

A specific model built from a class.

d)

A blueprint for creating classes.

44.

Which Boolean operation returns True only if both conditions are True?

a)

XOR

b)

NOT

c)

OR

d)

AND

45.

What does a conditional flow use to make decisions in a program?

a)

Functions

b)

Loops

c)

Variables

d)

If-then-else statements

46.

What keyword is used in pseudocode to represent a loop with a condition at its beginning?

a)

REPEAT-UNTIL

b)

FOR

c)

CASE

d)

WHILE

47.

What is sequential flow in a program?

a)

Code that runs only once

b)

Code that never runs

c)

Code that runs in the order it is written

d)

Code that runs in a random order

48.

What type of variable is used to store the value True or False?

a)

Boolean

b)

Integer

c)

String

d)

Float

49.

What is the main purpose of query languages?

a)

To create websites

b)

To get information from databases

c)

To write stories

d)

To design computer games

50.

What is a character in programming?

a)

A type of data storage

b)

A collection of letters, numbers, or symbols

c)

A programming language

d)

A single letter, symbol, or number

51.

What does the computer do after finding the records that match your search?

a)

It organizes them into a nice-looking report

b)

It ignores them

c)

It deletes them

d)

It sends them to another database

52.

What does it mean for an array to be multidimensional?

a)

It can hold arrays within arrays.

b)

It can only be used in one-dimensional space.

c)

It is a type of function.

d)

It can hold only one value.

53.

What is the main advantage of using bytecode?

a)

It can run on any computer with a runtime engine.

b)

It does not need to be compiled.

c)

It runs slower than fully-compiled executables.

d)

It is easier to write than machine language.

54.

What does an array store?

a)

A single character

b)

A whole number

c)

A collection of variables of the same type

d)

A decimal number

55.

Which symbol represents the Logical AND operation in pseudocode?

a)

||

b)

!

c)

#

d)

&&

56.

What should be done before starting to code a program?

a)

Decide what the program will look like.

b)

Write as much code as possible.

c)

Decide what the program should do.

d)

Ignore planning and start coding immediately.

57.

What is an interpreted language?

a)

A language that is only used for web development

b)

A language that cannot be used on multiple platforms

c)

A language that runs instructions in the source code whenever you run the application

d)

A language that converts source code into binary ahead of time

58.

What is the main purpose of adding comments to a program?

a)

To make the program run faster

b)

To explain different parts of the program

c)

To help the computer understand the code

d)

To add errors to the program

59.

What does SQL stand for?

a)

Standard Query Language

b)

Structured Query Language

c)

System Query Language

d)

Simple Query Language

60.

Which number type would you use for precise financial calculations?

a)

Fixed-point

b)

Integer

c)

Float

d)

Double

61.

An error in a program that prevents the program from running as expected. (a)  

Choose from the below words
bug
debugging
for loop
binary
62.

A team is making a platform jumper game. The background and platforms are working, but the main character won't appear. What might be the problem?


  1. 1) They forgot to call `drawSprites` in the draw loop.

  2. 2) The character sprite is drawn behind the background sprite.

  3. 3) The character sprite is drawn off the screen.

a)

1 and 2

b)

1 and 3

c)

2 and 3

d)

1, 2 and 3

63.

What is the main purpose of a compiler in programming?

a)

To convert high-level code into machine code

b)

To design user interfaces

c)

To store data in a database

d)

To execute code line by line

64.

Which of the following is a high-level programming language?

a)

Binary

b)

Java

c)

Assembly

d)

Machine code

65.

What is the role of a variable in programming?

a)

To store data that can change during program execution

b)

To execute a program

c)

To compile code

d)

To create a user interface

66.

What is a floating-point number?

a)

A number with a specific number of digits after the decimal point

b)

A number that can have decimal fractions

c)

A number used only in financial calculations

d)

A whole number

67.

If condition A is True and condition B is False, what does the OR operation return?

a)

False

b)

True

c)

Error

d)

Maybe

68.

If condition A is True and condition B is True, what does the OR operation return?

a)

False

b)

True

c)

Error

d)

Maybe

69.

If condition A is True and condition B is True, what does the XOR operation return?

a)

False

b)

True

c)

Error

d)

Maybe

70.

How is an array and a vector different?

a)

An array has a fixed size, while a vector can change size dynamically

b)

An array is a type of function, while a vector is a type of loop

c)

An array holds multiple values, while a vector holds only one value

d)

An array can change size dynamically, while a vector has a fixed size

71.

What is a container in programming?

a)

A single value variable

b)

A type of loop

c)

A type of function

d)

A set of values held by an identifier

72.

What are properties in a class?

a)

Attributes that objects can have.

b)

Actions that an object can do.

c)

Methods that change data.

d)

Specific instances of a class

73.

What are methods in a class?

a)

Attributes that objects can have.

b)

Actions that an object can do.

c)

Methods that change data.

d)

Specific instances of a class

74.

What is an Object in OOP?

a)

Details about a class variable.

b)

Actions that can be done.

c)

The completed program

d)

A specific instance of a class

75.

Given answer = 'true', what type of variable is answer?

a)

Character

b)

String

c)

Boolean

d)

Illegal type

76.

What do you put inside the parentheses when using a function?

a)

The arguments or values the function needs to process

b)

The function's name

c)

The function's definition

d)

The function's return value

77.

What is the result of the expression !True?

a)

Neither True nor False

b)

True and False

c)

False

d)

True

78.

What is the purpose of a compiler in programming?

a)

To store data in memory

b)

To convert high-level code to machine code

c)

To execute code line by line

d)

To manage hardware resources

79.

Which of the following is a characteristic of object-oriented programming?

a)

Sequential processing

b)

Procedural execution

c)

Data encapsulation

d)

Global variables

80.

What is the main advantage of using functions in programming?

a)

To increase code redundancy

b)

To improve code readability and reusability

c)

To make code harder to debug

d)

To slow down program execution

81.

What does a Boolean operation compare to determine its state?

a)

Two conditions

b)

Three conditions

c)

One condition

d)

Four conditions

82.

What is the purpose of an escape character in a string?

a)

To end a string

b)

To include a quote or special character in the output

c)

To start a string

d)

To delete a character

83.

Which character is commonly used as an escape character?

a)

/

b)

#

c)

\

d)

*

84.

Which Boolean operator is TRUE if both conditions are TRUE?

a)

AND

b)

OR

c)

XOR

d)

NOT

85.

What is the result of the XOR Boolean operator if both conditions are TRUE?

a)

FALSE

b)

TRUE

c)

Undefined

d)

Error

86.

In pseudocode, which symbol represents the Logical OR operator?

a)

||

b)

&&

c)

#

d)

!

87.

What does the NOT Boolean operator do to a statement that is TRUE?

a)

Makes it not TRUE

b)

Makes it TRUE

c)

Leaves it unchanged

d)

Makes it undefined

88.

What is an array?

a)

A single value variable

b)

A special type of variable that holds many values at once

c)

A type of loop

d)

A function in a program

89.

Why are arrays useful in programming?

a)

They can only hold one value

b)

They allow for easy iteration over values using a loop

c)

They are used to store functions

d)

They are only used for graphics

90.

What does it mean for an array to be multidimensional?

a)

It can only hold one type of data

b)

It can have arrays within arrays

c)

It is a single-dimensional array

d)

It cannot be used in programming

91.

What is the role of logic in programming?

a)

It helps in writing notes in your code.

b)

It is like the brain of programming, allowing decision-making.

c)

It improves the code later on.

d)

It is used to build high-quality software.

92.

What is the purpose of code documentation?

a)

To make the code run faster.

b)

To explain what the code does for easier reading and fixing.

c)

To create software that is easy to use.

d)

To identify programming organizational techniques.

93.

What is the purpose of using an if-then-else statement in a program?

a)

To print text to the console.

b)

To declare variables.

c)

To run different parts of the program based on decisions.

d)

To increase the speed of the program.

94.

What is the purpose of using loops in programming?

a)

To repeat parts of the code as long as certain conditions are met

b)

To execute code only once

c)

To stop the program immediately

d)

To handle errors in the program

95.

What happens when a program gets a 'call' to go to another part of the program?

a)

The program stops running

b)

The program runs that code and returns to where it was

c)

The program deletes the code

d)

The program enters an infinite loop

96.

Why is understanding program flow important?

a)

It helps in writing good code and debugging

b)

It makes the program run slower

c)

It increases the size of the program

d)

It is only useful for small programs

97.

What is branching in computer programming?

a)

A method to repeat code multiple times

b)

A way to execute a different sequence of instructions based on a condition

c)

A technique to store data in a program

d)

A process to compile code

98.

What type of statements are used in conditional branching as described in the text?

a)

FOR-LOOP statements

b)

SWITCH-CASE statements

c)

IF-ELSE statements

d)

WHILE-LOOP statements

99.

What is the purpose of a "for" loop?

a)

To run indefinitely

b)

To run a specific number of times

c)

To store data

d)

To stop a program

100.

How do "for" loops differ from "while" loops?

a)

"For" loops run indefinitely, "while" loops run a set number of times.

b)

"For" loops run a set number of times, "while" loops run as long as a condition is met.

c)

"For" loops run only once, "while" loops run multiple times.

d)

"For" loops and "while" loops are the same.

101.

What is a function in programming?

a)

A piece of code that performs a specific job

b)

A type of variable

c)

A method to store data

d)

A way to compile code

102.

What is the concept of modeling real-world objects in computer code called?

a)

Functional Programming

b)

Procedural Programming

c)

Object-Oriented Programming

d)

Logic Programming

103.

In object-oriented programming, what is a class most similar to?

a)

A finished product

b)

A blueprint or template

c)

A random object

d)

A programming error

104.

What is encapsulation in object-oriented programming?

a)

The process of defining a class

b)

Keeping variables secure inside a class

c)

Creating multiple objects from a class

d)

Changing the properties of an object

105.

Which of the following is an example of a method in an object?

a)

Design

b)

Weight

c)

Engine start

d)

Material

106.

Which of the following is a property of the car in the example?

a)

Refuel

b)

Convertible

c)

Accelerate

d)

Lower Roof

107.

What is the process of fixing mistakes in code called?

a)

Compiling

b)

Debugging

c)

Executing

d)

Encrypting

108.

What is the first step in fixing errors in code?

a)

Writing new code

b)

Finding and repeating the problem

c)

Deleting the code

d)

Ignoring the error