Python Basics Revision

Python Basics Revision

6th - 8th Grade

13 Qs

quiz-placeholder

Similar activities

Python Quiz - 4

Python Quiz - 4

4th - 11th Grade

10 Qs

python String and comment

python String and comment

3rd Grade - University

13 Qs

year 8 lesson 2 quiz - python

year 8 lesson 2 quiz - python

8th - 10th Grade

14 Qs

Python Basic

Python Basic

6th - 8th Grade

10 Qs

Class VIII_Basic Python Programming Quiz

Class VIII_Basic Python Programming Quiz

8th Grade

10 Qs

Python for Class 7

Python for Class 7

7th - 8th Grade

11 Qs

Python

Python

7th - 8th Grade

13 Qs

Python Basics

Python Basics

KG - University

16 Qs

Python Basics Revision

Python Basics Revision

Assessment

Quiz

Computers

6th - 8th Grade

Hard

Created by

Alex vZ

Used 2+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to get user input in Python?
input()
print()
read()
scan()
getline()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you display output in Python?
print()
input()
display()
show()
echo()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 5 + 3 in Python?
8
"8"
53
"53"
Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?
my_var
123var
$var
1_var
var-2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you convert an integer to a string in Python?
str()
int()
convert()
to_string()
string()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the code: print("Hello, " + "World")?
Hello, World
"Hello, World"
Hello, +, World
HelloWorld
Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types is used for whole numbers in Python?
int
float
string
char
bool

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?