wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

XI Computer Science - 3

Total questions: 28

Worksheet time: 14mins

Name
Class
Date
1.

The correct command to give "Hello World" output in python is ___

a)

print("Hello World");

b)

write("Hello World")

c)

output("Hello World")

d)

print("Hello World")

2.

Python language is an interpreted language and not a compiled language.

a)

True

b)

False

3.

A string literal must be enclosed in double quotes not a single quotes.

a)

True

b)

False

4.

Python can be used for various purposes such as creating GUI applications, websites, database, networking, etc. Therefore, it is called 'Battery included' language.

a)

True

b)

False

5.

The smallest individual unit in a program is known as

a)

Token

b)

Literal

c)

Keyword

d)

Comment

6.

Fully compiled languages are slower than interpreted language.

a)

True

b)

False

7.

A___is a word having special meaning reserved by programming language

a)

Token

b)

Identifiers

c)

Keywords

d)

Literals

8.

Python is a portable language.

a)

True

b)

False

9.

Which one of the following is wrong about variable names?

a)

Variable name must be a keyword

b)

Variable name cannot contain space

c)

Variable name cannot begin with numbers

d)

Variable name can be letters, numbers or underscore

10.

Python is the fastest language in the world.

a)

True

b)

False

11.

The only special character allowed for a variable name is

a)

Hash #

b)

Asterisk *

c)

Ampersand &

d)

Underscore _

12.

Which one of the following characters is used for the end character in a multi-line string?

a)

\

b)

\n

c)

/

d)

/n

13.

Which one of the following is the correct form of a complex number in Python?

a)

a + bi

b)

a + bj

c)

ai + b

d)

aj + b

14.

The number that begins with 0x (zero followed by letter x) is

a)

Decimal number

b)

Octal number

c)

Hexadecimal number

d)

Complex number

15.

The literal that is used to indicate the absence of value is

a)

False

b)

None

c)

Null

d)

Empty

16.

Tokens that trigger some computation when applied to variables and others in expression.

a)

Punctuators

b)

Identifiers

c)

Operators

d)

Literals

17.

Which one of the following operators is used to check equality?

a)

=

b)

==

c)

!=

d)

< >

18.

Which one of the following is an identity operator in Python?

a)

true

b)

false

c)

is

d)

none

19.

Any valid or legal combination of symbols that represents a value is called

a)

Expressions

b)

Identifiers

c)

Keywords

d)

Literals

20.

Comments in Python starts with the character

a)

Hash #

b)

Asterisk *

c)

Ampersand &

d)

Underscore _

21.

A variable pointing to a value of a specific type can be made to point to a value or object of a different type. This is called

a)

Dynamic Typing

b)

Dynamic Pointing

c)

Static Typing

d)

Static Pointing

22.

A print( ) function without any value or name or expression will print ___

a)

Empty

b)

Null

c)

None

d)

Blank Line

23.

Escape sequences are treated as ___

a)

Strings

b)

Characters

c)

Integers

d)

Floats

24.

The input( ) function always returns a value of string type.

a)

True

b)

False

25.

The full form of IPO is ______

a)

Input Process Output

b)

Input Processing Output

c)

Input Program Output

d)

Input Parallel Output

26.

An escape sequence represents a single character and hence occupies one byte in ASCII representation.

a)

True

b)

False

27.

Comments enclosed in triple quotes(""") or triple apostrophe(''') are called __

a)

Tripple comments

b)

Docstrings

c)

String comments

d)

Tri-comments

28.

A token is also known as a lexical unit.

a)

True

b)

False