Python Quiz

Python Quiz

12th Grade

30 Qs

quiz-placeholder

Similar activities

Programming Language

Programming Language

9th - 12th Grade

26 Qs

Reading From a File in Python

Reading From a File in Python

9th - 12th Grade

27 Qs

PYHON MYSQL CONNECTIVITY

PYHON MYSQL CONNECTIVITY

12th Grade

25 Qs

Lists

Lists

11th - 12th Grade

28 Qs

Python Loops

Python Loops

9th - 12th Grade

27 Qs

Python Beginner

Python Beginner

6th - 12th Grade

30 Qs

Python Conditional Statements

Python Conditional Statements

9th - 12th Grade

25 Qs

What i lerned in cumputer science

What i lerned in cumputer science

8th - 12th Grade

25 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Rehaal Qureshi

Used 4+ 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 language?

Key

Brackets

Indentation

None

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used for function in Python language?

Define

Function

fun

def

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List is ______ and tuple is _____

Mutable, immutable

Mutable , Mutable

Immutable, Immutable

Immutable, Mutable

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following character is used to give single-line comments in Python?

#

//

/* */

!

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code snippet if x=1?

x<<2

1

2

4

8

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct extension of the Python file?

.p

.pl

.py

.pyp

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is Python code compiled or interpreted?

a) Python code is both compiled and interpreted

b) Python code is neither compiled nor interpreted

c) Python code is only compiled

d) Python code is only interpreted

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?