Search Header Logo

Python Quiz

Authored by Shaun Billones

Computers

9th Grade

Used 1+ times

Python Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

61 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A program calculates the area of a rectangle. If LENGTH is declared as a constant, which of the following is the correct usage?

LENGTH=5

DECLARE LENGTH AS CONSTANT<----5

SET LENGTH<----5

CONSTANT LENGTH=5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a program, which variable types should be declared as a constant?

Temperature measured in Celsius

A user’s name

The fixed interest rate

A loop counter variable

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are programming a system that checks if a customer is eligible for a discount based on their age. Which datatype is best for storing the age?

String

Integer

Float

Boolean

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In an inventory system, which datatype would you use to store product names?

Boolean

Integer

String

Float

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A program requires the user to enter their grade. Which pseudocode line correctly retrieves this value?

OUTPUT 'Enter grade:'

READ grade

INPUT grade

DISPLAY grade

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In pseudocode, how would you display a message saying 'Hello, user!'?

INPUT 'Hello, user!'

DISPLAY 'Hello, user!'

SHOW 'Hello, user!'

OUTPUT 'Hello, user!'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a program that calculates the price of a meal after tax, which sequence of operations is correct?

Calculate tax -> Display price -> Add meal cost

Add meal cost -> Display price -> Calculate tax

Add meal cost -> Calculate tax -> Display price

Display price -> Add meal cost -> Calculate tax

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?