wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

BOP-1

Total questions: 15

Worksheet time: 15mins

Name
Class
Date
1.

A sequence of instructions in a computer language to get the desired result is known as :

a)

An algorithm

b)

A decision table

c)

A program

d)

A Flowchart

2.

A program which translates a high-level language program into a machine language program is called ?

a)

(A) Compiler

b)

(B) Interpreters

c)

(C) Both (A) and (B)

d)

(D) None of the above

3.

Which of the following statements is correct for variable names in Python language?

a)

All variable names must begin with an underscore.

b)

Unlimited length

c)

The variable name length is a maximum of 2.

d)

All of the above

4.
a)

Terminal

t

b)

Decision

c)

Process

d)

Input/Output

5.

Who developed Python Programming Language?

a)

a) Wick van Rossum

b)

b) Rasmus Lerdorf

c)

c) Guido van Rossum

d)

d) Niene Stom

6.

In which year was the Python language developed?

a)

1995

b)

1972

c)

1981

d)

1989

7.

In which language is Python written?

a)

C

b)

C++

c)

Java

d)

None

8.

Which of the following is the correct extension of the Python file?

a)

.python

b)

.pl

c)

.py

d)

.pn

9.

Which of the following character is used to give single-line comments in Python?

a)

//

b)

#

c)

%

d)

/*

10.

Which of the following words cannot be a variable in python language?

a)

_val

b)

val

c)

_try_

d)

try

11.

Which of the following is not a core data type in Python programming?

a)

Tuples

b)

Lists

c)

Class

d)

Dictionary

12.

Which of the following types of loops are not supported in Python?

a)

for

b)

while

c)

do-while

d)

None of the above

14.

Which of the following functions is a built-in function in python language?

a)

val()

b)

print()

c)

printf()

d)

None of these

15.

What will be the output of this statement?

str1 = "sonatech"  

str1[-1:]  

a)

h

b)

s

c)

sona

d)

tech