NEW
Font size
WorksheetsXI Computer Science - 3
Total questions: 28
Worksheet time: 14mins
The correct command to give "Hello World" output in python is ___
print("Hello World");
write("Hello World")
output("Hello World")
print("Hello World")
Python language is an interpreted language and not a compiled language.
True
False
A string literal must be enclosed in double quotes not a single quotes.
True
False
Python can be used for various purposes such as creating GUI applications, websites, database, networking, etc. Therefore, it is called 'Battery included' language.
True
False
The smallest individual unit in a program is known as
Token
Literal
Keyword
Comment
Fully compiled languages are slower than interpreted language.
True
False
A___is a word having special meaning reserved by programming language
Token
Identifiers
Keywords
Literals
Python is a portable language.
True
False
Which one of the following is wrong about variable names?
Variable name must be a keyword
Variable name cannot contain space
Variable name cannot begin with numbers
Variable name can be letters, numbers or underscore
Python is the fastest language in the world.
True
False
The only special character allowed for a variable name is
Hash #
Asterisk *
Ampersand &
Underscore _
Which one of the following characters is used for the end character in a multi-line string?
\
\n
/
/n
Which one of the following is the correct form of a complex number in Python?
a + bi
a + bj
ai + b
aj + b
The number that begins with 0x (zero followed by letter x) is
Decimal number
Octal number
Hexadecimal number
Complex number
The literal that is used to indicate the absence of value is
False
None
Null
Empty
Tokens that trigger some computation when applied to variables and others in expression.
Punctuators
Identifiers
Operators
Literals
Which one of the following operators is used to check equality?
=
==
!=
< >
Which one of the following is an identity operator in Python?
true
false
is
none
Any valid or legal combination of symbols that represents a value is called
Expressions
Identifiers
Keywords
Literals
Comments in Python starts with the character
Hash #
Asterisk *
Ampersand &
Underscore _
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
Dynamic Typing
Dynamic Pointing
Static Typing
Static Pointing
A print( ) function without any value or name or expression will print ___
Empty
Null
None
Blank Line
Escape sequences are treated as ___
Strings
Characters
Integers
Floats
The input( ) function always returns a value of string type.
True
False
The full form of IPO is ______
Input Process Output
Input Processing Output
Input Program Output
Input Parallel Output
An escape sequence represents a single character and hence occupies one byte in ASCII representation.
True
False
Comments enclosed in triple quotes(""") or triple apostrophe(''') are called __
Tripple comments
Docstrings
String comments
Tri-comments
A token is also known as a lexical unit.
True
False
