WorksheetsPython
Total questions: 20
Worksheet time: 11mins
Python language was developed in what year?
1985
2001
1991
1820
What output will the console show, if 15 and 30 are entered by the user?
Syntax error
The sum of the two numbers
The concatenation of the two numbers
Complier error
Which one will display when this code is run?
None of the above
Wrong statement
After which circus was Python named ??
(a)
What extension must be added to the end of a file when saving in python ?
holds whole numbers
holds a decimal point in a number
Which of the following is an acceptable variable name?
no-text
8text
no_text
no_text$
What would be printed by the command
print('12-5')
12-5
'12-5'
7
'7'
print(Hello world!)
Which one is NOT a legal variable name?
my_var
myvar
_myvar
my-var
Which operator can be used to compare two values?
=
<>
><
==
Which of the following is a data type in Python? Select multiple answers.
int
words
string
decimals
How difficult was the quiz?
Easy
Medium
Hard
Extremely Difficult
