Python Quiz

Python Quiz

University

10 Qs

quiz-placeholder

Similar activities

Software Engineering :TEST 2

Software Engineering :TEST 2

University

10 Qs

Dasar-Dasar Komputer - PPW23

Dasar-Dasar Komputer - PPW23

University

15 Qs

ADVACOMT-Quiz No.1 (final term)

ADVACOMT-Quiz No.1 (final term)

University

15 Qs

SAN Module 4 Quiz

SAN Module 4 Quiz

University

15 Qs

Firewall and Network Security

Firewall and Network Security

University

15 Qs

Soal SKD

Soal SKD

University - Professional Development

10 Qs

Week 4

Week 4

University

15 Qs

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?