Font size
WorksheetsPython-Interactive Mode
Total questions: 15
Worksheet time: 12mins
Computer works in 3 stages. Which of the following is NOT one of them?
Input
Output
Processing
Thinking
Sequence of instructions written in programming language that specifies how to perform a work is called
(a)
Python is a programming language that is used to write code.
True
False
In Python Interactive mode
All the instructions are executed at once.
Only one instruction is executed at a time
In Interactive Mode, the commands are typed next to?
>>>
<<<
///
!!!
What will be the output of this command?
>>> 'I Love Python'
i love python
I LOVE PYTHON
I Love Python
I love python
Give the ouput of the following command.
>>> '10+2.5*5'
22.5
10+2.5*5
62.5
22
Solve the following mathematical expression: 10*8-30+10*5/10
(a)
The function used to display the output on the screen is
Print( )
print( )
Give the output of the following print function
>>> print('10+20=',10+20)
10+20= 30
30=30
30=10+20
10+20=10+20
The values passed in the parenthesis of a function are called
Message
Arguments
Comments
Expressions
Grammatical rules for writing a program in any programming language is called
(a)
Give the output:
>>> print('Computer','Science')
Computer Science
ComputerScience
computer science
computerscience
Give the output:
>>> Print('type anything here')
'type anything here'
It will give error
type anything here
Type Anything Here
The comma seperator in print( ) function gives how many spaces between the values?
1 space
2 spaces
5 spaces
no space
