wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Class 9 Computer Science Revision - Python

Total questions: 45

Worksheet time: 1hrs 3mins

Name
Class
Date
1.

(a)   are the step by step instructions given to the computer for doing any work.

2.

The 2 categories of programming languages are ___ ___ ___.

(a)  

3.

LLL stands for (a)  

4.

HLL stands for (a)   .

5.

Low Level Languages include

a)

Binary (/Machine) language and Assembly language.

b)

English like languages.

c)

C, C++, Java & Python

d)

Python, BASIC, PHP & Ada

6.

High Level Languages are ________ languages which we can understand and use easily.

a)

Binary

b)

Machine

c)

Assembly

d)

English like

7.

_______ are translator programs which High Level Language to Binary and vice versa.

a)

LLL & Combilers

b)

Compilers & Interpreters

c)

LLL & Interpreters

d)

HLL & LLL

8.

(a)   translates the whole prgm in 1 step & shows the errors only at the end & are faster than interpreters.

9.

Interpreters translates the prgm (a)   and shows the errors at the end of each line, and are easier than combilers

10.

C, C++ and PASCAL are (a)   languages.

11.

Python, BASIC, Visual Basic ect. are (a)   languages.

12.

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)  

13.

Who invented Python programming language?

a)

Mark Zuckerberg

b)

Tim Berners-Lee

c)

Guido van Rossum

d)

Steve Jobs

14.

Two modes of programming in python.

NB:- You can select a maximum of 2 answers.

a)

Interactive mode or script mode

b)

Programming mode or script mode.

c)

Programming mode or shell mode

d)

Interactive mode or shell mode

e)

Shell mode or Script mode and Interactive mode or programming mode.

15.

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)  

16.

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)  

17.

IDLE stands for (a)   .

18.

IDE stands for ______________

a)

Interactive Development Environment

b)

Interface Development Environment

c)

Integrated Development Environment

d)

Interpreter Development Environment

19.

Name a Python IDE.

(a)  

20.

We use _______ function to output data.

a)

input()

b)

print()

c)

output()

d)

output=

21.

The _______ function takes input from the user & then evaluates the expression and displays the result as a string variable.

a)

int()

b)

eval()

c)

print()

d)

input()

22.

The _______ function takes input from the user & then evaluates the expression and displays the result as a integer variable.

a)

int()

b)

eval()

c)

print()

d)

input()

23.

The _______ function takes input from the user & then evaluates the expression and displays the result as a decimal value.

a)

int()

b)

eval()

c)

print()

d)

input()

24.

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)  

25.

A (a)   is a type of variable whose value cannot be changed.

26.

A constant is a type of (a)   whose value cannot be changed.

27.

We use (a)   symbol before each one lined comment.

NB:- Only type the symbol, not its name.

28.

Multiple lined comments starts and ends with triple quotes (''').

a)

True

b)

False

29.

(a)   are reserved words in python used by python interpreter to recognise the structure of a prgm.

30.

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)  

31.

Every value in python has a (a)   .

32.

Every (a)   in python has a datatype.

33.

(a)   are special symbols that represent computation.

34.

Operators are special (a)   that represent computation.

35.

Operators are special symbols that represent (a)   .

36.

The smallest individual unit of a python program is called (a)   .

37.

Colon (:), comma (,) and semi colon (;) includes in which token of python?

a)

Punctuators

b)

Literals

c)

Identifiers

d)

Operators

38.

Constants in python whose values does not change during the execution of a prgm are called (a)   .

39.

Start a variable name with a number.

a)

True

b)

False

40.

Don't use any special characters except underscore (_) in a variable name.

a)

True

b)

False

41.

Use keywords for giving names to variables.

a)

False

b)

True

42.

Python is a case-sensitive language.

a)

False

b)

True

43.

Python operators are not applied on operands, which can be values or variables.

a)

True

b)

False

44.

Python operators are categorized as Arithmetic, Assignment, Logical and Relational.

a)

False

b)

True

45.

Identifiers should not start with alphabet, but with numbers.

a)

True

b)

False