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) A detailed flow chart is called as______?

2) The symbol is used for conditional statement in a flowchart is:
Loading question image..Pls wait.

3) _____ is also known as the alias array.

4) Which of the following statements is used to create an empty set?

5) ______ is a set of functions you want to include in your application.

6) _____ function convert an integer to octal string in python.

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

>>>print('new' 'line')

 

8) The word comes from the name of a Persian mathematician Abu Ja’far Mohammed ibn-i Musa al Khowarizmi is called?

9) The ________ function is used to convert a string value to int.

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

11) A natural number 1 is also an ____ .

12) ……….design approach starts by dividing the complex algorithm into one or more modules.

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

  l1=[1,2,3]  l2=[4,5,6]  [x*y for x in l1 for y in l2]

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

>>> a={1,2,3}

>>> b=frozenset([3,4,5])

>>> a-b

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

>>> a=(1,2,3,4)  >>> del(a[2])

16) For two objects x and y, the expression x is y will yield True, if and only if

17) In the Python statement x = a + 5 – b : a and b are

18) Which of the following Python statements will result in the output: 6?

  A = [[1, 2, 3],       [4, 5, 6],       [7, 8, 9]]

19) Identify the correct sequence of steps to run a program.

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

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

>>> a=(2,3,4)  >>> sum(a,3)

22) An algorithm is best describe as

23) If we overcome the rules of the programming language, we get

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

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

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

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

26) The correct extension of the Python file is

27) Which of the following is not a relational opeartor in Python?

28) Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)?

29) Which function is used to get the Data Type of any value?

30) What function do you use to read a string?

31) What is the output of the code print(7%2).

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

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

  x = (i for i in range(3))  for i in x:      print(i)

34) Which one is the type of algorithm:

35) Which type of Programming does Python support?

36) What will be the output of the following Python expression if x=22.19?

print(“%5.2f”%x)

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

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

print('\t'.isspace())

39) np.eye() is used for creating:

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

print("abcdef".center())

41) Write the list comprehension to pick out only negative integers from a given list ‘l’.

42) Python is a/an _________ language.

43)

44) Function range(10, 5, -2) will yield an iterable sequence like

45) Which of the following software is required to run the hardware?

46) What is identity array?

47) What will be the output of the following expression

48) Which term describes a loop that continues repeating without a terminating (ending) condition ?

49) Which of the following operator in python evaluates to true if the variables on either side of the operator point to the same object and false otherwise?

50) Which of the following is not a keyword in Python

51) Which of the following software translates source code into object code ?

52) Algorithm when transalated into a programming language is called

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

  d = {0: 'a', 1: 'b', 2: 'c'}  for i in d:      print(i)

 

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

print([i+j for i in "abc" for j in "def"])

55) print(0xA + 0xB + 0xC):

56) Which function is used to Writes the string(s) to the file and returns the number of characters written.

57) ____ an explicit set of step by step specific instructions that solve a problem with an end or a solution

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

>>> a,b=6,7  >>> a,b=b,a  >>> a,b

59) Which of the following refers to mathematical function?

60) Designing the problem in known as

61) Is the following Python code valid?

a={1,2,3}

b={1,2,3,4}

c=a.issuperset(b)

print(c)

62) _______ are the modes of both writing and reading in binary format in file.


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

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

66) Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5)?

67) The way for solving a problem step by step is know as

68)
A natural number 1 is also an ______.

69) The contents inside the “for loop” are separated by?

70) Write a list comprehension to produce the list: [1, 2, 4, 8, 16……212].

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

>>> a={1,2,3}

>>> a.intersection_update({2,3,4,5})

>>> a

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

print(“%06d”%X)

73)

74) _________immediately terminates the current loop iteration.

75) What is identity array?

76) Which of the following functions converts a string to a float in python ?

77) Select the reserved keyword in python.

78) An algorithm that calls itself directly or indirectly is known as

79) In Python assignment of more than one behaviour to a particular function and the operation performed varies by the types of objects or arguments involved are known as_____ .

80) Which Python built in function returns the unique number assigned to an object?

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

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

 

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

  A = [[1, 2, 3],       [4, 5, 6],       [7, 8, 9]]  [A[i][len(A)-1-i] for i in range(len(A))]

83) _____ reads one entire line from the file.

84)

85) Which of the following precedence order is correct in Python?

86) What is the output of this expression, 3*1**3?

87) In which year was the Python language developed?

88) Is it safe to directly use the == operator to determine whether objects of type float are equal ?

89) Which one is not the attribute of a file?

90) Leading white space at the beginning of each element, which is used to determine the group of statement

91) ______ valid attribute of a file object (fp) ?

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

  1. >>>str1="helloworld"
  2. >>>str1[::-1]

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

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

95) Python programming language was create by ______.

96) Which of the following symbols is used to represent output in a flow chart?

97) What is the syntax of the following Python code?

>>> a=frozenset(set([5,6,7]))  >>> a

98) Select the reserved keyword in python

99) The operator returns the quotent after division.

100) A sequence of instruction, in a computer language, to get the desired result is known as

Your score is

You cannot copy content of this page