NEW
Font size
WorksheetsPython Ch 1
Total questions: 10
Worksheet time: 2mins
Who has developed Python?
George Smith
Bill Gates
Guido van Hussain
Guido van rossum
In which mode of Python you type the command and get output on hitting enter
Interactive mode
Editor
Script mode
Command prompt
What is the output of the following code in python
print('Hello , World')
HelloWorld
Hello World
Hello , World
Hello,World
Name the type of token: else
Identifier
Operator
Punctuator
Keyword
Name the category of these operators:
< ==
Arithmetic
Relational
Logical
Assignment
Tell the correct type of type(56.5)
<class 'int'>
<class 'float'>
<class 'str'>
<class 'list'>
Which of the following is the correct way to create a list?
Fruits =("apple", "mango")
Fruits ={"apple", "mango"}
Fruits =["apple", "mango"]
Which of the following is the correct way to create a tuple?
Fruits =("apple", "mango")
Fruits ={"apple", "mango"}
Fruits =["apple", "mango"]
What is the result of this expression: 6 + 3 *7
63
27
70
20
Which of the following is the correct option on execution of this expression
(20 > 400) and (20 < 10 )
True
False
None
