Data types
Logical operators
Miscellaneous
string functions
logic
100

What are three basic data types?

integer,float and string

100

What are the two logical operators in python

and,or

100

What's the output of this:-

a=20%3

print(a)

2

100

check if correct or incorrect?

a="The world is a beautiful place"

correct

100

What's the output:-

a=10

b=100

print("a=b")

a=b

200

Check if its correct or incorrect:-

NUM=200

print(num)

incorrect

200

What's the output of these statements

a=100

b=200

print(a<b and a==b)

False

200

What's the output of this:-

a=240

b=12

c=float(a/b)

print(c)

20.0

200

Does isupper() return a boolean value?

True

200

What's the output of this: -

a="Sunshine"

b=12

print(a+b)

Error

300

What's the output for these statements:-

a=10

b=20

print("Value of a is ",a+b)

Value of a is 30

300

What's the output of this:-

a=100

b=200

print(a<b or a==b)

True

300

What's the operator of integer division

//

300

What's the output of this:-

name="sunshine"

print(name.title())

Sunshine

300

What's the output?

a=13.4

b=17.5

print(a+int(b))

30.4

400

What's the data type of the name variable

name=100

integer

400

Do logical operators return Boolean value?

yes

400

What's the output of this?

print(17/2)

print(17%2)

print(17//2)

8.5,1,8

400

What's the output of this statement?

name="WVA"

print(name.lower())

wva

400

What's the output?

a=10.78

b=100.65

print(int(a+b))

111

500

What's the data type of num variable

num="100"

String

500

Check if the output of the statement is correct or incorrect?

and operator returns true only if both the conditions are true


correct

500

What's the output of this expression

16+20-18*(2+8)*6%2

36

500

Name six string functions

upper,lower,title,isupper,islower,istitle

500

What's the output of this:-

a=100.2

b=13.2

c=14.78

print(a+b+int(c))

127.4