Font size
WorksheetsClass 9 Computer Science Revision - Python
Total questions: 45
Worksheet time: 1hrs 3mins
(a) are the step by step instructions given to the computer for doing any work.
The 2 categories of programming languages are ___ ___ ___.
(a)
LLL stands for (a)
HLL stands for (a) .
Low Level Languages include
Binary (/Machine) language and Assembly language.
English like languages.
C, C++, Java & Python
Python, BASIC, PHP & Ada
High Level Languages are ________ languages which we can understand and use easily.
Binary
Machine
Assembly
English like
_______ are translator programs which High Level Language to Binary and vice versa.
LLL & Combilers
Compilers & Interpreters
LLL & Interpreters
HLL & LLL
(a) translates the whole prgm in 1 step & shows the errors only at the end & are faster than interpreters.
Interpreters translates the prgm (a) and shows the errors at the end of each line, and are easier than combilers
C, C++ and PASCAL are (a) languages.
Python, BASIC, Visual Basic ect. are (a) languages.
i) _______ is a high level, general purpose programming language.
ii) _______ got its name from a BBC comedy show, Monty Python's Flying Circus.
iii) _______ is an interpreter and object oriented language.
NB:- All qns have the same ans. These are 3 ways in which the qn can be asked.
(a)
Who invented Python programming language?
Mark Zuckerberg
Tim Berners-Lee
Guido van Rossum
Steve Jobs
Two modes of programming in python.
NB:- You can select a maximum of 2 answers.
Interactive mode or script mode
Programming mode or script mode.
Programming mode or shell mode
Interactive mode or shell mode
Shell mode or Script mode and Interactive mode or programming mode.
i) In _______ mode we cannot save the commands.
ii) In _______ mode only 1 statement at a time can be entered.
iii) In _______ mode, output is displayed for each print statement when enter key is pressed.
NB:- All qns have the same ans. These are 3 ways in which the qn can be asked.
(a)
i) In _______ mode, we can save the prgm for later use.
ii) In _______ mode, more than 1 statement can be entered.
iii) _______ mode will give the output only at the after saving and running it.
NB:- All qns have the same ans. These are 3 ways in which the qn can be asked.
(a)
IDLE stands for (a) .
IDE stands for ______________
Interactive Development Environment
Interface Development Environment
Integrated Development Environment
Interpreter Development Environment
Name a Python IDE.
(a)
We use _______ function to output data.
input()
print()
output()
output=
The _______ function takes input from the user & then evaluates the expression and displays the result as a string variable.
int()
eval()
print()
input()
The _______ function takes input from the user & then evaluates the expression and displays the result as a integer variable.
int()
eval()
print()
input()
The _______ function takes input from the user & then evaluates the expression and displays the result as a decimal value.
int()
eval()
print()
input()
i) A _______ is a named location used to store data in the memory.
ii) A _______ is a container that holds data which can be changed throughout the programming.
NB:- All qns have the same ans. These are 2 ways in which the qn can be asked.
(a)
A (a) is a type of variable whose value cannot be changed.
A constant is a type of (a) whose value cannot be changed.
We use (a) symbol before each one lined comment.
NB:- Only type the symbol, not its name.
Multiple lined comments starts and ends with triple quotes (''').
True
False
(a) are reserved words in python used by python interpreter to recognise the structure of a prgm.
i) An _______ is a name given to entities like class functions variables etc.
ii) An _______ are variable names that change their value during the execution of a prgm.
NB:- All qns have the same ans. These are 2 ways in which the qn can be asked.
(a)
Every value in python has a (a) .
Every (a) in python has a datatype.
(a) are special symbols that represent computation.
Operators are special (a) that represent computation.
Operators are special symbols that represent (a) .
The smallest individual unit of a python program is called (a) .
Colon (:), comma (,) and semi colon (;) includes in which token of python?
Punctuators
Literals
Identifiers
Operators
Constants in python whose values does not change during the execution of a prgm are called (a) .
Start a variable name with a number.
True
False
Don't use any special characters except underscore (_) in a variable name.
True
False
Use keywords for giving names to variables.
False
True
Python is a case-sensitive language.
False
True
Python operators are not applied on operands, which can be values or variables.
True
False
Python operators are categorized as Arithmetic, Assignment, Logical and Relational.
False
True
Identifiers should not start with alphabet, but with numbers.
True
False
