python programming quiz

python programming quiz

12th Grade - University

26 Qs

quiz-placeholder

Similar activities

Who Knows Me Better No.2

Who Knows Me Better No.2

7th Grade - Professional Development

21 Qs

bollywood

bollywood

KG - University

23 Qs

OH&E: Tissue Processing

OH&E: Tissue Processing

University - Professional Development

22 Qs

Density on the Conventional Radiograph

Density on the Conventional Radiograph

University - Professional Development

25 Qs

Quiz

Quiz

1st - 12th Grade

23 Qs

ARTIKEL

ARTIKEL

12th Grade

25 Qs

Overview of Dental Materials

Overview of Dental Materials

University

24 Qs

Teknologi Pangan

Teknologi Pangan

University

25 Qs

python programming quiz

python programming quiz

Assessment

Quiz

Other, Science, Professional Development

12th Grade - University

Practice Problem

Hard

Created by

Md Miah

Used 16+ times

FREE Resource

AI

Enhance your content in a minute

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

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Write the output of the following code:

x=2

x=5

x=x+x

print(x)

7

10

4

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Write the output of the following code :

x=2

y=3

x+y+5

print(x+y)

8

6

10

5

3.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

What is a keyword?

Reserved Word

Predefined Word

Keywords are part of the syntax and they cannot be used as an identifier.

All of them

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which statement will display square of number (n)

print(n * n)

print(math.pow(n,2)) # math module is already imported

All of the above

Only First

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following data types is not supported in python?

String

Number

List

Slice

6.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Select the reserved keyword in python-

else

raise

import

All of them

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of this string operation s[2:5] , if s="hello world" -

lo

llo

llow

ell

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?