Python Quiz-1

Python Quiz-1

University

16 Qs

quiz-placeholder

Similar activities

Quiz Microprogramming

Quiz Microprogramming

University

15 Qs

Pra UPS 2

Pra UPS 2

University

20 Qs

STM 2013 : FORMATIF T3-FORM & REPORT

STM 2013 : FORMATIF T3-FORM & REPORT

University

20 Qs

Quiz Inf X.B

Quiz Inf X.B

10th Grade - University

20 Qs

From Binary To Denary Conversion - IGCSE

From Binary To Denary Conversion - IGCSE

7th Grade - Professional Development

20 Qs

Redes Vlan

Redes Vlan

University

15 Qs

DWDM-2

DWDM-2

University

20 Qs

Kuis Artificial Intelligence

Kuis Artificial Intelligence

University

15 Qs

Python Quiz-1

Python Quiz-1

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

K Hemant Reddy

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...

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the value of the following Python expression?

print(4 + 3 % 5)

7

5

2

1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to define a block of code in Python language?

Indentation

Key

Brackets

All of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following Python code?

a) 1 2 3

b) SyntaxError

c) 1 2

d) none of the mentioned

4.

MULTIPLE CHOICE QUESTION

30 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

30 sec • 1 pt

char = ‘E’

ascii_value = ord(char)

next_char = chr(ord(char) + 1)

print(chr(ascii_value+(ord(next_char)-ord(char))))

D

H

E

F

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the truncation division operator in Python?

a) |

b) //

c) /

d) %

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Find the correct output of the following code

0

1

2

3

4

5

1

2

3

4

5

0

1

4

5

0

1

2

3

4

5

6

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?