M3 R5 Jan2023 Set4
M3 R5 Jan2023 Set4
©ê◊ËŒflÊ⁄U ∑§Ê ŸÊ◊/Name of Candidate : ________________________ ©ê◊ËŒflÊ⁄U ∑§ „SÃÊˇÊ⁄U/Signature of Candidate : ___________________
1. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ∞∑§ ÁŸÿ¢òÊáÊ ‚¢⁄øŸÊ Ÿ„Ë¥ „Ò? 4. NumPY ∑§Ê ¬Íáʸ M§¬ „Ò?
(C) Decision (D) None of these (D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(C) Processing (D) Decision 5. $ç‹ÙøÊ≈¸ ◊¥ ºÙ é‹ÊÚ∑§Ù¥ ∑§Ù ¡Ù«∏Ÿ ∑‘ Á‹∞ ç‹Ê‹Êߟ ∑‘
M§¬ ◊¥ Á∑§‚ ¬˝ÃË∑§ ∑§Ê ©¬ÿÙª Á∑§ÿÊ ¡ÊÃÊ „Ò?
3. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‚Ê »¢§Ä‡ÊŸ ¬ÊßÕŸ ◊¥ Á’À≈-ߟ (A) ∞⁄Ù (B) ‚Á∑¸§‹
»¢§Ä‡ÊŸ „Ò?
(A) factorial() (B) print() (C) ’ÊÚÄ‚ (D) ‚◊ÊãÃ⁄øÃÈ÷ȸ¡
(C) seed() (D) sqrt()
Which symbol is used as a flowline to connect
Which of the following functions is a built-in two blocks in a flow chart ?
function in python ?
(A) arrow (B) circle
(A) factorial() (B) print()
(C) No, it is not possible in Python 10. ÁŸêŸÁ‹Áπà ∑§Ù«U ÁSŸ¬≈U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
print([i.lower() for i in “HELLO”])
(D) def fun1(*data)
(A) hello
(B) [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
7. ç‹Ê ø Ê≈¸ U ◊ ¥ •Ê©≈¬È ≈ ∑§Ù ÁŸM§Á¬Ã ∑§⁄Ÿ ∑‘ Á‹∞ (C) hel
ÁŸêŸÁ‹Áπà ◊¥ ‚ Á∑§‚ Áøã„ ∑§Ê ¬˝ÿÙª Á∑§ÿÊ ¡ÊÃÊ „Ò?
(D) HELLO
(A) flª¸ (B) ‚Á∑¸§‹ What is the output of the following code
snippet ?
(C) ‚◊ÊãÃ⁄øÃÈ÷ȸ¡ (D) ÁòÊ∑§ÙáÊ print([i.lower() for i in “HELLO”])
Which of the following symbols is used to (A) hello
represent output in a flow chart ?
(B) [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
(A) Square (B) Circle (C) hel
(C) Parallelogram (D) Triangle (D) HELLO
b = b mod (b - 2) Print c
Integer a, b Integer a, b, c
Set a = 10, b = 5
Set b = 5, a = 1
a = a mod (a - 6)
c=a&b
b = b mod (b - 2)
Print c
Print a - b
(A) 1 (B) 3
(A) 4 (B) 0
(A) 10 (B) 21
18. ¬ÊÿÕŸ __________ ŸÊ◊∑§ ∞∑§ ∑¢§S≈˛∑§ ∑§Ê ©¬ÿÙª
(C) 12 (D) 28
∑§⁄à „È∞, ⁄Ÿ≈Êß◊ ¬⁄ •ŸÊ◊ ∑§ÊÿÙZ ∑§ ÁŸ◊ʸáÊ ∑§Ù ‚¬Ù≈¸
What is the output of the following code ? ∑§⁄ÃÊ „Ò
import numpy as np (A) pi
a = np.array([1,2,3,5,8]) (B) •ŸÊ◊
b = np.array([0,3,4,2,1]) (C) lambda
(D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
c=a+b
Python supports the creation of anonymous
c = c*a functions at runtime, using a construct called
print (c[2]) __________.
(A) pi
(A) 10 (B) 21
(B) anonymous
(C) 12 (D) 28 (C) lambda
(D) none of the above
16. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò? 19. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?
a = np.array([[1,2,3],[4,5,6]]) M=[‘b’ * x for x in range(4)]
print(a.shape) print(M)
(A) [‘’, ‘b’, ‘bb’, ‘bbb’]
(A) (2, 3) (B) (3, 2)
(B) [‘b’, ‘bb’, ‘bbb’, ‘bbbb’]
(C) (1, 1) (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥ (C) [ ‘b’, ‘bb’, ‘bbb’]
print(a.ndim) a = np.array([[1,2,3],[0,1,4]])
(C) 6 (D) 4
21. ∑¢§åÿÍ≈⁄ Á‚S≈◊ ∑§Ê ◊ÁSÃc∑§ __________ „Ò–
(A) ⁄Ò◊ (B) ‚ˬËÿÍ
24. __________ ∑‘ ‚◊ÿ ‚ËÄfl¥‚ ‹ÊÚÁ¡∑§ ∑§Ê ©¬ÿÙª Ÿ„Ë¥
(C) ⁄Ù◊ (D) ∑§á≈˛Ù‹ ÿÍÁŸ≈ Á∑§ÿÊ ¡Ê∞ªÊ–
The brain of computer system is __________. (A) ºÙ ‚¢Åÿʕ٥ ∑§Ù ÉÊ≈ÊŸ
(A) RAM (B) CPU
(B) ºÙ «U≈Ê ◊ÊŸÙ¥ ∑§Ë ÃÈ‹ŸÊ ∑§⁄Ÿ
(C) ROM (D) Control Unit
(C) ©¬ÿÙª∑§Ãʸ ∑§Ù •Ê©≈¬È≈ ¬˝ºÊŸ ∑§⁄Ÿ
22. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ¬ÊÿÕŸ ◊¥ ∞∑§ ◊Êãÿ •¢∑§ªÁáÊÃËÿ (D) ºÙ Ÿ¢’⁄ ¡Ù«∏Ÿ
•ÊÚ¬⁄≈⁄ „Ò?
The sequence logic will not be used while
(A) // (B) ? __________.
27. •ãÿ ◊ÊÚ«KÍ‹ ◊¥ Á∑§‚Ë ◊ÊÚ«KÍ‹ ∑§Ê ©¬ÿÙª ∑§⁄Ÿ ∑‘ 30. Á∑§‚Ë »¢§Ä‡ÊŸ ∑‘ ’Ê„⁄ ¬Á⁄÷ÊÁ·Ã flÁ⁄∞’‹ ∑§Ù ÄÿÊ
Á‹∞, •ʬ∑§Ù ©‚ __________ S≈≈◊¥≈ ∑§Ê ©¬ÿÙª ∑§„à „Ò¥?
∑§⁄∑‘ ßê¬Ù≈¸ ∑§⁄ŸÊ „٪ʖ (A) ∞∑§ ÁSÕ⁄ flÁ⁄∞’‹
(A) import
(B) ∞∑§ flÒÁE∑§ flÁ⁄∞’‹
(B) include
(C) ∞∑§ SÕÊŸËÿ flÁ⁄∞’‹
(C) (A) •ÊÒ⁄ (B) ºÙŸÙ¥
(D) ∞∑§ SfløÊÁ‹Ã flÁ⁄∞’‹
(D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
What is a variable defined outside a function
To use a module in another module, you must
referred to as ?
import it using an ________ statement.
(A) A static variable
(A) import
(B) include (B) A global variable
(C) f.seek(-10, 1)
Which of the following are valid string
manipulation functions in Python ?
(D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(A) count() (B) upper() Which statement will move file pointer 10
bytes backward from current position ?
(C) strip() (D) All of the above
(A) f.seek(-10, 0)
(B) f.seek(10, 0)
47. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
(C) f.seek(-10, 1)
from math import * (D) none of the above
floor(11.7)
(A) 12 49. ¡’ „◊ Á∑§‚Ë ∞‚Ë »§Êß‹ ∑§Ù ⁄Êß≈ ◊Ù«U ◊¥ πÙ‹Ÿ ∑§Ë
∑§ÙÁ‡Ê‡Ê ∑§⁄à „Ò¥, ¡Ù ◊ı¡Íº Ÿ„Ë¥ „Ò, ÃÙ ÁŸêŸ ◊¥ ‚ ∑§ıŸ
(B) 11
‚Ë ∞⁄⁄ ÁºπÊ߸ ºÃË „Ò?
(C) 11.0
(A) File Found Error
What will be the output of the following (C) File Not Found Error
Python code ?
(D) ©¬⁄UÊÄà ◊¥ ‚ ∑§Ê߸ Ÿ„Ë¥
from math import *
Which of the following error is returned when
floor(11.7) we try to open a file in write mode which
does not exist ?
(A) 12
(A) File Found Error
(B) 11 (B) File Not Exist Error
Which of the following words is not a (A) klmn klmn klmn klmn
keyword of python language ? (B) k
(A) val (B) raise (C) kkk
(C) try (D) with (D) None of the these
58. ÁŸêŸÁ‹Áπà ◊¥ ‚ Á∑§‚◊¥ «U≈Ê SÕÊÿË M§¬ ‚ ‚¢ª˝Á„à (B) To make a Matrix with all diagonal
element 0
Á∑§ÿÊ ¡ÊÃÊ „Ò?
(A) flÁ⁄∞’‹ (C) To make a Matrix with first row 0
59. ‚ÊÚç≈flÿ⁄ ∑‘ Áfl∑§Ê‚ ∑‘ Á∑§‚ ø⁄áÊ ◊¥ ‚ÊÚç≈flÿ⁄ ∑§Ë What will be the output of the following
ªÈáÊflûÊÊ ∑§Ê ¬˝‹πŸ Á∑§ÿÊ ¡ÊÃÊ „Ò? Python code ?
(A) A function that calls itself What will be the output of the following code
snippet ?
(B) A function that calls other functions from math import *
(A) ‚Á∑¸§‹ (B) ‚◊ÊãÃ⁄øÃÈ÷ȸ¡ 90. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
len([“hello”,2, 4, 6])
(C) «UÊÿ◊¢«U (D) ©¬⁄UÊÄà ‚÷Ë
(A) Error (B) 6
The connector symbol for flow chart is (C) 4 (D) 3
__________.
What will be the output of the following
(A) Circle (B) Parallelogram Python code ?
len([“hello”,2, 4, 6])
(C) Diamond (D) All the above
(A) Error (B) 6
(C) 4 (D) 3
(A) 212
(A) ∑§‹Ë¸ ’˝‚‚ (B) ⁄UÊ©¥«U ’˝Ò∑§≈U
32