Search Header Logo

Datatype_Operators_quiz

Authored by jaya mulimani

Computers

KG - University

Used 2+ times

Datatype_Operators_quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print(type(3))

<class int>

<class str>

int

none of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assume, Num1=5, Num2=6.

1.     Num1 <  Num2

2.     Num1 <=  Num2

3.     Num1 > Num2

4.     Num1 >= Num2

5.     Num1 != Num2

Identify the expressions which would result in True?

1, 2, 3

1, 2, 5

2, 3, 4

1, 4, 5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose you have a bank account number, what do you think will be its data type? Example: 0000777888119 

int

string

float

bool

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the below code snippet?

num1 = 10

num2 = 5

num2 *= num1

print(num2)

50

10

25

100

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the below code snippet?

num1 = 50

num2 = 2

num3 = 3

num4 = 8

result = num1/num4-num3*num2+num4

print(result)

 100

14.5

8.25

-23.75

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Identify the below expressions which would result in False?

True and True

False and True

1==1 and 2==1

1==1 and 2!=1

True and 1==1

a. 2, 3

b. 1, 3, 5

c. 3, 4

d. 4, 5

a

b

c

d

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Identify the below expressions which would result in True?

"Yes" == "Ok"

not(True and False)

not("Landed"=="Landed" and "Flight"=="F101")

1==1 and (not(1==1 or 1==0))

a. 2, 3

b. 1, 2

c. 1. 3

d. 2, 4

a

b

c

d

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?