Python Quiz

Python Quiz

University

10 Qs

quiz-placeholder

Similar activities

KIỂM TRA BUỔI 1

KIỂM TRA BUỔI 1

University

10 Qs

Computational Thinking in Python[Quiz 3]

Computational Thinking in Python[Quiz 3]

University

15 Qs

Understanding Email, Contacts and Calendaring

Understanding Email, Contacts and Calendaring

University

10 Qs

Perangkat komputer

Perangkat komputer

University

10 Qs

Logika Fuzzy

Logika Fuzzy

University

10 Qs

BB

BB

University

10 Qs

Tree and Planar Graph

Tree and Planar Graph

University

10 Qs

CodeMonkey for B.Ed IT

CodeMonkey for B.Ed IT

University

10 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Aditya Bakshi

Used 10+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

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

.python

b) .pl

c) .py

d) .p

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

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

a) //

b) #

c) !

d) /*

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What will be the output of the following Python code?

a) 1 2 3

b) error

c) 1 2

d) none of the mentioned

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

x<<2

a) 4

b) 2

c) 1

d) 8

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is true for variable names in Python?

a) underscore and ampersand are the only two special characters allowed

b) unlimited length

c) all private members must have leading and trailing underscores

d) none of the mentioned

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What will be the output of the following Python code?

a) error

b) 1 2 3 4

c) a b c d

d) 0 1 2 3

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What will be the output of the following Python program?

a) error

b) 0 1 2 0

c) 0 1 2

d) none of the mentioned

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?