Question 8:Find the output of the following program: dict ={} print (all(dict)) (A) { } (B) False (C) True (D) An exception is thrown Answer:… Read More
Category Archives: Quizzes
The decimal floating point number -40.1 represented using IEEE-754 32-bit representation and written in hexadecimal form is (A) 0xC2206000 (B) 0xC2006666 (C) 0xC2006000 (D) 0xC2206666… Read More
Question 7:Find the output of the following program: a ={} a.fromkeys(['a', 'b', 'c', 'd'], 98) print (a) (A) Syntax error (B) {‘a’:98, ‘b’:98, ‘c’:98, ‘d’:98}… Read More
Question 6:Find the output of the following program: a = {i: i * i for i in range(6)} print (a) (A) Dictionary comprehension doesn’t exist… Read More
Find the boolean expression for the logic circuit shown below : (1-NAND gate, 2-NOR gate, 3-NOR gate) (A) AB (B) AB’ (C) A’B’ (D) A’B… Read More
Question 5:Find the output of the following program: D = {1 : [1, 2, 3], 2: (4, 6, 8)} D[1].append(4) print(D[1], end = " ") … Read More
Question 4:Find the output of the following program: D = dict() for i in range (3): for j in range(2): D[i] = j print(D) (A)… Read More
Question 3:Find the output of the following program: D = {1 : {'A' : {1 : "A"}, 2 : "B"}, 3 :"C", 'B' : "D",… Read More
Question 2:Find the output of the following program: D = {1 : 1, 2 : '2', '1' : 1, '2' : 3} D['1'] = 2… Read More
Question 1:Find the output of the following program: D = dict() for x in enumerate(range(2)): D[x[0]] = x[1] D[x[1]+7] = x[0] print(D) (A) {0: 1,… Read More
Consider the following statements : (i) Auto increment addressing mode is useful in creating self-relocating code. (ii) If auto addressing mode is included in an… Read More
Consider the following boolean equations : (i). wx + w(x + y) + x(x + y) = x+wy (ii). (wx’(y+xz’)+w’x’)y = x’y What can… Read More
Consider R to be any regular language and L1.L2 be any two context-free languages Which one of the following is correct ? (A) (L1 ⋃… Read More
Consider the following recursive Java function f that takes two long arguments and returns a float value : public static float f(long m, long n)… Read More
Suppose for a process P, reference to pages in order are 1, 2, 4, 5,2,1,2,4. Assume that main memory can accommodate 3 pages and the… Read More