Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python 201 Vocabulary Review

Total questions: 57

Worksheet time: 29mins

Name
Class
Date
1.

Python is a programming language known for its:

a)

complex syntax and low-level programming capabilities

b)

simplicity and readability

c)

exclusive use in web development

d)

limited community support

2.

Computer Science is the study of:

a)

biology and life sciences

b)

the human mind and behavior

c)

computers and computational systems

d)

physical education and sports

3.

An instruction in programming is:

a)

a command given to a computer processor to perform a specific task

b)

a type of software

c)

a programming language

d)

a hardware component

4.

A value in programming is:

a)

A type of variable

b)

A specific piece of data

c)

A function

d)

A programming language

5.

A function in programming is:

a)

a block of code that performs a specific task

b)

a type of variable

c)

a programming language

d)

an error in the code

6.

A function call is:

a)

a way to define a function

b)

a way to execute a function

c)

a way to declare a variable

d)

a way to create a loop

7.

A program or code in programming is:

a)

a set of instructions for a computer to execute

b)

a type of hardware component

c)

a user interface design

d)

a network protocol

8.

Executing a program means:

a)

Running the program to perform its tasks

b)

Writing the code for the program

c)

Debugging the program

d)

Designing the program's interface

9.

An argument in a function call is:

a)

a value passed to the function

b)

the name of the function

c)

the return type of the function

d)

the function's documentation

10.

An integer in programming is:

a)

A data type that represents whole numbers

b)

A data type that represents decimal numbers

c)

A data type that represents characters

d)

A data type that represents boolean values

11.

A String in programming is:

a)

a data type used to represent text

b)

a type of loop

c)

a conditional statement

d)

a function

12.

What is Syntax in programming?

a)

Syntax is the set of rules that defines the combinations of symbols that are considered to be correctly structured programs in a programming language.

b)

Syntax is the process of finding and fixing errors in a program.

c)

Syntax is the logical sequence of steps that need to be followed to solve a problem.

d)

Syntax is the part of the program where variables are declared.

13.

What is a Syntax Error?

a)

A syntax error is a mistake in the source code that makes it impossible to parse.

b)

A syntax error is a logical error in the program.

c)

A syntax error is an error that occurs during the execution of a program.

d)

A syntax error is a type of runtime error.

14.

What is a Comment in programming?

a)

A piece of code that is executed by the compiler

b)

A note or annotation in the source code for better understanding

c)

A syntax error in the code

d)

A function that returns a value

15.

A Variable in programming is:

a)

a constant value that cannot be changed

b)

a storage location identified by a memory address

c)

a type of function

d)

an error in the code

16.

Variable Assignment is:

a)

a process of storing a value in a variable

b)

a method to declare a variable

c)

a way to delete a variable

d)

a technique to copy a variable

17.

Reassigning Variables means:

a)

Changing the value stored in a variable to a new value

b)

Creating a new variable with a different name

c)

Deleting a variable from memory

d)

Copying the value of one variable to another

18.

A Return Value in programming is:

a)

a value sent back by a function to the caller

b)

a type of loop in programming

c)

a syntax error in code

d)

a variable declaration

19.

A Data Type in programming is:

a)

a classification of data which tells the compiler or interpreter how the programmer intends to use the data

b)

a type of error in the program

c)

a method to compile the program

d)

a tool to debug the program

20.

A string in programming is:

a)

a sequence of characters

b)

a type of loop

c)

a numerical value

d)

a conditional statement

21.

How do you concatenate strings?

a)

By using the '+' operator

b)

By using the '-' operator

c)

By using the '*' operator

d)

By using the '/' operator

22.

An integer in programming terms is defined as:

a)

A data type used to represent whole numbers.

b)

A data type used to represent decimal numbers.

c)

A data type used to represent characters.

d)

A data type used to represent boolean values.

23.

A floating point number (float) is:

a)

a whole number without a fractional part

b)

a number with a fractional part

c)

a number that can only be positive

d)

a number that can only be negative

24.

A boolean in programming is:

a)

a data type that can store true or false values.

b)

a data type that can store numbers.

c)

a data type that can store text strings.

d)

a data type that can store decimal numbers.

25.

An operator in programming is:

a)

a symbol that tells the compiler to perform specific mathematical or logical manipulations

b)

a type of variable

c)

a function that returns a value

d)

a data structure

26.

An expression in programming is defined as:

a)

A combination of variables, constants, and operators that computes a value

b)

A sequence of characters that represents a specific value

c)

A block of code that performs a specific task

d)

A set of instructions that a computer can execute

27.

A binary operator is an operator that operates on how many operands?

a)

One

b)

Two

c)

Three

d)

Four

28.

The modulus operator is used to:

a)

Add two numbers

b)

Subtract two numbers

c)

Multiply two numbers

d)

Find the remainder of a division

29.

Incrementing in programming means:

a)

Decreasing a value by one

b)

Increasing a value by one

c)

Multiplying a value by two

d)

Dividing a value by two

30.

What is decrementing in programming?

a)

Increasing a value by one

b)

Decreasing a value by one

