Python Quiz

Python Quiz

12th Grade

30 Qs

quiz-placeholder

Similar activities

Computational Thinking, Algorithms & Flowcharts

Computational Thinking, Algorithms & Flowcharts

8th - 12th Grade

28 Qs

Principles of Business chapter 1

Principles of Business chapter 1

9th - 12th Grade

25 Qs

Abstraction and Decomposition

Abstraction and Decomposition

12th Grade

25 Qs

8-2 PTS INFORMATIKA

8-2 PTS INFORMATIKA

8th Grade - University

25 Qs

SUMMER BOOTCAMP QUIZ 3 AGE 13-17

SUMMER BOOTCAMP QUIZ 3 AGE 13-17

9th - 12th Grade

25 Qs

Adobe Illustrator Quiz Review

Adobe Illustrator Quiz Review

9th - 12th Grade

27 Qs

Search Algorithms

Search Algorithms

9th - 12th Grade

25 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Rehaal Qureshi

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?