Local variable gets priority
Global variable gets priority
Error occurs
Both are merged
try
except
finally
All of the above
take a sequence, like a list, and arrange the items in ascending order
take a sequence, like a list, and reorganize the order of the items.
take a sequence, like a list, and arrange the items in descending
take a sequence, like a list, and return the same copy of sequence
Both tuples and lists are immutable
Tuples are immutable while lists are mutable
Both tuples and lists are mutable
Tuples are mutable while lists are immutable
A package manager
A loop structure
A file containing Python code
A variable type
re
regex
pyregex
none of the mentioned
.
*
->
&
Standard Input
Standard Output
Standard Errors
All of the mentioned
.module
.py
both a & b
.mod
.python
What will be the output of the following Python expression?
print(round(4.576))
4.5
5
4
4.6
Local, Enclosing, Graphical, Built-in
Local, External, Global, Binary
List, Entry, Global, Block
Local, Enclosing, Global, Built-in
From package import all
From package import *
From package include all
From package include *
Denoted by triple quotes for providing the specification of certain program elements
Design and implementation of specific functionality to be incorporated into a program
Defines the specification of how it is to be used
Any program that reuses code
Text file
Binary file
Both (A) and (B)
None of these
What will be the output of the following Code ?
x=10, y=3print(divmod(x,y))
(3,1)
(4,2)
(5,7)
(1,3)
random
randrange
randomrange
rand
HTTP
urllib
socket
header
Low, Enclosing, Global and Built-in
Local, Enclosing, Global and Built-in
Local, Ending, Global and Built-in
Light, Emitting, Global and Built-in
_
%
None of the above
What will be the output?
import randomprint(random.randint(1,1))
0
1
Random number
Error
Which can be the output of the following Python code?
import randomprint(random.randrange(1,100,10))
32
67
91
80
static
global
public
extern
Return the name of the user logged in to the terminal
Return the email of the user logged in to the terminal
Return the login time when user logged in to the terminal
What will be the output of the following Python function, assuming that the random module has already been imported?
import randomrandom.uniform(3,4)
Either 3 or 4
Any integer other than 3 and 4
Any decimal value between 3 and 4
What will be the output of the following Python code?
import random print(random.randrange(0,91,5))
10
18
79
95
.pym
.pymodule
module
import
include
both (A) and (B)
none of the above
re.create(str)
re.regex(str)
re.compile(str)
re.assemble(str)
error
do nothing, it is a placeholder for a function that is yet to be implemented
shuffle the elements of the list in-place