Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Final Coverage_Quiz 1

Total questions: 42

Worksheet time: 14mins

Name
Class
Date
1.

Please type your name:

4 lines
2.

Course Year and Section: (Ex. BSCS 1A)

4 lines
3.

What is Python?

a)

A low-level programming language

b)

A high-level programming language

c)

A markup language

d)

A database language

4.

Who created Python?

a)

Larry Wall

b)

Guido van Rossum

c)

James Gosling

d)

Linus Torvalds

5.

What is one of the benefits of Python as a programming language?

a)

It is difficult to learn

b)

Its syntax is complicated

c)

It is not versatile

d)

It is easy to use

6.

What is one reason why Python is versatile?

a)

It can only be used for small tasks

b)

It is only used in one industry

c)

It cannot run with other programming languages

d)

It offers cross-platform functionality

7.

Why is Python beginner-friendly?

a)

Its syntax is easy to use and understand

b)

It is a compiled programming language

c)

It is designed to be complex and challenging for beginners

d)

It requires advanced knowledge of programming concepts

8.

Why are Python developer roles in high demand?

a)

Because it is an unpopular programming language

b)

Because it is only used by small companies

c)

Because it is used by major companies like DropBox and Netflix

d)

Because it is a difficult programming language to learn

9.

What is one feature of Python's supportive community?

a)

It doesn't have any online forums or resources for users

b)

It only has a small community of users

c)

It offers a network of robust community forums for users to discuss workflow and software development

d)

It doesn't allow users to organize meetups around the world to build community and knowledge bases

10.

What type of programming language is Python?

a)

Compiled

b)

Interpreted

c)

Assembly

d)

Machine

11.

Why is it beneficial to use variables in Python?

a)

They help make code more difficult to read

b)

They provide a way to store and manipulate data within a program

c)

They increase the likelihood of errors in our code

d)

They reduce the readability and organization of our code

12.

How is the data type of a variable determined in Python?

a)

By the programmer declaring the data type

b)

By the operating system of the computer

c)

By the type of value assigned to the variable

d)

By the interpreter used to run the program

13.

What is the benefit of updating variables in Python?

a)

It makes the code less flexible

b)

It reduces the readability of the code

c)

It provides a way to change the value of the variable throughout the course of the program

d)

It increases the likelihood of errors in our code

14.

What are integers?

a)

Numbers with a decimal point

b)

Numbers in exponential form

c)

Whole numbers without a decimal point

d)

A sequence of characters used to represent text

15.

Which of the following are examples of floats?

a)

3, 5, 10

b)

3.14, -2.5, 20.8

c)

2j, 3+2j

d)

None of the above

16.

How are complex numbers expressed in Python?

a)

a+bj

b)

a-bj

c)

a+b

d)

a-b

17.

Why are numeric data types important?

a)

They allow you to perform text processing tasks

b)

They allow you to perform logical operations

c)

They allow you to perform mathematical operations and calculations

d)

They are used for input/output operations

18.

What is a string?

a)

A built-in data type in Python

b)

A sequence of characters that represents whole numbers

c)

A sequence of characters that represents text

d)

A data type that has two possible values: True and False

19.

What are some tasks that strings are used for?

a)

Mathematical operations and calculations

b)

Searching, replacing, and formatting text

c)

Logical operations

d)

Input/output operations

20.

What is a Boolean data type?

a)

A data type that represents text

b)

A data type that represents whole numbers

c)

A data type that has two possible values: True and False

d)

A data type that represents complex numbers

21.

How is the Boolean data type created in Python?

a)

By using the keywords True and False

b)

By using the keyword None

c)

By using the keyword Boolean

d)

By using the keyword Null

22.

Why are Boolean data types important in programming?

a)

They allow for mathematical operations and calculations

b)

They allow for text processing tasks

c)

They allow for logical operations and decision making

d)

They are used for input/output operations

23.

What control flow statements often use Boolean data types?

a)

For loops

b)

While loops

c)

If-else statements

d)

None of the above

24.

What is a list in Python?

a)

A data type used to store an ordered collection of elements

b)

A data type used to store a collection of unique elements

c)

A data type used to store text

d)

A data type used to store integers and floats

25.

What is a tuple in Python?

a)

A data type used to store an ordered collection of elements

b)

A data type used to store a collection of unique elements

c)

A data type used to store text

d)

A data type used to store integers and floats

26.

Which of the following data types is mutable?

a)

List

b)

Tuple

c)

String

d)

Set

27.

Which of the following data types is immutable?

a)

List

b)

Tuple

c)

String

d)

Set

28.

What is a set in Python?

a)

A data type used to store an ordered collection of elements

b)

A data type used to store a collection of unique elements

c)

A data type used to store text

d)

A data type used to store integers and floats

29.

What is the syntax for creating a list in Python?

a)

{ }

b)

( )

c)

[ ]

d)

< >

30.

What is the syntax for creating a tuple in Python?

a)

{ }

b)

( )

c)

[ ]

d)

< >

31.

What is the syntax for creating a set in Python?

a)

{ }

b)

( )

c)

[ ]

d)

< >

32.

Which of the following is a characteristic of tuples in Python?

a)

Tuples are mutable

b)

Tuples can store duplicate values

c)

Tuples are defined using square brackets

d)

Tuples are immutable

33.

Which of the following is a characteristic of sets in Python?

a)

Sets can store duplicate values

b)

Sets are ordered

c)

Sets are defined using parentheses

d)

Sets only contain unique elements

34.

What arithmetic operator is used to add two operands?

a)

*

b)

/

c)

-

d)

%

35.

What comparison operator returns True if both operands are not equal?

a)

==

b)

!=

c)

<=

d)

>=

36.

What logical operator returns True if both operands are true?

a)

and

b)

or

c)

not

d)

Noe of the above

37.

What assignment operator is used to assign a value to a variable?

a)

=

b)

-

c)

/

d)

*

38.

What membership operator returns True if the specified value is found in the sequence?

a)

not in

b)

in

c)

==

d)

>

39.

What arithmetic operator is used to raise the first operand to the power of the second operand?

a)

+

b)

-

c)

*

d)

**

40.

What comparison operator returns True if the first operand is less than the second operand?

a)

==

b)

!=

c)

<

d)

>

41.

What logical operator returns True if either of the operands is true?

a)

and

b)

or

c)

not

d)

None of the above

42.

What assignment operator can be combined with one of the arithmetic operators to perform an arithmetic operation and assign the result to the variable?

a)

+

b)

/

c)

*

d)

=