Python Programming Quiz

Python Programming Quiz

12th Grade

32 Qs

quiz-placeholder

Similar activities

Pascal for loop and algorithm

Pascal for loop and algorithm

12th Grade

27 Qs

Python Basics-01

Python Basics-01

9th - 12th Grade

32 Qs

Python Keywords

Python Keywords

11th - 12th Grade

31 Qs

lesson 6 - Control structure

lesson 6 - Control structure

12th Grade

30 Qs

Python Coding Specialist Exam

Python Coding Specialist Exam

9th Grade - Professional Development

31 Qs

Python Interaction

Python Interaction

10th - 12th Grade

31 Qs

Python L1 Programming Challenge

Python L1 Programming Challenge

1st - 12th Grade

30 Qs

Python 2d topic (типы данных, ввод, вывод)

Python 2d topic (типы данных, ввод, вывод)

6th - 12th Grade

27 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

AMBILI S

Used 2+ times

FREE Resource

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a key feature of Python compared to C?

Requires curly braces

Uses indentation to define blocks

Statically typed

Supports manual memory management

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a function in Python?

func

def

function

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the input() function return?

Integer

String

Float

Boolean

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is immutable?

List

Dictionary

Tuple

Set

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code print? print(3 // 2)

1

1.5

2

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a single-line comment in Python?

//

#

/*

--

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to find the length of a list in Python?

len()

size()

count()

length()

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?