wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Алгоритмизация и Программирование

Total questions: 51

Worksheet time: 26mins

Name
Class
Date
1.

What is an algorithm?

a)

Random process

b)

Sequence of actions to solve a problem

c)

Computer program

d)

Database

2.

What property must an algorithm have?

a)

Randomness

b)

Uncertainty

c)

Certainty

d)

Infinity

3.

Which of the following methods is correct for representing an algorithm?

a)

Pseudocode

b)

Only verbal description

c)

Machine code

d)

Syntax rules

4.

What 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.

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

a)

int

b)

float

c)

str

d)

bool

7.

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

a)

10

b)

7

c)

12

d)

9

8.

What 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 Environment

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.

What command is used to retrieve data from a database?

a)

SELECT

b)

GET

c)

EXTRACT

d)

FETCH

15.

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

a)

2 bytes

b)

4 bytes

c)

8 bytes

d)

16 bytes

16.

Which of these 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.

What 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 the key feature of MongoDB?

a)

Relational tables

b)

Document storage

c)

Compiled queries

d)

Flat file database

21.

What keyword creates a loop in Python?

a)

loop

b)

repeat

c)

while

d)

iterate

22.

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

a)

int

b)

str

c)

float

d)

bool

23.

What is the standard file extension for a Python script?

a)

.txt

b)

.py

c)

.java

d)

.cpp

24.

What keyword is used for branching in C++?

a)

if

b)

goto

c)

continue

d)

break

25.

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

a)

list

b)

dictionary

c)

array

d)

tuple

26.

What is a one-dimensional array?

a)

An array with multiple rows and columns

b)

An array with a single row or column

c)

A nested array

27.

What data type is in Python?

a)

list

b)

dictionary

c)

array

d)

tuple

28.

What is a one-dimensional array?

a)

An array with multiple rows and columns

b)

An array with a single row or column

c)

A nested array

d)

A linked array

29.

Какой из этих операторов является условным оператором в Python?

a)

<

b)

+

c)

*

d)

&

30.

What keyword is used to terminate a loop in Python?

a)

stop

b)

exit

c)

break

d)

end

31.

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

a)

int

b)

char

c)

float

d)

string

32.

Какой из следующих является правильным списком Python?

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)

Execute code

b)

Visually describe the steps of an algorithm

c)

Compile programs

d)

Debug code

34.

What is indentation in Python?

a)

Code optimization

b)

Visual alignment

c)

Syntactic requirement

d)

Optional formatting

35.

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

a)

for

b)

foreach

c)

loop

d)

repeat

36.

What 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.

What operator is used for logical AND in Python?

a)

&&

b)

&

c)

and

d)

&&&

40.

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

a)

input()

b)

read()

c)

get()

d)

scanf()

41.

What type of error is caused by incorrect syntax?

a)

Runtime error

b)

Syntactical 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.

What type of file is used for permanent data storage?

a)

Text file

b)

Source code

c)

Header file

d)

Object file

44.

Which of the following is not a loop structure?

a)

for

b)

while

c)

if

d)

do-while

45.

Which of these types is a composite data type?

a)

char

b)

int

c)

record

d)

float

46.

What is a record?

a)

Type for functions

b)

Group of related data elements

c)

Python library

d)

SQL command

47.

What is Matplotlib used for?

a)

Web development

b)

Database management

c)

Data visualization

d)

Network interaction

48.

What does CSV stand for?

a)

Comma-Separated Values

b)

Centralized Server Variable

c)

Critical Simple Variable

d)

Complex Separated Vector Variable

49.

What 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.

What keyword in C++ is used to define constants?

a)

constant

b)

const

c)

define

d)

static