Python Quiz

Python Quiz

12th Grade

30 Qs

quiz-placeholder

Similar activities

Python - 2.தரவு அருவமாக்கம்

Python - 2.தரவு அருவமாக்கம்

12th Grade

35 Qs

Python Basics 3

Python Basics 3

6th Grade - University

30 Qs

XII - CS - Lesson 9 - List and Tuple - Quiz 1

XII - CS - Lesson 9 - List and Tuple - Quiz 1

12th Grade

25 Qs

PYHON MYSQL CONNECTIVITY

PYHON MYSQL CONNECTIVITY

12th Grade

25 Qs

JSON Schema Overview and Validation

JSON Schema Overview and Validation

12th Grade

26 Qs

Y12 Java syntax recap

Y12 Java syntax recap

11th - 12th Grade

27 Qs

EISB Rhapsody'24 Hackathon - Python

EISB Rhapsody'24 Hackathon - Python

9th - 12th Grade

30 Qs

Introduction to Python

Introduction to Python

KG - University

25 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Youngbot Academy

Used 6+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to define a block of code in Python

Indentation
Semicolons
Braces
Parentheses

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the keyword used to define a function in Python

func

function
define
def

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python


variable_1

variable-1

variable 1

1_variable

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a pass in Python?

A pass is a null statement in Python used as a placeholder.
A pass is a loop control statement in Python.
A pass is a function in Python that returns None.
A pass is a keyword used to define a class in Python.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can be used as a key in a Python dictionary?

tuple

Lists
Dictionaries
Sets

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a shallow copy, what happens if the original object contains a mutable object like a list?

The mutable object is cloned

The mutable object is copied entirely

The reference to the mutable object is copied

It raises an error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you combine two dictionaries in Python?

dict1.add(dict2)

dict1.update(dict2)

dict1 + dict2

merge(dict1, dict2)

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?