Python Revision

Python Revision

7th Grade

53 Qs

quiz-placeholder

Similar activities

Python Basics 2019

Python Basics 2019

7th Grade

49 Qs

Databricks Certified Data Engineer Quiz part 2

Databricks Certified Data Engineer Quiz part 2

1st Grade - University

50 Qs

Digital Devices

Digital Devices

5th Grade - University

50 Qs

CG Module3 if, for, while, functions, Objects and Classes

CG Module3 if, for, while, functions, Objects and Classes

4th Grade - University

55 Qs

Midterm Review

Midterm Review

6th - 8th Grade

48 Qs

Quiz Pemrograman Python

Quiz Pemrograman Python

7th - 12th Grade

50 Qs

Ulangkaji ASK Ting 2 Bab 3.1 Persekitaran Kod Arahan

Ulangkaji ASK Ting 2 Bab 3.1 Persekitaran Kod Arahan

1st - 12th Grade

52 Qs

Computer Programming Function

Computer Programming Function

7th Grade - University

55 Qs

Python Revision

Python Revision

Assessment

Quiz

Computers

7th Grade

Medium

Created by

Mai Ghamdi

Used 7+ times

FREE Resource

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 BLANK QUESTION

1 min • 1 pt

................................. 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

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?