31 characters
63 characters
No limit but 79 characters for better redability
All of the above.
re\new
new
re new
re ew
Built in datatype
Derived datatype
Concrete datatype
Abstract datatype
Class
List
Dictionary
Tuple
Brackets
Quotes
Braces
Parentheses
Compiled only
Interpreted
Assembly
Machine
round(45.8)
round(6352.898,2,5)
round()
round(7463.123,2,1)
32
33
31
30
Interactive Mode
Script Mode
Combination of Interactive and Script modes
All of these
C
C++
JAVA
PHP
Variable names in Python cannot start with number. However, it can contain number in any other position of variable name.
Variable names can start with an underscore.
Data type of variable names should not be declared.
None of the above.
student
s12
123
_123
\n
\t
\\
All of the above
Interpreter
Compiler
Combination of Compiler and Interpreter
all of these
yes
no
machine dependent
none of the mentioned
45
35
Number
String
Slice
Free and Open Source
Freeware
Open source
Shareware
int
float
bool
dict
What will be the output of the following Python code
def func(a, b=5, c=10): print('a is', a, 'and b is', b, 'and c is', c) func(13, 17) func(a=2, c=4) func(5,7,9)
(A) a is 13 and b is 15 and c is 10
a is 2 and b is 5 and c is 4
a is 5 and b is 7 and c is 9
(B) a is 13 and b is 17 and cis 10
a is 2 and b is 4 and c is 4
a is 5 and b is 9 and c is 7
(C) a is 13 and b is 17 and c is 10
a is 2 and b is 5 and cis 4
(D) None of the above
option A
option B
option C
option D
_py_
var
_var
try
variable
literal
identifier
comment
.py
.python
.p
None of these
get()
seek()
tell()
cur()
val
raise
with
Error
Expression
Portability
Reliability
Variable
Literals
Identifiers
Comment
string
complex
Variables must be declared before use
Data type is checked at compile time
Variable type is determined at runtime
Python has no data types
Both Interactive Mode or Script Mode
None of These
64
29
Flexibility
What will be the datatype of the var in the below code snippet?
var = 10print(type(var))var = "Hello"print(type(var))
Str and int
int and int
str and str
int and str
Lists
Tuples
Integer
Complex Number
None
Comments
Expressions
Tokens
Flow of control
Indentation
Key
None of the above
Graphical
Cross-Platform
Platform Dependent
char
str
set
eval
nonlocal
assert
finally
Platform-independent
Low Level Language
Python is open-source and free to use
Object Oriented Programming
Python Interpreter.
Python compiler
Python Volatile machine
Portable virtual machine
100
128
256
No Limit
a_=3
_a=3
a?=3
void
What will the following code output?
a=‘INFOMAX’ a=10 print(type(a))
<class 'int'>
<class ‘str'>
<class ‘bool'>
High Level
Object Oriented
Low Level
Both A and B
1995
1972
1981
1991