Font size
WorksheetsPyhon module 1
Total questions: 32
Worksheet time: 17mins
Is python compiled language ?
Yes
No
No Idea
What will be the output of :
a = 4.5
b = 2
print( a//b )
2.0
2.5
2.25
Error
What command is used to insert 6 in a list "L" at 3rd position?
L.insert(3,6)
L.add(3,6)
L.insert(2,6)
L.append(2,6)
list = 5*[0]+5*[10]
What is the output of this?
Error
[0,0,0,0,0,10,10,10,10,10]
[50]
[5,50]
Which of the following types of computer languages uses binary code to communicate with the computer?
High-level languages
Assembly languages
Machine language
Database languages
What are the names of the two types of mode that are used in Python? Select two.
Interactive mode
Scratch mode
Imperial mode
Script mode
print(3*4+5)
if we only import the module then we need to use the function like -
function
module.function()
both
none
Which python data type is mutable is nature ?
list
tuple
int
string
Which of the following operator is used to compare operator -
!=
<=
==
all of the above
Which of the following is known as the bitwise operator -
and
&
==
none
Is python an interpreter or compiler programming language?
Compiler
Interpreter
Which one will display when this code is run?
print("3+4")
Which operator is used in python to import all modules from packages?
. operator
* operator
-> symbol
, operator
Each item in a list has an index. What is the first index in a Python list?
0
1
a
A
What is the Python built-in function to converts a number to a string?
str()
int()
parseInt()
convert
print("Hello" + "world" + "today")
What will the output be from the following code?
print Hello world!
Hello world!
SyntaxError
Hello world
print Hello world!