c)

Multiplying a value by two

d)

Dividing a value by two

31.

A logic expression is:

a)

A mathematical statement that is always true

b)

A statement that can be either true or false

c)

A type of programming language

d)

A physical representation of a circuit

32.

A boolean value is:

a)

A type of data that can be either true or false

b)

A numerical value

c)

A string of characters

d)

A complex data structure

33.

The 'equality' operator (==) does what?

a)

Compares two values for equality

b)

Assigns a value to a variable

c)

Checks if a value is greater than another

d)

Performs a logical AND operation

34.

The 'not equal' operator (!=) is used to:

a)

compare two values to check if they are equal

b)

compare two values to check if they are not equal

c)

assign a value to a variable

d)

perform logical AND operation

35.

The 'is' operator is used to:

a)

compare values for equality

b)

check if two variables point to the same object

c)

assign a value to a variable

d)

perform a logical AND operation

36.

The 'is not' operator is used to:

a)

compare the identity of two objects

b)

compare the values of two objects

c)

assign a value to a variable

d)

check if a variable is not None

37.

The 'and' operator is used to:

a)

combine two conditions and returns true if both are true

b)

combine two conditions and returns true if either is true

c)

invert the boolean value of a condition

d)

compare two values for equality

38.

The 'or' operator is used to:

a)

Combine multiple conditions and returns true if at least one condition is true.

b)

Combine multiple conditions and returns true only if all conditions are true.

c)

Negate a condition.

d)

Assign a value to a variable.

39.

The 'not' operator is used to:

a)

invert the truth value of a condition

b)

perform logical conjunction

c)

perform logical disjunction

d)

compare two values

40.

A Library in programming is:

a)

a collection of pre-compiled routines that a program can use

b)

a place where books are stored

c)

a type of programming language

d)

a hardware component

41.

A Turtle Library is:

a)

a type of reptile

b)

a programming library for drawing

c)

a library for turtles

d)

a collection of turtle images

42.

What is an Object in Python?

a)

A data type that represents a collection of values

b)

An instance of a class

c)

A function that returns a value

d)

A module in Python

43.

A Pixel is:

a)

a type of fruit

b)

a unit of digital image

c)

a brand of clothing

d)

a musical instrument

44.

What is a Branch in programming?

a)

A version control mechanism

b)

A type of loop

c)

A data structure

d)

A programming language

45.

What is a Condition in programming?

a)

A statement that is always true

b)

A statement that is always false

c)

A statement that controls the flow of execution based on a boolean expression

d)

A statement that defines a variable

46.

What is an 'If' Statement in Python?

a)

A conditional statement that executes a block of code if a specified condition is true.

b)

A loop that iterates over a sequence of elements.

c)

A function that returns a value based on input parameters.

d)

A data structure used to store multiple values.

47.

What is an 'Else' statement in Python?

a)

A conditional statement that executes a block of code if the condition is true.

b)

A loop that iterates over a sequence of elements.

c)

A statement that executes a block of code if the previous conditions are false.

d)

A function that returns a value.

48.

An 'Elif' statement in Python is:

a)

a loop structure

b)

a conditional statement

c)

a function definition

d)

a variable assignment

49.

A 'While Loop' in Python is:

a)

a loop that runs a block of code as long as a specified condition is true.

b)

a loop that iterates over a sequence of elements.

c)

a function that calls itself.

d)

a conditional statement that executes code based on a condition.

50.

What is an 'Iteration' in the context of loops?

a)

A single cycle through the loop

b)

A variable declaration

c)

A conditional statement

d)

A function call

51.

What is an 'Infinite Loop' and why should it be avoided?

a)

A loop that runs indefinitely and can cause a program to freeze or crash.

b)

A loop that runs a fixed number of times and is safe to use.

c)

A loop that runs only once and then stops.

d)

A loop that runs until a certain condition is met and then stops.

52.

What is a string in Python?

a)

A data type used to represent text

b)

A function to convert numbers

c)

A loop structure

d)

A conditional statement

53.

Immutable objects in Python are objects whose state cannot be modified after they are created. Which of the following is an example of an immutable object in Python?

a)

List

b)

Dictionary

c)

Tuple

d)

Set

54.

What is an index in Python and how does it work?

a)

An index in Python is a position number that identifies an element in a list or string.

b)

An index in Python is a special type of variable that stores data.

c)

An index in Python is a function that returns the length of a list.

d)

An index in Python is a method to sort lists.

55.

Define a substring with an example.

a)

A substring is a contiguous sequence of characters within a string, e.g., 'cat' is a substring of 'concatenate'.

b)

A substring is a type of data structure used in programming.

c)

A substring is a function that divides a string into parts.

d)

A substring is a method to concatenate two strings.

56.

The 'in' operator in Python is used to:

a)

check if a value is present in a sequence

b)

perform arithmetic operations

c)

define a function

d)

create a loop

57.

The 'not in' operator is used to:

a)

Check if an element is not present in a sequence

b)

Check if an element is present in a sequence

c)

Assign a value to a variable

d)

Compare two values