wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Algorithmization and Programming Quiz

Total questions: 51

Worksheet time: 26mins

Name
Class
Date
1.

What is an algorithm?

a)

A random process

b)

A sequence of actions to solve a problem

c)

A computer program

d)

A database

2.

Which property must an algorithm have?

a)

Randomness

b)

Ambiguity

c)

Definiteness

d)

Infinity

3.

Which of the following is a correct way to represent an algorithm?

a)

Pseudocode

b)

Verbal description only

c)

Machine code

d)

Syntax rules

4.

Which type of algorithm involves decision making?

a)

Linear

b)

Branching

c)

Cyclic

d)

Sequential

5.

What is the purpose of debugging?

a)

Creating new algorithms

b)

Finding and fixing errors

c)

Compiling code

d)

Writing pseudocode

6.

Which data type is used to store decimal numbers in Python?

a)

int

b)

float

c)

str

d)

bool

7.

What is the output of 3 + 2 * 2 in Python?

a)

10

b)

7

c)

12

d)

9

8.

Which keyword is used to define a function in Python?

a)

func

b)

function

c)

define

d)

def

9.

In C++, which symbol is used for comments?

a)

//

b)

/*

c)

*/

d)

#

10.

What does IDE stand for?

a)

Integrated Development Environment

b)

Integrated Debugging Environment

c)

Internal Development Execution

d)

Interface Development Environment

11.

Which of the following is a valid loop in C++?

a)

repeat

b)

loop

c)

while

d)

during

12.

Which of the following is a mutable data type in Python?

a)

tuple

b)

list

c)

string

d)

int

13.

What does SQL stand for?

a)

Structured Query Language

b)

Simple Query Language

c)

Sequential Query Language

d)

Strong Query Language

14.

Which command is used to retrieve data from a database?

a)

SELECT

b)

GET

c)

EXTRACT

d)

FETCH

15.

What is the size of an int in C++ (typically)?

a)

2 bytes

b)

4 bytes

c)

8 bytes

d)

16 bytes

16.

Which one is a Python library for creating graphs?

a)

NumPy

b)

Pandas

c)

Matplotlib

d)

Seaborn

17.

Which loop executes at least once regardless of the condition?

a)

for

b)

while

c)

do-while

d)

foreach

18.

Which operator is used to compare two values in Python?

a)

=

b)

==

c)

=>

d)

:=

19.

Which statement correctly closes a file in Python?

a)

file.close()

b)

close(file)

c)

file.shutdown()

d)

shutdown(file)

20.

What is a key feature of MongoDB?

a)

Relational tables

b)

Document-based storage

c)

Compiled queries

d)

Flat file database

21.

Which keyword creates a loop in Python?

a)

loop

b)

repeat

c)

while

d)

iterate

22.

What is the output type of the input() function in Python?

a)

int

b)

str

c)

float

d)

bool

23.

Which file extension is standard for a Python script?

a)

.txt

b)

.py

c)

.java

d)

.cpp

24.

Which keyword is used for branching in C++?

a)

if

b)

goto

c)

continue

d)

break

25.

Which of the following is NOT a Python data type?

a)

list

b)

dictionary

c)

array

d)

tuple

26.

What is a one-dimensional array?

a)

Array with multiple rows and columns

b)

Array with a single row or column

c)

Nested array

27.

OT a Python data type?

a)

list

b)

dictionary

c)

array

d)

tuple

28.

What is a one-dimensional array?

a)

Array with multiple rows and columns

b)

Array with a single row or column

c)

Nested array

d)

Linked array

29.

Which of these is a conditional operator in Python?

a)

<

b)

+

c)

*

d)

&

30.

Which keyword is used to terminate a loop in Python?

a)

stop

b)

exit

c)

break

d)

end

31.

Which data type is used to store a single character in C++?

a)

int

b)

char

c)

float

d)

string

32.

Which of the following is a correct Python list?

a)

{1, 2, 3}

b)

(1, 2, 3)

c)

[1, 2, 3]

d)

<1, 2, 3>

33.

What is the purpose of a flowchart?

a)

To execute code

b)

To describe algorithm steps visually

c)

To compile programs

d)

To debug code

34.

What is indentation in Python?

a)

Code optimization

b)

Visual alignment

c)

Syntax requirement

d)

Optional formatting

35.

Which keyword is used to create a loop in C++?

a)

for

b)

foreach

c)

loop

d)

repeat

36.

Which function is used to get the length of a list in Python?

a)

length()

b)

count()

c)

size()

d)

len()

37.

What is a tuple in Python?

a)

Mutable sequence

b)

Immutable sequence

c)

Mutable dictionary

d)

Immutable dictionary

38.

Which database uses tables and rows?

a)

MongoDB

b)

Cassandra

c)

MySQL

d)

Neo4j

39.

Which operator is used for logical AND in Python?

a)

&&

b)

&

c)

and

d)

&&&

40.

Which function is used to read input from the user in Python?

a)

input()

b)

read()

c)

get()

d)

scanf()

41.

Which type of error is caused by incorrect syntax?

a)

Runtime error

b)

Syntax error

c)

Logical error

d)

Compilation error

42.

Which library is commonly used for data science in Python?

a)

Flask

b)

NumPy

c)

Tkinter

d)

Django

43.

Which type of file is used to permanently store data?

a)

Text file

b)

Source code

c)

Header file

d)

Object file

44.

Which of the following is NOT a looping structure?

a)

for

b)

while

c)

if

d)

do-while

45.

Which of these is a composite data type?

a)

char

b)

int

c)

record

d)

float

46.

What is a record?

a)

A type for functions

b)

A group of related data items

c)

A Python library

d)

A SQL command

47.

What is Matplotlib used for?

a)

Web development

b)

Database management

c)

Data visualization

d)

Networking

48.

What does CSV stand for?

a)

Comma Separated Values

b)

Centralized Server Variable

c)

Critical Simple Variable

d)

Complex Separated Vector

49.

Which keyword is used for exception handling in Python?

a)

except

b)

exception

c)

handle

d)

catch

50.

Which of these is NOT a database?

a)

MySQL

b)

MongoDB

c)

SQLite

d)

Matplotlib

51.

Which C++ keyword is used for defining constants?

a)

constant

b)

const

c)

define

d)

static