read binary
write binary
append binary
read write
What is the output of below program ?
def say(message, times =1): print(message * times) say("Hello") say("Word",5)
Hello WordWordWordWordWord
Hello Word 5
Hello Word,Word,Word,Word,Word
Hello HelloHelloHelloHelloHello
What is the output of the following code ?
import numpy as np y = np.array([[11, 12, 13, 14], [32, 33, 34, 35]]) print(y.ndim)
1
2
3
0
What is the output of the following code?
dict={"Joey":1, "Rachel":2} dict.update({"Phoebe":2}) print(dict)
{'Joey': 1, 'Rachel': 2, 'Phoebe': 2}
{“Joey”:1,”Rachel”:}
{“Joey”:1,”Phoebe”:2}
Error
Interpreter
Modem
Compiler
Operating system
delete all the trailing whitespace characters
delete all the leading whitespace characters
delete all the leading and trailing whitespace characters
delete upper case characters
What will be the output after the following statements?
for i in range(1,6): print(i, end='') if i == 3: break
1 2
1 2 3
1 2 3 4
1 2 3 4 5
a = set('dcma') b = set('mlpc') print(a^b)
{‘d’, ‘c’, ‘m’, ‘l’, ‘p’, ‘c’}
{‘m’, ‘l’, ‘p’, ‘c’}
{‘d’, ‘c’, ‘m’, ‘a’}
None of These
Variable
Literals
Identifiers
Comment
List
Dictionary
Set
None of the Above
student
s12
123
_123
File Found Error
File Not Exist Error
File Not Found Error
None of these
From package import all
From package import *
From package include all
From package include *
arr[-2]
arr[2]
arr[-1]
arr[1]
Compiling
Running
Testing
Debugging
What will be the output of the following ?
print((range(4)))
0,1,2,3
[0,1,2,3]
range(0, 4)
(0,1,2,3)
Machine language
Assembly language
High-level language
None of the above
What is the output of this code?
def calc(x): r=2*x**2 return r print(calc(5))
50
100
20
def add(a, b): return a+5, b+5 result = add(3,2) print(result)
15
8
(8,7)
What will be the output of the following pseudocode, where ^ represent XOR operation ?
Integer a, b, c set b = 4, a = 3 c =a ^ b Print c
4
5
7