Python Programming Quiz

Python Programming Quiz

12th Grade

14 Qs

quiz-placeholder

Similar activities

AL-(S)

AL-(S)

12th Grade

10 Qs

Python Revision

Python Revision

11th - 12th Grade

15 Qs

Revisão de Python

Revisão de Python

10th Grade - University

10 Qs

Numpy 4 life

Numpy 4 life

9th - 12th Grade

10 Qs

Dictionary Class 11

Dictionary Class 11

11th - 12th Grade

12 Qs

PCEP Section 4D: Basics of Python Exception Handling

PCEP Section 4D: Basics of Python Exception Handling

12th Grade

15 Qs

Database concepts

Database concepts

12th Grade

16 Qs

Computer Engineering - Python Exam

Computer Engineering - Python Exam

12th Grade

18 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

dcsgs sdfdg

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to display output in Python?

show()

output()

print()

display()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to take input from the user in Python?

fetch()

get()

read()

input()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the range function return?

A list of strings

A string

A sequence of numbers

A single number

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used for a single line comment in Python?

/*

--

#

//

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the isalnum() method check for in a string?

If all characters are alphabets

If all characters are digits

If all characters are lowercase

If all characters are alphanumeric

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to add an element to the end of a list?

extend()

append()

add()

insert()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to create a tuple in Python?

tuple = {1, 2, 3}

tuple = <1, 2, 3>

tuple = (1, 2, 3)

tuple = [1, 2, 3]

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?