Python Quiz

Python Quiz

University

10 Qs

quiz-placeholder

Similar activities

How Safe are you? (Disclaimer: I do not own these questions)

How Safe are you? (Disclaimer: I do not own these questions)

University

10 Qs

QUIZZ 1 : DATABASE FUNDAMENTALS

QUIZZ 1 : DATABASE FUNDAMENTALS

University

10 Qs

Determining System Requirements

Determining System Requirements

University

11 Qs

INTO Artificial Intelligence

INTO Artificial Intelligence

University - Professional Development

10 Qs

ITF Chapter 1 Computing Devices

ITF Chapter 1 Computing Devices

University

14 Qs

Application Development Midterm Quiz

Application Development Midterm Quiz

University

15 Qs

Network Management Week 14

Network Management Week 14

University

10 Qs

Testeo de equipos - BIOS

Testeo de equipos - BIOS

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?