Search Header Logo

Computer Programming Quiz

Authored by Rafael Araujo

Computers

12th Grade

Computer Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

100 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in a computer program?

A storage location with a name and a value

A type of computer hardware

A programming language

A type of software

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the assignment operator = do in Python?

Compares two values

Assigns a value to a variable

Multiplies two numbers

Divides two numbers

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

6pack

can_volume

can volume

class

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of the value 3.14 in Python?

int

float

str

bool

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a floating-point number?

42

-3.14

0

100

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

16

11

13

10

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the print function do in Python?

Reads input from the user

Displays output to the screen

Saves data to a file

Terminates the program

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?