Search Header Logo

Python (Unit 1 & 2)

Authored by Battala Krishna

Computers

12th Grade

Used 1+ times

Python (Unit 1 & 2)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which keyword is used for function in Python language?

define

function

fun

def

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

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

//

#

!

''' '''

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

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

|

/

//

%

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What will be the output of the following Python function?

len([5,6,'abc',4.7])

4

error

3

5

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What will be the output of the following Python code snippet?

z=set('abc$de')

'a' in z

error

true

false

a

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following code snippet?

a = [1, 2, 3, 4, 5]

sum = 0

for ele in a:

sum += ele

print(sum)

0

20

15

error

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What bit processor is used in Pi 3?

32-bit

64-bit

Both 64 and 32 bit

128-bit

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?