Python Programming Quiz

Python Programming Quiz

7th Grade

25 Qs

quiz-placeholder

Similar activities

Python MCQ

Python MCQ

6th - 8th Grade

25 Qs

Prog F: Quiz 1 Revision

Prog F: Quiz 1 Revision

6th - 8th Grade

20 Qs

Python 6 Класс

Python 6 Класс

6th - 8th Grade

26 Qs

Python basics

Python basics

2nd - 9th Grade

20 Qs

Python Basics 3

Python Basics 3

6th Grade - University

30 Qs

Python Programming Test 2

Python Programming Test 2

7th Grade

30 Qs

Python Coding 4 Quiz

Python Coding 4 Quiz

6th - 8th Grade

20 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

7th Grade

Medium

Created by

Clarisa Guinto

Used 3+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to display output in Python?

display()

show()

print()

output()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which character is used to insert a newline in Python output?

\t

\n

\r

\b

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of the 'end' parameter in the print function?

None

'\n'

'\t'

' '

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to format a string using f-strings?

print(f'Value: {value}')

print('Value: {value}')

print('Value: %s' % value)

print('Value: {0}' % value)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is used to represent whole numbers in Python?

float

int

str

bool

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an immutable data type in Python?

list

tuple

set

dict

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to accept user input in Python?

get()

scan()

read()

input()

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?