Python Quiz

Python Quiz

9th Grade

61 Qs

quiz-placeholder

Similar activities

Coding Quiz Challenge

Coding Quiz Challenge

9th - 12th Grade

60 Qs

Chapter 1 Computer Basics

Chapter 1 Computer Basics

9th - 12th Grade

57 Qs

MBI CSEC IT Computer fundamentals

MBI CSEC IT Computer fundamentals

7th Grade - Professional Development

60 Qs

Year 7 quiz - Revision / SEND & No Assessment

Year 7 quiz - Revision / SEND & No Assessment

9th Grade

63 Qs

ICT - 4

ICT - 4

6th - 10th Grade

59 Qs

ICT CBP 1st Qtr Exam Einstein

ICT CBP 1st Qtr Exam Einstein

9th Grade

56 Qs

Scratch Coding

Scratch Coding

3rd - 12th Grade

60 Qs

Week 12 - Even More Lists

Week 12 - Even More Lists

9th - 12th Grade

58 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

9th Grade

Easy

Created by

Shaun Billones

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?