Search Header Logo

Python Revision

Authored by Mai Ghamdi

Computers

7th Grade

Used 7+ times

Python Revision
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

53 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax for the input ( ) function in Python?

a) input("Enter your name: ")

b) Input("Enter your name: ")

c) input["Enter your name: "]

d) INPUT("Enter your name: ")

2.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

(a)   is the correct syntax for the input ( ) function in Python?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the print ( ) function do in Python?

a) Accepts user input

b) Displays output to the console

c) Performs mathematical operations

d) Reads data from a file

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about the print ( ) function?

a) It returns a value

b) It can only display integers

c) It can display strings and variables

d) It can execute conditional statements

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print( ) in Python is a/an..............

a) Identifier

b) function

c) data type

d) None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Commenting in Python can be done by using ...........

a) @

b) DoubleQuotes“”

c) #

d) None

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following are valid Python variable names?

a) total123

b) ca$h

c) abc_abc_

d) If

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?