Skip to content

Programming and Problem Solving through Python (M3-R5.1)- NIELIT O Level

  • by

You Have 2 hours To Complete The Test / Quiz


Programming and Problem Solving through Python (M3-R5.1)

Total available questions is More than 1000.

Each exam has 100 questions & Answers randomly.

You will get 2 hrs to complete the test.

Its Mandatory To Fill For Get Certificate After Complete Exam.

1) What will be the output of the following Python code?

    x = "abcdef"  while i in x:      print(i, end=" ")

2) Array processing package.

3) _____ returns the current time instant, a floating-point number of seconds since the epoch.

4) When _____ gets executed, ‘inner PI value’ is printed as that is ‘pi’ value inside the function namespace.

5) What is the extension of Python code File?

6) Which of the following is an invalid statement?

7) ____ statement used for error checking. –

8) By using function _____ ,we can change the shape of the Numpy array in python.

9) Which statement is correct about Isalnum().

10) The function generates sequence of numbers from 1 to n.

11) What will be the output of the following Python code?

i = 1  
while True:      
	if i%3 == 0:          
		break      
	print(i)         
	i + = 1

12) Which of the following is a floor division operator?

13) Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.reverse()?

14) What is the output of print(k) in the following Python code snippet?

  k = [print(i) for i in my_string if i not in "aeiou"]  print(k)

15) What will be the output of the following Python code?

print("xyyzxyzxzxyy".count('yy', 1))


17) What will be the output of the following Python code?

  1. >>>t = (1, 2)
  2. >>>2 * t

18) What is the output of the following program ? print 0.1+0.2==0.3

19) If a={5,6,7,8}, which of the following statements is false?

20) ndarray is also known as the ____ array.

21)

23) What will be the output of the following Python code?

  d = {0, 1, 2}  for x in d.values():      print(x)

24) Python converts the source code into an intermediate form called ____ .

25) The ______ mode of Python gives instant result of typed statement

26) Algorithms cannot be represented by____

27) _____ reports all error with line numbers and produce faster object code then interpreter.

28) _______ help programmers to create lists in a concise way.

29) What will be the output of the following Python code?

print('a B'.isalpha())

30) Which of the following python function converts a string to a list.

31) Python operator always yields the result of

32) Which of these about a frozenset is not true?

33) In which year was the Python 3.0 version developed?

34) The order of statement execution in the form of top to bottom, is known as ………. construct.

35) What will be the output of the following Python code?

print('ab12'.isalnum())

36) What will be the output of the following Python code?

print('*', "abcdef".center(7), '*', sep='')

37) What will be the output of the following Python code?

  a = [1, 5, 7, 9, 9, 1]  <br class="blank" />b=a[0]  <br class="blank" />x= 0  for x in range(1, len(a)):      if a[x] > b:          b = a[x]          b= x  print(b)

38) Is the following Python code valid?

>>> a=2,3,4,5  >>> a

39) What is the answer to this expression, 22 % 3 is?

40) Function range(3) will yield an iteratable sequence like

41)

42) What will be the output of the following Python code?

print("abcdef".center())

43) An empty/null statement in Python is

44) In Python, ________ is not supported.

45) What will be the output of the following Python code?

True = False  while True:      print(True)      break

46) Which of the following expressions is an example of type conversion?

47) Designing the problem in known as

48) The _____ function converts the specified value into a string.

49) _______ is latest high level language.

50) Python code can run on a variety of platforms, it means Python is a _____ language.

51) Which of the following is correct in respect of advantages of functions ?

52) What will be the output of the following Python code?

print("Hello {name1} and {name2}".format('foo', 'bin'))

 

53) What will be the output of the following Python code?

import math  [str(round(math.pi)) for i in range (1, 6)]

54) What will be the output of the following Python code?

a=[13,56,17]
a.append([87])
a.extend([45,67])
print(a)

55) What will be the output of the following Python code snippet?

      k = [print(i) for i in my_string if i not in "aeiou"]

56) Which of the following expression is correct.

57) What is identity array?

58) The symbol used for both input and output is a _____ .

59) Connectors used to connect flowchart symbols to each other are classified as

60) Which of the following is the use of function in python ?
Loading question image..Pls wait.

61) The following symbol represent

62) Which one of the following has the highest precedence in the expression?

63) By using function _____ ,we can change the shape of the Numpy array in python.

64) What will be the output of the following Python code?

print("Hello {} and {}".format('foo', 'bin'))

65) What will be the output of the following Python code?

    i = 1  while True:      if i%2 == 0:          break      print(i)      i += 2

66) Which of the following data types is not supported in python

67) What will be the output of the following Python code snippet?

not(10<20) and not(10>30)

68) What will be the output of the following Python code snippet?

  x = [i**+1 for i in range(3)]; print(x);

69) A detailed flow chart is called as______?

70) What will be the output of the following Python code?

for i in range(5):      if i == 5:          break      else:          print(i)  else:      print("Here")

71) Python converts the source code into an intermediate form called ____ .

72) What will be the output of the following Python expression if X=345?

print(“%06d”%X)

73) elif can be considered to be abbreviation of

74) What will be the output of the following Python code snippet?

  x = 'abcd'  for i in range(len(x)):      i[x].upper()  print (x)

75) Which of the statements about modules is false?

76) The write method returns ________.

77) The _____ function converts the specified value into a string.

78) Which of the following statement(s) will terminate only the current pass of the loop and proceed with the next iteration of the loop?

79) Is the following Python code valid?

>>> a=(1,2,3)  >>> b=('A','B','C')  >>> c=zip(a,b)

80) How can we create on empty list in Python?

81) Testing is known as

82) What will be the output of the following Python statement?

>>>chr(ord('A'))

83) What will be the output of the following Python code?

def f(values):
    values[0] = 44
   
v = [1, 2, 3]
f(v)
print(v)

84) What will be the output of the following Python code?

  1.   d = {"john":40, "peter":45}
  2.   d["john"]

85) Write a list comprehension equivalent for the Python code shown below.

for i in range(1, 101):  	if int(i*0.5)==i*0.5:  		print(i)

86) The output of this code is ______ .

87) What will be the output of the following Python code?

87) What will be the output of the following Python code?

  1. >>>t=(1,2,4,3)
  2. >>>t[1:3]

88) What will be the output of the following Python code?

89) The functions which are coming with Python software automatically are called ____ .

90) What will be the output of the following Python code?

  x = 'abcd'  for i in range(x):      print(i)

91) What will be the output of the following Python expression if x=456?

print(“%-06d”%x)

92)

93) What will be the output of the following Python code?

print("xyyzxyzxzxyy".count('xyy', 2, 11))

94) What will be the output of the following Python code?

def unpack(a,b,c,d):
    print(a+d)
x = [1,2,3,4]
unpack(*x)

95) What will be the output of the following ?

a = 12.6

b = 2

print a//b

96) Which one of the following is a valid Python if statement:

97) Python programming language was create by ______.

98) What will be the output of the following algorithm for a=5, b-8, c=6 ?

Step 1: Start
Step 2: Declare variables a, b and c.
Step 3 Read variables a, b and c.
Step 4: If a < b
If a 

99) Which of the following language is understood by computer ?

100) ______ in the flowchart is made at the connecting point marked.

Your score is

You cannot copy content of this page