NEW
Font size
WorksheetsPython Quiz – Data Types and If Statements
Total questions: 14
Worksheet time: 7mins
I am 42. Who am I?
int
float
str
complex
I am 'Hello'. Who am I?
int
float
str
complex
I am 3.14. Who am I?
int
float
str
complex
I am 5 + 2j. Who am I?
int
float
str
complex
Rezultati i int('123') në Python është:
float
int
str
complex
numri = 5 if numri > 3: print('Po') Çka printohet?
Po
Jo
Nuk printon asgjë
Gabim
n = -2 if n > 0: print('Pozitiv') Çka ndodh?
Printon 'Pozitiv'
Nuk printon asgjë
Gabim
Printon -2
Cili if kontrollon nëse tekst == 'hello'?
if tekst = 'hello':
if tekst == 'hello':
if tekst === 'hello':
if tekst != 'hello':
x = 150 if x > 100: print('Numër i madh') Çka printohet?
Printon 'Numër i madh'
Printon 'Vogël'
Nuk printon asgjë
Gabim
y = 30 if y < 50: print('Vogël') Çka printohet?
Printon 'Vogël'
Printon 'I madh'
Nuk printon asgjë
Gabim
numri = 10 if numri == 10: print('Po') Is the above code correct?
True
False
n = -5 if n > 0: print('Pozitiv') Is the above code correct?
True
False
x = 100 if x != 100: print('Jo') Is the above code correct?
True
False
tekst = 'hello' if tekst == 'Hello': print('Përputhet') Is the above code correct?
True
False
