Search Header Logo

Python Quiz Techno India

Authored by Rahul Mahato

Computers

University

Used 5+ times

Python Quiz Techno India
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What datatype is the object below?

L = [1, 23, ‘hello’, 1]

list

dictionary

array

tuple

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Write the output of below code:

a = True

b = False

c = True

if not a or b:   

print ("a")

elif not a or not b and c:   

print ("b")

elif not a or b or not b and a:   

print ("c")

else:   

print ("d")

a

b

c

d

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the answer to this expression, 22 % 3 is?

7

1

0

5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Operators with the same precedence are evaluated in which manner?

Right to Left

Left to Right

Can’t say

None of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following has the highest precedence in the expression?

Exponential

Addition

Multiplication

Parentheses

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose t = (1, 2, 4, 3), which of the following is incorrect?

print(t[3])

print(max(t))

print(len(t))

t[3] = 45

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is called when a function is defined inside a class?

Module

Class

Another function

Method

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?