M3 R5 Jan2023 Set3

Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

©ê◊ËŒflÊ⁄U ß‚ ¬ÈÁSÃ∑§Ê ∑§ ‚’‚ ™§¬⁄UË ‚Ë‹ ∑§Ê πÊ‹∑§⁄U ¬Îc∆U ‚¥ÅÿÊ 2 •ÊÒ⁄U 3 ∑§ ◊äÿ SÕÊÁ¬Ã OMR

©ûÊ⁄U ‡ÊË≈U ∑§Ê ÁŸ∑§Ê‹ ‹¥– ¬⁄ˡÊÊ ¬ÈÁSÃ∑§Ê ‚¥. :


Candidates should open the top side of the seal of this Booklet and take Test Booklet No. :
out the OMR Answer Sheet placed between page no. 2 and 3.
¬⁄ˡÊÊ ¬ÈÁSÃ∑§Ê oÎ¥π‹Ê —
M3-R5 : PROGRAMING AND PROBLEM SOLVING Test Booklet Series : 13
ÁŸœÊ¸Á⁄Uà ‚◊ÿ — 2 ÉÊ¥≈U THROUGH PYTHON LANGUAGE •Áœ∑§Ã◊ •¥∑§ — 100
Time Allowed : 2 Hours Maximum Marks : 100
⁄UÊ‹ Ÿ¥. ©ûÊ⁄U ‡ÊË≈U ‚¥.—
Roll No. : Answer Sheet No. :
¬˝‡ŸÊ¥ ∑§ ©ûÊ⁄U ŒŸ ‚ ¬„‹ ÁŸêŸÁ‹Áπà •ŸÈŒ‡ÊÊ¥ ∑§Ê äÿÊŸ ‚ ¬…∏ ‹¥– / Read the following instructions carefully before you begin to answer the questions.
©ê◊ËŒflÊ⁄UÊ¥ ∑§ Á‹∞ •ŸÈŒ‡Ê Instructions to the Candidates
1. ¬˝‡ŸÊ¥ ∑§ ©ûÊ⁄U Á‹πŸÊ •Ê⁄¥U÷ ∑§⁄UŸ ‚ ¬„‹ •Ê¬ ß‚ ¬ÈÁSÃ∑§Ê ∑§Ë ¡Ê°ø 1. Before you start to answer the questions you must check this booklet
∑§⁄U∑§ ‚ÈÁŸÁ‡øà ∑§⁄U ‹¥ Á∑§ ß‚◊¥ ¬Í⁄U ¬Îc∆U (24) „Ò¥ ÃÕÊ ∑§Ê߸ ¬Îc∆U ÿÊ and ensure that it contains all the pages (24) and see that no page or
©‚∑§Ê ÷ʪ ∑§◊ ÿÊ ŒÈ’Ê⁄UÊ ÃÊ Ÿ„Ë¥ •Ê ªÿÊ „Ò– ÿÁŒ •Ê¬ ß‚ ¬ÈÁSÃ∑§Ê ◊¥ portion thereof is missing or repeated. If you find any defect in this
∑§Ê߸ òÊÈÁ≈U ¬Ê∞¥, ÃÊ Ãà∑§Ê‹ ß‚∑§ ’Œ‹ ŒÍ‚⁄UË ¬ÈÁSÃ∑§Ê ‹– Booklet, you must get it replaced immediately.
2. •Ê∞◊•Ê⁄U ©ûÊ⁄U-‡ÊË≈U ¬˝‡Ÿ ¬ÈÁSÃ∑§Ê ◊¥ „Ë ©¬‹éœ ⁄U„ªË– ∑Χ¬ÿÊ ‚ÈÁŸÁ‡øà 2. OMR Answer-Sheet is within the Question Booklet. Please
∑§⁄¥U Á∑§ •Ê∞◊•Ê⁄U ‡ÊË≈U ‚¥ÅÿÊ •ÊÒ⁄U ¬⁄UˡÊáÊ ¬ÈÁSÃ∑§Ê ‚¥ÅÿÊ ‚◊ÊŸ „Ò¥– ensure OMR Answer-Sheet number and Test Booklet No. of
•Ê∞◊•Ê⁄U ‡ÊË≈U ¬⁄U ¡ÊŸ∑§Ê⁄UË ÷⁄UŸ ‚ ¬„‹ •Ê∞◊•Ê⁄U ‡ÊË≈U ¬⁄U ¿U¬ Question Paper are same. Read the instructions printed on
OMR Answer-Sheet carefully before filling the information
ÁŸŒ¸‡ÊÊ¥ ∑§Ê äÿÊŸ ‚ ¬…∏¥– •Ê¬∑§Ê •Ê∞◊•Ê⁄U ©ûÊ⁄U-¬òÊ∑§ ¬⁄U ‚÷Ë Áflfl⁄UáÊÊ¥ on the OMR Answer-Sheet. You must complete and code all
∑§Ê ‚„Ë …¥Uª ‚ ¬Í⁄UÊ •ÊÒ⁄U ∑§Ê«U ∑§⁄UŸÊ „ÊªÊ, ∞‚Ê Ÿ ∑§⁄UŸ ¬⁄U •Ê¬∑§Ë ©ûÊ⁄U the details on the OMR answer sheet correctly, failing which
¬ÈÁSÃ∑§Ê ∑§Ê ◊ÍÀÿÊ¥∑§Ÿ Ÿ„Ë¥ Á∑§ÿÊ ¡Ê ‚∑§ÃÊ „Ò– ¬˝‡ŸÊ¥ ∑§Ê ©ûÊ⁄U ŒŸÊ ‡ÊÈM§ your answer sheet may not be evaluated. You must also put
∑§⁄UŸ ‚ ¬„‹ •Ê¬∑§Ê •Ê∞◊•Ê⁄U ©ûÊ⁄U-¬òÊ∑§ ¬⁄U ÁŒÿ ª∞ ÁŸœÊ¸Á⁄Uà SÕÊŸ your signature on the OMR Answer-Sheet at the prescribed
¬⁄U •¬Ÿ „SÃÊˇÊ⁄U ∑§⁄UŸ „Ê¥ª– ߟ ÁŸŒ¸‡ÊÊ¥ ∑§Ê ¬Íáʸ M§¬ ‚ ¬Ê‹Ÿ Á∑§ÿÊ place before you start answering the questions. These
¡ÊŸÊ øÊÁ„∞, ∞‚Ê Ÿ ∑§⁄UŸ ¬⁄U •Ê¬∑§Ë •Ê∞◊•Ê⁄U ©ûÊ⁄U-¬ÈÁSÃ∑§Ê ∑§Ê instructions must be fully complied with, failing which, your
◊ÍÀÿÊ¥∑§Ÿ Ÿ„Ë¥ Á∑§ÿÊ ¡Ê ‚∑§ÃÊ „Ò– OMR Answer-Sheet may not be evaluated.
3. ß‚ ¬˝‡Ÿ-¬ÈÁSÃ∑§Ê ◊¥ ∑ȧ‹ 100 ’„ÈÁfl∑§À¬Ëÿ ¬˝‡Ÿ „Ò¥– ¡Ê Á∑§ Á„ãŒË ∞fl¥ 3. This booklet consists of 100 Multiple Choice Questions and are printed
•¥ª˝¡Ë ŒÊŸÊ¥ ÷Ê·Ê•Ê¥ ◊¥ ©¬‹éœ „Ò– ¬˝àÿ∑§ ¬˝‡Ÿ ∑§ 4 Áfl∑§À¬ ÁŒ∞ ª∞ „Ò¥, in Hindi and English language. Each question has 4 (four) alternatives
(A), (B), (C) •ÊÒ⁄U (D)– Á∑§‚Ë ÷Ë ÁSÕÁà ◊¥ ¬˝àÿ∑§ ¬˝‡Ÿ ∑§Ê ∑§fl‹ ∞∑§ (A), (B), (C) and (D). In case if you find more than one correct
Áfl∑§À¬ „Ë ‚„Ë ©ûÊ⁄U „Ò– ÿÁŒ •Ê¬∑§Ê ∞∑§ ‚ •Áœ∑§ Áfl∑§À¬ ‚„Ë ‹ª¥ ÃÊ answer, then choose the most appropriate single option and darken
‚’‚ •Áœ∑§ ©Áøà ∞∑§ Áfl∑§À¬ ∑§Ê øÈŸÊfl ∑§⁄¥U •ÊÒ⁄U ©ûÊ⁄U ‡ÊË≈U ◊¥ ‚ê’¥ÁœÃ the appropriate circle in the answer sheet against the related question.
¬˝‡Ÿ ∑§ ‚Ê◊Ÿ flÊ‹ ©¬ÿÈÄà ªÊ‹ ∑§Ê ∑§Ê‹Ê ∑§⁄¥U– 4. For each correct answer One mark will be given and no negative
4. ¬˝àÿ∑§ ‚„Ë ©ûÊ⁄U ∑§ Á‹∞ 1 •¥∑§ ÁŒÿÊ ¡Ê∞ªÊ– ª‹Ã ©ûÊ⁄U ∑§ Á‹∞ ∑§Ê߸ marking for incorrect answer.
Ÿ∑§Ê⁄UÊà◊∑§ •¥∑§Ÿ Ÿ„Ë¥ „Ò– 5. Use Black/Blue ball point Pen to darken the circle. Answer once
5. ªÊ‹ ∑§Ê ∑§Ê‹Ê ∑§⁄UŸ ∑§ Á‹∞ ∑§fl‹ ∑§Ê‹/ŸË‹ ’ÊÚ‹ åflÊߥ≈U ¬UŸ ∑§Ê ¬˝ÿÊª darkened is not allowed to be erased or altered. Against any question
∑§⁄¥U– ªÊ‹ ∑§Ê ∞∑§ ’Ê⁄U ∑§Ê‹Ê ∑§⁄UŸ ∑§ ’ÊŒ ß‚∑§Ê Á◊≈UÊŸ ÿÊ ’Œ‹Ÿ ∑§Ë if more than one circle is darkened, machine will allot zero mark for
that question.
•ŸÈ◊Áà Ÿ„Ë¥ „Ò– ÿÁŒ Á∑§‚Ë ¬˝‡Ÿ ∑§ ‚Ê◊Ÿ ∞∑§ ‚ íÿÊŒÊ ªÊ‹ ∑§Ê‹ Á∑§ÿ
ª∞ „Ê¥ ÃÊ ◊‡ÊËŸ mÊ⁄UÊ ©‚∑§ Á‹∞ ‡ÊÍãÿ •¥∑§ ÁŒÿÊ ¡Ê∞ªÊ– 6. Do not fold answer sheet in any case.
6. Á∑§‚Ë ÷Ë ÁSÕÁà ◊¥ ©ûÊ⁄U ‡ÊË≈U ∑§Ê Ÿ ◊Ê«∏¥– 7. No rough work should be done on the Answer-Sheet. Space for
7. ©ûÊ⁄U-¬ÈÁSÃ∑§Ê ¬⁄U ∑§Ê߸ ÷Ë ⁄U»§ ∑§Êÿ¸ Ÿ„Ë¥ ∑§⁄UŸÊ „Ò– ⁄U»§ ∑§Êÿ¸ ∑§ Á‹∞ ß‚ rough work has been provided in this booklet.
¬ÈÁSÃ∑§Ê ◊¥ SÕÊŸ ÁŒÿÊ ªÿÊ „Ò– 8. Mobile phones and wireless communication devices are completely
8. ¬⁄UˡÊÊ „ÊÚ‹/∑§◊⁄UÊ¥ ◊¥ ◊Ê’Êß‹ $»§ÊŸ ÃÕÊ ’ÃÊ⁄U ‚¥øÊ⁄U ‚ÊœŸ ¬Í⁄UË Ã⁄U„ banned in the examination hall/rooms. Candidates are advised not
ÁŸÁ·h „Ò¥– ©ê◊ËŒflÊ⁄UÊ¥ ∑§Ê ©Ÿ∑§ •¬Ÿ Á„à ◊¥ ‚‹Ê„ ŒË ¡ÊÃË „Ò Á∑§ to keep mobile phones/any other wireless communication devices
with them even in switched off mode, in their own interest. Failing to
◊Ê’Êß‹ $»§ÊŸ/Á∑§‚Ë •ãÿ ’ÃÊ⁄U ‚¥øÊ⁄U ‚ÊœŸ ∑§Ê ÁSflø •ÊÚ»§ ∑§⁄U∑§ ÷Ë comply with this provision will be considered as using unfair means in
•¬Ÿ ¬Ê‚ Ÿ ⁄Uπ¥– ß‚ ¬˝ÊflœÊŸ ∑§Ê •ŸÈ¬Ê‹Ÿ Ÿ ∑§⁄UŸ ∑§Ê ¬⁄UˡÊÊ ◊¥ the examination and action will be taken against them including
•ŸÈÁøà ©¬ÊÿÊ¥ ∑§Ê ¬˝ÿÊª ◊ÊŸÊ ¡ÊÿªÊ •ÊÒ⁄U ©Ÿ∑§ ÁflL§h ∑§Êÿ¸flÊ„Ë ∑§Ë cancellation of their candidature.
¡Ê∞ªË, Á¡‚◊¥ ©Ÿ∑§Ë ©ê◊ËŒflÊ⁄UË ⁄Ug ∑§⁄UŸÊ ÷Ë ‡ÊÊÁ◊‹ „Ò– 9. Candidate should not leave the examination hall/room
9. •èÿÕ˸ •¬ŸË ©ûÊ⁄U ¬ÈÁSÃ∑§Ê ¬ÿ¸flˇÊ∑§ ∑§Ê ‚ÊÒ¥¬ Á’ŸÊ •ÊÒ⁄U •¬Ÿ ⁄UÊ‹ without handing over his/her Answer-Sheet to the invigilator
Ÿ¥’⁄U ∑§ ‚Ê◊Ÿ ©Áøà SÕÊŸ ¬⁄U ©¬ÁSÕÁà ¬òÊ∑§ ¬⁄U „SÃÊˇÊ⁄U Á∑§∞ Á’ŸÊ and without signing on the attendance sheet at proper place
¬⁄UˡÊÊ „ÊÚ‹/∑§ˇÊ ‚ ’Ê„⁄U Ÿ„Ë¥ ¡Ê ‚∑§ÃÊ– ß‚∑§ •‹ÊflÊ •èÿÕ˸ ∑§Ê against your roll number. Further candidate should also
©¬ÁSÕÁà ¬òÊ∑§ ¬⁄U „SÃÊˇÊ⁄U ∑§⁄UŸ ‚ ¬„‹ ÿ„ ÷Ë ‚ÈÁŸÁ‡øà ∑§⁄UŸÊ ensure that booklet no., booklet series and OMR Answer-
øÊÁ„∞ Á∑§ ’È∑§‹≈U Ÿ¥’⁄U, ’È∑§‹≈U ‚Ë⁄UË¡ •ÊÒ⁄U •Ê∞◊•Ê⁄U ©ûÊ⁄U ¬ÈÁSÃ∑§Ê Sheet No. are correctly written on attendance sheet before
‚¥ÅÿÊ ‚„Ë …¥Uª ‚ Á‹πË ªß¸ „Ê– ∞‚Ê ŸÊ ∑§⁄UŸ ¬⁄U, •Ê∞◊•Ê⁄U ©ûÊ⁄U signing on it, failing in doing so, may lead to disqualification/
¬ÈÁSÃ∑§Ê ∑§Ê •◊Êãÿ ◊ÊŸÊ ¡Ê∞ªÊ/◊ÍÀÿÊ¥∑§Ÿ Ÿ„Ë¥ Á∑§ÿÊ ¡Ê ‚∑§ÃÊ „Ò– no evaluation of OMR Answer-Sheet will be done.
10. ÿÁŒ Á„¥ŒË ‚¥S∑§⁄UáÊ ◊¥ ∑§Ê߸ ÷Ë òÊÈ≈UË/Áfl‚¥ªÁà ¬Ê߸ ¡ÊÃË „Ò, ÃÊ ©‚ •flSÕÊ 10. In Case of any discrepancy found in Hindi version, English
◊¥ •¥ª˝¡Ë ‚¥S∑§⁄UáÊ „Ë ◊Êãÿ „ÊªÊ– version will be treated as final.
¡’ Ã∑§ •Ê¬‚ ∑§„Ê Ÿ ¡Ê∞ Ã’ Ã∑§ ¬˝‡Ÿ-¬ÈÁSÃ∑§Ê Ÿ πÊ‹¥ / DO NOT OPEN THE QUESTION BOOKLET UNTIL YOU ARE TOLD TO DO SO.

©ê◊ËŒflÊ⁄U ∑§Ê ŸÊ◊/Name of Candidate : ________________________ ©ê◊ËŒflÊ⁄U ∑§ „SÃÊˇÊ⁄U/Signature of Candidate : ___________________
1. ÿÁº $»§Êß‹ ◊ı¡Íº Ÿ„Ë¥ „Ò ÃÙ ∑§ıŸ ‚Ê ◊Ù«U ∞∑§ Ÿß¸ 3. ∑§ıŸ ‚Ê S≈≈◊¥≈ »§Êß‹ ¬ÊÚߢ≈⁄ ∑§Ù flø◊ÊŸ ÁSÕÁà ‚ 10
$»§Êß‹ ’ŸÊÃÊ „Ò? ’Êß≈ ¬Ë¿U ‹ ¡Ê∞ªÊ–

(A) ⁄Êß≈ ◊Ù«U (A) f.seek(-10, 0)

(B) ⁄Ë«U ◊Ù«U (B) f.seek(10, 0)

(C) f.seek(-10, 1)
(C) •¬á«U ◊Ù«U
(D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(D) (A) •ÊÒ⁄U (C) ŒÊŸÊ¥
Which statement will move file pointer 10
Which mode creates a new file if the file does bytes backward from current position ?
not exist ?
(A) f.seek(-10, 0)
(A) write mode
(B) f.seek(10, 0)
(B) read mode
(C) f.seek(-10, 1)
(C) append mode
(D) none of the above
(D) Both (A) and (C)

4. ¬ÊÿÕŸ __________ ŸÊ◊∑§ ∞∑§ ∑¢§S≈˛∑§ ∑§Ê ©¬ÿÙª


2. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‚Ê ∞⁄⁄ Áº∞ ª∞ ∑§Ù«U mÊ⁄Ê ¬˝SÃÈà ∑§⁄Ã „È∞, ⁄Ÿ≈Êß◊ ¬⁄ •ŸÊ◊ ∑§ÊÿÙZ ∑§ ÁŸ◊ʸáÊ ∑§Ù ‚¬Ù≈¸
Á∑§ÿÊ ¡ÊÃÊ „Ò— ∑§⁄ÃÊ „Ò–
(A) pi
>>> f = open(“test.txt”,”w”)

>>> f.write(345) (B) •ŸÊ◊

(A) Á‚¢≈Ä‚ ∞⁄⁄ (B) ≈Ê߬ ∞⁄⁄ (C) lambda

(C) ÁS≈˛¢ª ∞⁄⁄ (D) ⁄Ÿ ≈Êß◊ ∞⁄⁄ (D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
Python supports the creation of anonymous
Which of the following error is returned by
functions at runtime, using a construct called
the given code ?
__________.
>>> f = open(“test.txt”,”w”) (A) pi
>>> f.write(345) (B) anonymous

(A) Syntax Error (B) Type Error (C) lambda

(C) String Error (D) Run Time Error (D) none of the above

Page 2/13 SPACE FOR ROUGH WORK M3-R5/01-23


5. fun1() ∑§Ë ‚„Ë $»¢§Ä‡ÊŸ Á«UÄ‹⁄‡ÊŸ øÈŸ¥ ÃÊÁ∑§ „◊ 7. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
ÁŸêŸÁ‹Áπà ºÙ $»¢§Ä‡ÊŸ ∑§ÊÚ‹ ∑§Ù ‚»§‹ÃʬÍfl¸∑§ ÁŸc¬ÊÁºÃ
d1={“abc”:5,”def”:6,”ghi”:7}
∑§⁄ ‚∑¥§–
print(d1[0])
fun1(25, 75, 55)
(A) abc (B) 5
fun1(10, 20)
(A) def fun1(**kwargs) (C) {“abc”:5} (D) Error

(B) def fun1(args*) What will be the output of the following


Python code ?
(C) No, it is not possible in Python
(D) def fun1(*data) d1={“abc”:5,”def”:6,”ghi”:7}

Choose the correct function declaration of print(d1[0])


fun1() so that we can execute the following
(A) abc (B) 5
two function calls successfully.
fun1(25, 75, 55) (C) {“abc”:5} (D) Error

fun1(10, 20)
(A) def fun1(**kwargs) 8. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‚Ë Á«UÄ‹⁄‡ÊŸ ª‹Ã „Ò?
(B) def fun1(args*)
(A) _x = 2 (B) x=3
(C) No, it is not possible in Python
(D) def fun1(*data) (C) __xyz__ = 5 (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
Which of the following declarations is
incorrect ?
6. „Ê«¸Uflÿ⁄ ∑§Ù ø‹ÊŸ ∑‘ Á‹∞ ÁŸêŸ ◊¥ ‚ ∑§ıŸ ‚Ê ‚ÊÚç≈flÿ⁄
•Êfl‡ÿ∑§ „Ò? (A) _x = 2 (B) x=3

(A) ≈ÊS∑§ ◊ÒŸ¡⁄ (C) __xyz__ = 5 (D) None of these

(B) ≈ÊS∑§ ’Ê⁄


(C) ¬˝Ùª˝Ê◊ ◊ÒŸ¡⁄ 9. ¬ÊÿÕŸ ‹Ò¥Çfl¡ ◊¥, ÁŸêŸÁ‹Áπà ◊¥ ‚ Á∑§‚ flÁ⁄∞’‹ ∑‘
M§¬ ◊¥ ¬Á⁄÷ÊÁ·Ã Ÿ„Ë¥ Á∑§ÿÊ ¡Ê ‚∑§ÃÊ „Ò?
(D) Á«UflÊß‚ «˛Ê߸fl⁄
(A) _val (B) val
Which of the following software is required
to run the hardware ? (C) try (D) _try_
(A) Task Manager In python language, which of the following
(B) Task Bar cannot be defined as variable ?

(C) Program Manager (A) _val (B) val


(D) Device Driver (C) try (D) _try_

Page 3/13 SPACE FOR ROUGH WORK M3-R5/01-23


10. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‚ ¬ÊÿÕŸ ◊¥ ◊Êãÿ ÁS≈˛¢ª ◊ÒÁŸ¬È‹‡ÊŸ 13. ¬ÊßÕŸ ◊¥ Numpy ∞⁄ ◊¥ zeros() $»¢§Ä‡ÊŸ ∑§Ê ÄÿÊ
$»¢§Ä‡ÊŸ „Ò¥? ©¬ÿÙª „Ò?
(A) count() (B) upper() (A) ‚÷Ë ∞Á‹◊¥≈ ∑§ ‚ÊÕ ∞∑§ ◊ÒÁ≈˛Ä‚ 0 ’ŸÊŸ ∑‘
Á‹∞
(C) strip() (D) ©¬⁄ÙÄà ‚÷Ë (B) ‚÷Ë «UÊÿªÙŸ‹ ∞Á‹◊¥≈ ∑‘ ‚ÊÕ ∞∑§ ◊ÒÁ≈˛Ä‚ 0
Which of the following are valid string ’ŸÊŸ ∑‘ Á‹∞
manipulation functions in Python ? (C) ¬„‹Ë ¬¢ÁÄà ∑‘ ‚ÊÕ ∞∑§ ◊ÒÁ≈˛Ä‚ 0 ’ŸÊŸ ∑‘ Á‹∞
(A) count() (B) upper() (D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥

(C) strip() (D) All of the above What is the use of the zeros() function in
Numpy array in python ?
(A) To make a Matrix with all element 0
(B) To make a Matrix with all diagonal
11. ÁŸêŸÁ‹Áπà S≈≈◊¥≈ ◊¥ ‘f’ ÄÿÊ „Ò? element 0
(C) To make a Matrix with first row 0
f=open(“Data.txt”, “r”)
(D) None of the above
(A) »§Êß‹ ∑§Ê ŸÊ◊ (B) »§Êß‹ „Ò¥«U‹
14. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‚Ê ‡Êéº ¬ÊÿÕŸ ‹Ò¥Çfl¡ ∑§Ê
(C) »§Êß‹ ∑§Ê ◊Ù«U (D) »§Êß‹ „Ò¥«UÁ‹¢ª
∑§Ëfl«¸U Ÿ„Ë¥ „Ò?
What is ‘f’ in the following statement ? (A) val (B) raise
f=open(“Data.txt”, “r”) (C) try (D) with
Which of the following words is not a
(A) File Name (B) File Handle keyword of python language ?
(C) Mode of file (D) File Handling (A) val (B) raise
(C) try (D) with

12. ¬ÊÿÕŸ ‹Ò¥Çfl¡ ◊¥, k ∑§Ù ¬ÊÚfl⁄ l Ã∑§ ’…U∏ÊŸ ∑‘ Á‹∞ 15. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?
ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‚Ê •ÊÚ¬⁄≈⁄ ‚„Ë Áfl∑§À¬ „Ò? a = np.array([[1,2,3],[4,5,6]])
print(a.shape)
(A) k^l (B) k**l
(A) (2, 3) (B) (3, 2)
(C) k^^l (D) k ^ *l (C) (1, 1) (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
In python language, which of the following What is the output of following code ?
operators is the correct option for raising k to import numpy as np
the power l ? a = np.array([[1,2,3],[4,5,6]])
print(a.shape)
(A) k^l (B) k**l
(A) (2, 3) (B) (3, 2)
(C) k^^l (D) k ^ *l (C) (1, 1) (D) None of these

Page 4/13 SPACE FOR ROUGH WORK M3-R5/01-23


16. ÁŸêŸÁ‹Áπà ∑§Ù«U ÁSŸ¬≈U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? 18. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
numbers = (4, 7, 19, 2, 89, 45, 72, 22) def power(x, y=2):
r=1
sorted_numbers = sorted(numbers)
for i in range(y):
odd_numbers = [x for x in sorted_numbers if
x % 2 != 0] r=r*x
return r
print(odd_numbers)
print (power(3))
(A) [7, 19, 45, 89]
print (power(3,3))
(B) [2, 4, 22, 72]
(C) [4, 7, 19, 2, 89, 45, 72, 22] (A) 212
32
(D) [2, 4, 7, 19, 22, 45, 72, 89]
What will be the output of the following code (B) 9
snippet ? 27
numbers = (4, 7, 19, 2, 89, 45, 72, 22)
(C) 567
sorted_numbers = sorted(numbers)
98
odd_numbers = [x for x in sorted_numbers if
x % 2 != 0]
(D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
What will be the output of the following
print(odd_numbers) Python code ?
(A) [7, 19, 45, 89] def power(x, y=2):
(B) [2, 4, 22, 72] r=1
(C) [4, 7, 19, 2, 89, 45, 72, 22] for i in range(y):
r=r*x
(D) [2, 4, 7, 19, 22, 45, 72, 89]
return r
print (power(3))
17. ÁŸêŸÁ‹Áπà S≈≈◊¥≈ ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? print (power(3,3))
>>>”m”+”nl”
(A) 212
(A) ‘m+nl’ (B) ‘mnl’
32
(C) ‘m nl’ (D) ‘m’
(B) 9
What will be the output of following
statement ? 27

>>>”m”+”nl” (C) 567


(A) ‘m+nl’ (B) ‘mnl’ 98
(C) ‘m nl’ (D) ‘m’ (D) None of the above

Page 5/13 SPACE FOR ROUGH WORK M3-R5/01-23


19. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‡Êéº∑§Ù‡Ê ◊¥ key=tiger ∑‘ Á‹∞ 22. Á∑§‚ ¬˝∑§Ê⁄ ∑§Ê «U≈Ê „Ò— arr = [(1, 1), (2, 2), (3, 3)] ?
∑§Ë-flÒÀÿÍ ¬ÿ⁄ ∑§Ù Á«U‹Ë≈ ∑§⁄ªÊ? (A) ≈ȬÀ‚ ∑§Ë ‚ÍøË
dic={“lion”:”wild”,”tiger”:”wild”,”cat”:”domestic”, (B) ‚ÍÁøÿÙ¥ ∑‘ ≈ȬÀ‚
“dog”.”domestic”}
(A) del dic[“tiger”] (C) ≈ȬÀ‚ ∑§Ë ‚⁄áÊË
(B) dic[“tiger”].delete() (D) •◊Êãÿ ¬˝∑§Ê⁄
(C) delete(dic.[“tiger”]) What type of data is : arr = [(1, 1), (2, 2),
(D) del(dic.[“tiger”]) (3, 3)] ?
Which of the following will delete key-value (A) List of tuples
pair for key=”tiger” in dictionary ?
(B) Tuples of lists
dic={“lion”:”wild”,”tiger”:”wild”,”cat”:”domestic”, (C) Array of tuples
“dog”.”domestic”}
(D) Invalid type
(A) del dic[“tiger”]
(B) dic[“tiger”].delete()
(C) delete(dic.[“tiger”]) 23. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?
(D) del(dic.[“tiger”]) import numpy as np
a = np.array( [2, 3, 4, 5] )
20. ∑¢§åÿÍ≈⁄ Á‚S≈◊ ∑§Ê ◊ÁSÃc∑§ __________ „Ò– print(a.dtype)
(A) ⁄Ò◊ (B) ‚ˬËÿÍ (A) int 32 (B) int
(C) ⁄Ù◊ (D) ∑§á≈˛Ù‹ ÿÍÁŸ≈ (C) float (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
The brain of computer system is __________. What will be output for the following code ?
(A) RAM (B) CPU import numpy as np
(C) ROM (D) Control Unit a = np.array( [2, 3, 4, 5] )
print(a.dtype)
21. x ∑§Ê «U≈Ê≈Ê߬ ÄÿÊ „Ò? (A) int 32 (B) int
import numpy as np (C) float (D) None of these
a=np.array([1,2,3,4])
x= a.tolist()
(A) int (B) array
24. ’Êߟ⁄Ë ◊Ù«U ◊¥ «U≈Ê Á‹πŸ ∑‘ Á‹∞ Á∑§‚ $»¢§Ä‡ÊŸ ∑§Ê
(C) tuple (D) list
©¬ÿÙª Á∑§ÿÊ ¡ÊÃÊ „Ò?
What is the datatype of x ? (A) write (B) writelines
import numpy as np (C) dump (D) pickle
a=np.array([1,2,3,4]) Which function is used to write data in binary
x= a.tolist() mode ?
(A) int (B) array (A) write (B) writelines
(C) tuple (D) list (C) dump (D) pickle

Page 6/13 SPACE FOR ROUGH WORK M3-R5/01-23


25. ∞∑§ ∞ÀªÙÁ⁄Õ◊ ∑‘ ‚ÁøòÊ ÁŸM§¬áÊ ∑§Ù __________ ∑§„Ê 27. ÁŸêŸÁ‹Áπà ∑§Ù«U ÁSãʬ≈U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
¡ÊÃÊ „Ò– from math import *

(A) S≈≈◊¥≈ (B) ¬˝Ùª˝Ê◊ a = 2.19


b = 3.999999
(C) ç‹ÊøÊ≈¸ (D) ©¬⁄ÙÄà ‚÷Ë
c = -3.30
Pictorial representation of an algorithm is print(int(a), floor(b), ceil(c), fabs(c))
called as __________.
(A) 2 3 -3 3.3 (B) 3 4 -3 3
(A) Statement (B) Program (C) 2 3 -3 3 (D) 2 3 -3 -3.3
(C) Flow chart (D) All the above What will be the output of the following code
snippet ?
from math import *
26. ÁŸêŸÁ‹Áπà ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò? a = 2.19
b = 3.999999
y = ‘klmn’
c = -3.30
for i in range(len(y)):
print(int(a), floor(b), ceil(c), fabs(c))
print(y) (A) 2 3 -3 3.3 (B) 3 4 -3 3
(A) klmn klmn klmn klmn (C) 2 3 -3 3 (D) 2 3 -3 -3.3

(B) k
28. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
(C) kkk
tuple1=(5,1,7,6,2)
(D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥ tuple1.pop(2)
What is the output of the following ? print(tuple1)
(A) (5,1,6,2) (B) (5,1,7,6)
y = ‘klmn’
(C) (5,1,7,6,2) (D) Error
for i in range(len(y)):
What will be the output of the following
print(y) Python code ?
tuple1=(5,1,7,6,2)
(A) klmn klmn klmn klmn
tuple1.pop(2)
(B) k
print(tuple1)
(C) kkk (A) (5,1,6,2) (B) (5,1,7,6)

(D) None of the these (C) (5,1,7,6,2) (D) Error

Page 7/13 SPACE FOR ROUGH WORK M3-R5/01-23


29. __________ ∑‘ ‚◊ÿ ‚ËÄfl¥‚ ‹ÊÚÁ¡∑§ ∑§Ê ©¬ÿÙª Ÿ„Ë¥ 32. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
Á∑§ÿÊ ¡Ê∞ªÊ– def func(a, b=5, c=10):
(A) ºÙ ‚¢ÅÿÊ•Ù¥ ∑§Ù ÉÊ≈ÊŸ print(‘a is’, a, ‘and b is’, b, ‘and c is’, c)
func(13, 17)
(B) ºÙ «U≈Ê ◊ÊŸÙ¥ ∑§Ë ÃÈ‹ŸÊ ∑§⁄Ÿ
func(a=2, c=4)
(C) ©¬ÿÙª∑§Ãʸ ∑§Ù •Ê©≈¬È≈ ¬˝ºÊŸ ∑§⁄Ÿ
func(5,7,9)
(D) ºÙ Ÿ¢’⁄ ¡Ù«∏Ÿ (A) a is 13 and b is 15 and c is 10
The sequence logic will not be used while a is 2 and b is 5 and c is 4
__________.
a is 5 and b is 7 and c is 9
(A) Subtracting two numbers
(B) a is 13 and b is 17 and c is 10
(B) Comparing two data values
a is 2 and b is 4 and c is 4
(C) Providing output to the user a is 5 and b is 9 and c is 7
(D) Adding two numbers (C) a is 13 and b is 17 and c is 10
a is 2 and b is 5 and c is 4
30. Á«U’Áª¢ª ‚ÊÚç≈flÿ⁄ ◊¥ __________ ∑§Ù ∆Ë∑§ ∑§⁄Ÿ ∑§Ë a is 5 and b is 7 and c is 9
¬˝Á∑˝§ÿÊ „Ò– (D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(A) ¬˝Á∑˝§ÿÊ (B) ∑§Êÿ¸ What will be the output of the following
Python code ?
(C) ’ª (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
def func(a, b=5, c=10):
Debugging is the process of fixing a
print(‘a is’, a, ‘and b is’, b, ‘and c is’, c)
__________ in the software.
func(13, 17)
(A) procedure (B) function
func(a=2, c=4)
(C) bug (D) None of these
func(5,7,9)
(A) a is 13 and b is 15 and c is 10
31. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? a is 2 and b is 5 and c is 4
len([“hello”,2, 4, 6]) a is 5 and b is 7 and c is 9
(A) Error (B) 6 (B) a is 13 and b is 17 and c is 10
(C) 4 (D) 3 a is 2 and b is 4 and c is 4
What will be the output of the following a is 5 and b is 9 and c is 7
Python code ? (C) a is 13 and b is 17 and c is 10
len([“hello”,2, 4, 6]) a is 2 and b is 5 and c is 4
(A) Error (B) 6 a is 5 and b is 7 and c is 9
(C) 4 (D) 3 (D) None of the above

Page 8/13 SPACE FOR ROUGH WORK M3-R5/01-23


33. ÁŸêŸ ◊¥ ‚ ∑§ıŸ $»§Êß‹ (file object ‘f’) ∑§Ë ‚¢¬Íáʸ 36. ÁŸêŸÁ‹Áπà SÿÍ«UÙ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
‚Ê◊ª˝Ë ∑§Ù ¬…U∏ªÊ? Integer a, b
(A) f.reads( ) (B) f.read( ) Set a = 10, b = 5
(C) f.read(all) (D) f.read( * ) a = a mod (a - 6)
b = b mod (b - 2)
Which of the following will read entire
content of file (file object ‘f’) ? Print a - b

(A) f.reads( ) (B) f.read( ) (A) 4 (B) 0


(C) 1 (D) 8
(C) f.read(all) (D) f.read( * )
What will be the output of the following
pseudo code ?
34. ¬ÊÿÕŸ __________ ◊¥ Á‹πÊ ªÿÊ „Ò– Integer a, b
Set a = 10, b = 5
(A) ¡ÊflÊ (B) C
a = a mod (a - 6)
(C) PHP (D) ©¬⁄ÙÄà ‚÷Ë b = b mod (b - 2)
Python is written in __________. Print a - b
(A) Java (B) C (A) 4 (B) 0

(C) PHP (D) All of the above (C) 1 (D) 8

37. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?


35. ∞∑§ __________ ‚ÍøŸÊ ∑§Ù ◊ÊŸfl ¬∆ŸËÿ •Õʸà ASCII
a = set(‘abc’)
ÿÊ ÿÍÁŸ∑§Ù«U fláÊÙZ ∑§Ë ∞∑§ S≈˛Ë◊ ∑‘ M§¬ ◊¥ ‚¢ª˝Á„à ∑§⁄ÃË
b = set(‘cdef’)
„Ò–
print(a&b)
(A) ≈ÄS≈ »§Êß‹ (A) {‘c’}
(B) ’Êߟ⁄Ë »§Êß‹ (B) {‘a’,’b’,’c’,’d’,’e’,’f’}
(C) {c}
(C) (A) •ÊÒ⁄ (B) ºÙŸÙ¥
(D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
What is the output of the following code ?
A _____________ stores information in the
a = set(‘abc’)
form of a stream of ASCII or unicode
characters i.e. human readable. b = set(‘cdef’)

(A) Text file print(a&b)


(A) {‘c’}
(B) Binary file
(B) {‘a’,’b’,’c’,’d’,’e’,’f’}
(C) Both (A) and (B)
(C) {c}
(D) None of these (D) None of these

Page 9/13 SPACE FOR ROUGH WORK M3-R5/01-23


38. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑‘ Á‹∞ •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? 40. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?
import numpy as np
>>>print(5*(2//3))
a = np.array([[1,2,3],[0,1,4]])
(A) 3 (B) 3.3
print (a.size)
(A) 1 (B) 5 (C) 0 (D) error
(C) 6 (D) 4 What is the output of following Python
What will be output for the following code ? code ?

import numpy as np >>>print(5*(2//3))


a = np.array([[1,2,3],[0,1,4]])
(A) 3 (B) 3.3
print (a.size)
(A) 1 (B) 5 (C) 0 (D) error

(C) 6 (D) 4

41. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?


39. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?
>>>list1 = [1, 3]
import numpy as np
a = np.array([1,2,3,5,8]) >>>list2 = list1
b = np.array([0,3,4,2,1])
>>>list1[0] = 4
c=a+b
>>>print(list2)
c = c*a
print (c[2]) (A) [1, 4] (B) [1, 3, 4]
(A) 10 (B) 21 (C) [4, 3] (D) [1, 3]
(C) 12 (D) 28
What will be the output of the following
What is the output of the following code ? Python code ?
import numpy as np
>>>list1 = [1, 3]
a = np.array([1,2,3,5,8])
b = np.array([0,3,4,2,1]) >>>list2 = list1

c=a+b >>>list1[0] = 4
c = c*a
>>>print(list2)
print (c[2])
(A) [1, 4] (B) [1, 3, 4]
(A) 10 (B) 21
(C) 12 (D) 28 (C) [4, 3] (D) [1, 3]

Page 10/13 SPACE FOR ROUGH WORK M3-R5/01-23


42. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò? 44. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑‘ Á‹∞ •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
M=[‘b’ * x for x in range(4)] import numpy as np

print(M) a = np.array([1,2,3,5,8])
print (a.ndim)
(A) [‘’, ‘b’, ‘bb’, ‘bbb’]
(A) 0 (B) 1
(B) [‘b’, ‘bb’, ‘bbb’, ‘bbbb’]
(C) 2 (D) 3
(C) [ ‘b’, ‘bb’, ‘bbb’]
What will be output for the following code ?
(D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥ import numpy as np

What is the output of the following code ? a = np.array([1,2,3,5,8])

M=[‘b’ * x for x in range(4)] print (a.ndim)


(A) 0 (B) 1
print(M)
(C) 2 (D) 3
(A) [‘’, ‘b’, ‘bb’, ‘bbb’]

(B) [‘b’, ‘bb’, ‘bbb’, ‘bbbb’]


45. ç‹ÊøÊ≈¸U ◊¥ ºÙ ‚¢ÅÿÊ•Ù¥ ∑§Ê ÿÙª ∑§⁄Ÿ ∑‘ Á‹∞
(C) [ ‘b’, ‘bb’, ‘bbb’] ÁŸêŸÁ‹Áπà ◊¥ ‚ Á∑§‚ ¬˝ÃË∑§ ∑§Ê ¬˝ÿÙª Á∑§ÿÊ ¡ÊÃÊ „Ò?
(D) None of these (A) ∑§á≈˛Ù‹ ç‹Ê (B) ≈Á◊¸Ÿ‹
(C) ¬˝Ù‚Á‚¢ª (D) Á«UÁ‚¡Ÿ
43. f.read(5) ∞∑§ $ » §Êß‹ (file object is ‘f’) ‚ For performing the addition of two numbers,
__________ ¬…U∏ªÊ? which of the following symbol in a flow chart
are used ?
(A) 5 fláʸ (A) Control flow (B) Terminal
(B) 5 ‡Êéº (C) Processing (D) Decision

(C) 5 ¬¢ÁÄÃÿÊ°
46. ÁŸêŸÁ‹Áπà ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?
(D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
print(max([1, 2, 3, 4], [4, 5, 6], [7]))
f.read(5) will read __________ from a file (file
(A) [4, 5, 6] (B) [7]
object ‘f’).
(C) [1, 2, 3, 4] (D) 7
(A) 5 characters
What is the output of the following ?
(B) 5 words
print(max([1, 2, 3, 4], [4, 5, 6], [7]))
(C) 5 lines (A) [4, 5, 6] (B) [7]
(D) None of the above (C) [1, 2, 3, 4] (D) 7

Page 11/13 SPACE FOR ROUGH WORK M3-R5/01-23


47. ∞∑§ ÁS≈˛¢ª x=”hello” ∑§Ù ºπÃ „È∞ x.count(‘l’) ∑§Ê 50. $ç‹Ù øÊ≈¸ ∑‘ Á‹∞ ∑§ŸÄ≈⁄ ¬˝ÃË∑§ __________ „Ò–
•Ê©≈¬È≈ ÄÿÊ „Ò?
(A) ‚Á∑¸§‹ (B) ‚◊ÊãÃ⁄øÃÈ÷ȸ¡
(A) 2 (B) 1
(C) «UÊÿ◊¢«U (D) ©¬⁄UÊÄà ‚÷Ë
(C) 0 (D) ∑§Ù߸ Ÿ„Ë¥
The connector symbol for flow chart is
Given a string x=”hello” What is the output __________.
of x.count(‘l’) ?
(A) Circle (B) Parallelogram
(A) 2 (B) 1
(C) Diamond (D) All the above
(C) 0 (D) none

48. ÁŸêŸÁ‹Áπà ∞Ä‚¬˝‡ÊŸ ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? 51. ’Êߟ⁄Ë $»§Êß‹ ◊¥ ‚ÍøŸÊ Á∑§‚ ¬˝ÊM§¬ ◊¥ „ÙÃË „Ò?
x = 14 (A) ÁÄfl∑§ Á⁄S¬Ê¢‚ ∑§Ù«U
print(x>>2) (B) ©‚Ë ¬˝ÊM§¬ ◊¥ Á¡‚◊¥ «U≈Ê ∑§Ù ◊◊Ù⁄Ë ◊¥ ⁄πÊ ¡ÊÃÊ
(A) 14 (B) 1 „Ò
(C) 3 (D) 2 (C) ∞∞‚‚Ë•Ê߸•Ê߸ ¬˝ÊM§¬
What will be the output of the following
expression ? (D) ÿÍÁŸ∑§Ù«U ¬˝ÊM§¬
x = 14 In which format Binary file contains
information ?
print(x>>2)
(A) Quick response code
(A) 14 (B) 1
(C) 3 (D) 2 (B) Same format in which the data is held
in memory
(C) ASCII format
49. NumPY ∑§Ê ¬Íáʸ M§¬ „Ò?
(D) Unicode format
(A) Ÿ¢’Á⁄¢ª ¬ÊßÕŸ
(B) Ÿ¢’⁄ ߟ ¬ÊßÕŸ 52. ∑§ıŸ ‚Ê S≈≈◊¥≈ $»§Êß‹ (file object is ‘f’) ‚ ∞∑§ ¬¥ÁÄÃ
(C) ŸÈ◊Á⁄∑§‹ ¬ÊßÕŸ ¬˝SÃÈà ∑§⁄ªÊ?
(D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥ (A) f.readlines( ) (B) f.readline( )
NumPY stands for : (C) f.read( ) (D) f.line( )
(A) Numbering Python Which statement will return one line from a
(B) Number In Python file (file object is ‘f’) ?

(C) Numerical Python (A) f.readlines( ) (B) f.readline( )

(D) None of the above (C) f.read( ) (D) f.line( )

Page 12/13 SPACE FOR ROUGH WORK M3-R5/01-23


53. ∞∑§ ÁflSÃÎà $ç‹ÙøÊ≈¸ ∑§Ù __________ ∑§„Ê ¡ÊÃÊ „Ò– 56. ¬ÊÿÕŸ »§Êß‹ ∑§Ê ‚„Ë ∞Ä‚≈¥‡ÊŸ __________ „Ò–
(A) S≈Ò∑§ (B) ◊Ò∑˝§Ê (A) .py (B) .pyth
(C) ◊Êß∑˝§Ê (D) ÿÍÁŸÿŸ (C) .python (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
A detailed flow chart is called as __________.
The correct extension of the Python file is
(A) stack (B) macro
____________.
(C) micro (D) union
(A) .py (B) .pyth
54. •ãÿ ◊ÊÚ«KÍ‹ ◊¥ Á∑§‚Ë ◊ÊÚ«KÍ‹ ∑§Ê ©¬ÿÙª ∑§⁄Ÿ ∑‘ (C) .python (D) None of these
Á‹∞, •Ê¬∑§Ù ©‚ __________ S≈≈◊¥≈ ∑§Ê ©¬ÿÙª
∑§⁄∑‘ ßê¬Ù≈¸ ∑§⁄ŸÊ „٪ʖ 57. ‹Í¬ ∑‘ •¢º⁄ ∑§Ë ‚Ê◊ª˝Ë ∑§Ù __________ mÊ⁄Ê •‹ª
(A) import Á∑§ÿÊ ¡ÊÃÊ „Ò–
(B) include
(A) ∑§Ù‹Ÿ (B) ∑§ÊÚ◊Ê
(C) (A) •ÊÒ⁄ (B) ºÙŸÙ¥
(D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥ (C) ‚◊Ë∑§Ù‹Ÿ (D) „Ê߸¬Ÿ
To use a module in another module, you must The contents inside the “for loop” are
import it using an ________ statement. separated by :
(A) import (A) colon (B) comma
(B) include
(C) semicolon (D) hyphen
(C) both (A) and (B)
(D) none of the above
58. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
55. ÁŸêŸÁ‹Áπà ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò? from math import factorial
m=0
print(math.factorial(5))
while m < 5:
print(m) (A) 120
m += 1
if m == 3: (B) ∑ȧ¿U ÷Ë Á¬˝ã≈ Ÿ„Ë¥ „ÙªÊ
break (C) ∞⁄⁄, ◊Õ«U $»Ò§Ä≈ÙÁ⁄ÿ‹ ◊ÒÕ ◊Ù«KÍ‹ ◊ ∞∑§Á‚S≈
else:
Ÿ„Ë¥ ∑§⁄ÃÊ
print(0)
(A) 0 1 2 0 (B) 0 1 2 (D) ∞⁄⁄, S≈≈◊¥≈ „ÙŸË øÊÁ„∞— print(factorial(5))
(C) 0 0 1 0 2 (D) error What will be the output of the following
What is the output of the following ? Python code ?
m=0
while m < 5: from math import factorial
print(m) print(math.factorial(5))
m += 1 (A) 120
if m == 3:
(B) Nothing is printed
break
else: (C) Error, method factorial doesn’t exist in
print(0) math module
(A) 0 1 2 0 (B) 0 1 2 (D) Error, the statement should be :
(C) 0 0 1 0 2 (D) error print(factorial(5))

Page 13/13 SPACE FOR ROUGH WORK M3-R5/01-23


59. ÁŸêŸÁ‹Áπà ∑§Ù«U ‚ª◊¥≈ ÄÿÊ Á¬˝¢≈ ∑§⁄ªÊ? 61. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‚Ê ◊ÊÚ«KÍ‹ ∑§Ê ©¬ÿÙª ∑§⁄Ÿ ∑§Ê
if True or True: ‹Ê÷ Ÿ„Ë¥ „Ò?
if False and True or False:
print(‘A’) (A) ¬˝Ùª˝Ê◊ ∑§Ù«U ∑‘ ¬ÈŸ— ©¬ÿÙª ∑§Ê ∞∑§ ‚ÊœŸ ¬˝ºÊŸ
elif False and False or True and True: ∑§⁄ÃÊ „Ò
print(‘B’)
(B) ∑§ÊÿÙZ ∑§Ù Áfl÷ÊÁ¡Ã ∑§⁄Ÿ ∑§Ê ∞∑§ ‚ÊœŸ ¬˝ºÊŸ
else:
∑§⁄ÃÊ „Ò
print(‘C’)
else: (C) ¬˝Ùª˝Ê◊ ∑‘ •Ê∑§Ê⁄ ∑§Ù ∑§◊ ∑§⁄Ÿ ∑§Ê ∞∑§ ‚ÊœŸ
print(‘D’) ¬˝ºÊŸ ∑§⁄ÃÊ „Ò
(A) A (B) B
(C) C (D) D (D) ¬˝Ùª˝Ê◊ ∑‘ •‹ª-•‹ª Á„S‚Ù¥ ∑‘ ¬⁄ˡÊáÊ ∑§Ê ∞∑§
What will following code segment print ? ‚ÊœŸ ¬˝ºÊŸ ∑§⁄ÃÊ „Ò
if True or True:
if False and True or False: Which of the following is not an advantage
of using modules ?
print(‘A’)
elif False and False or True and True: (A) Provides a means of reuse of program
print(‘B’) code
else:
(B) Provides a means of dividing up tasks
print(‘C’)
else: (C) Provides a means of reducing the size
print(‘D’) of the program
(A) A (B) B (D) Provides a means of testing individual
(C) C (D) D parts of the program

60. ÁŸêŸÁ‹Áπà ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?


x=123 62. ‚ÊÚç≈flÿ⁄ ∑‘ Áfl∑§Ê‚ ∑‘ Á∑§‚ ø⁄áÊ ◊¥ ‚ÊÚç≈flÿ⁄ ∑§Ë
for i in x: ªÈáÊflûÊÊ ∑§Ê ¬˝‹πŸ Á∑§ÿÊ ¡ÊÃÊ „Ò?
print(i)
(A) 123 (B) 123 (A) ≈ÁS≈¢ª (B) «U‹Ëfl⁄Ë
(C) Error (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(C) •ÊßÁ«UÿÊ (D) Áfl∑§Ê‚
What is the output of the following ?
x=123 In which software development phase quality
for i in x: of software is documented ?
print(i)
(A) Testing (B) Delivery
(A) 1 2 3 (B) 123
(C) Error (D) None of these (C) Idea (D) Development

Page 14/13 SPACE FOR ROUGH WORK M3-R5/01-23


63. ∞∑§ ‚ •Áœ∑§ «Ufl‹¬⁄ ∑§Ù •‚Êߟ ∑§⁄Ÿ ∑‘ Á‹∞ 66. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑‘ Á‹∞ •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
‚¢⁄Áøà ¬˝Ùª˝Ê◊ ∑§Ù __________ ◊¥ π¢Á«Uà Á∑§ÿÊ ¡Ê ‚∑§ÃÊ
import numpy as np
„Ò–
ary = np.array([1,2,3,5,8])
(A) ‚Ç◊¥≈˜‚ (B) ◊ı«ÍUÀ‚
ary = ary + 1
(C) ÿÍÁŸ≈˜‚ (D) ©¬⁄ÙÄà ‚÷Ë
Structured program can be broken into print (ary[1])
__________ to assign to more than one
(A) 0 (B) 1
developer.
(A) Segments (B) Modules (C) 2 (D) 3
(C) Units (D) All the above What will be output for the following code ?

import numpy as np
64. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
ary = np.array([1,2,3,5,8])
from math import *
floor(11.7) ary = ary + 1
(A) 12 print (ary[1])
(B) 11
(A) 0 (B) 1
(C) 11.0
(D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥ (C) 2 (D) 3

What will be the output of the following


Python code ?
from math import *
67. ÁŸêŸÁ‹Áπà ◊¥ ‚ Á∑§‚◊¥ «U≈Ê SÕÊÿË M§¬ ‚ ‚¢ª˝Á„Ã
Á∑§ÿÊ ¡ÊÃÊ „Ò?
floor(11.7)
(A) 12 (A) flÁ⁄∞’‹
(B) 11
(C) 11.0
(B) »§Êß‹
(D) None of these (C) ©¬⁄ÙÄà ºÙŸÙ¥
(D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
65. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‚Ê »¢§Ä‡ÊŸ ¬ÊßÕŸ ◊¥ Á’À≈-ߟ
»¢§Ä‡ÊŸ „Ò? In which of the following, data is stored
permanently ?
(A) factorial() (B) print()
(C) seed() (D) sqrt() (A) Variable
Which of the following functions is a built-in (B) File
function in python ?
(A) factorial() (B) print() (C) Both of the above

(C) seed() (D) sqrt() (D) None of the above

Page 15/13 SPACE FOR ROUGH WORK M3-R5/01-23


68. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò? 70. ÁŸêŸÁ‹Áπà ∑§Ù«U ÁSŸ¬≈U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
def s(n1): print([i.lower() for i in “HELLO”])
print(n1)
(A) hello
n1 = n1 +2
(B) [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
n2=4
s(n2) (C) hel
print(n2) (D) HELLO
(A) 6 4 (B) 4 6 What is the output of the following code
(C) 4 4 (D) 6 6 snippet ?
What is the output of the following code ? print([i.lower() for i in “HELLO”])
def s(n1): (A) hello
print(n1)
(B) [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
n1 = n1 +2
n2=4 (C) hel
s(n2) (D) HELLO
print(n2)
(A) 6 4 (B) 4 6
71. Á⁄∑§Á‚¸fl »¢§Ä‡ÊŸ __________ „Ò–
(C) 4 4 (D) 6 6
(A) ∞∑§ $»¢§Ä‡ÊŸ ¡Ù Sflÿ¢ ∑§Ù ∑§ÊÚ‹ ∑§⁄ÃÊ „Ò
69. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? (B) ∞∑§ $»¢§Ä‡ÊŸ ¡Ù •ãÿ ∑§ÊÿÙZ ∑§Ù ∑§ÊÚ‹ ∑§⁄ÃÊ „Ò
def display(b, n):
(C) (A) •ÊÒ⁄ (B) ºÙŸÙ¥
while n>0:
print(b, end=””) (D) ©¬⁄ÙÄàÊ ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
n=n-1 Recursive function is __________.
display(‘z’, 3) (A) A function that calls itself
(A) zzz
(B) A function that calls other functions
(B) zz
(C) Infinite loop (C) Both (A) and (B)
(D) An exception is thrown (D) None of the above
What will be the output of the following
Python code ?
72. ÁŸêŸÁ‹Áπà ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
def display(b, n):
while n>0: print(sum(1,2,3))
print(b, end=””) (A) Error (B) 6
n=n-1 (C) 1 (D) 3
display(‘z’, 3) What will be the output of the following ?
(A) zzz
print(sum(1,2,3))
(B) zz
(C) Infinite loop (A) Error (B) 6
(D) An exception is thrown (C) 1 (D) 3

Page 16/13 SPACE FOR ROUGH WORK M3-R5/01-23


73. ¬ÊÿÕŸ ‹Ò¥Çfl¡ ◊¥ ∑§Ù«U ∑‘ é‹ÊÚ∑§ ∑§Ù ¬Á⁄÷ÊÁ·Ã ∑§⁄Ÿ ∑‘ 76. Á∑§‚Ë »¢§Ä‡ÊŸ ∑‘ ’Ê„⁄ ¬Á⁄÷ÊÁ·Ã flÁ⁄∞’‹ ∑§Ù ÄÿÊ
Á‹∞ ÁŸêŸÁ‹Áπà ◊¥ ‚ Á∑§‚∑§Ê ©¬ÿÙª Á∑§ÿÊ ¡ÊÃÊ „Ò? ∑§„Ã „Ò¥?
(A) try (B) ’˝Ò∑§≈˜U‚ (A) ∞∑§ ÁSÕ⁄ flÁ⁄∞’‹
(C) ߢ«¥U≈‡ÊŸ (D) ∑Ò§ø (B) ∞∑§ flÒÁE∑§ flÁ⁄∞’‹
Which of the following is used to define a (C) ∞∑§ SÕÊŸËÿ flÁ⁄∞’‹
block of code in Python language ?
(D) ∞∑§ SfløÊÁ‹Ã flÁ⁄∞’‹
(A) try (B) Brackets
What is a variable defined outside a function
(C) Indentation (D) Catch referred to as ?
(A) A static variable
(B) A global variable
74. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?
(C) A local variable
import numpy as np
(D) An automatic variable
a = np.array([1,2,3])
print(a.ndim)
77. •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
(A) 1 (B) 2
Y=[2,5J,6]
(C) 3 (D) 0
Y.sort()
What is the output of the following code ? (A) [2,6,5J] (B) [5J,2,6]
import numpy as np (C) Error (D) [6,5J,2]
a = np.array([1,2,3]) What will be the output of following ?
print(a.ndim) Y=[2,5J,6]
(A) 1 (B) 2 Y.sort()

(C) 3 (D) 0 (A) [2,6,5J] (B) [5J,2,6]


(C) Error (D) [6,5J,2]

75. ‚Í«UÊ-∑§Ê«U ◊¥ ¬ŒÊŸÈ∑˝§◊ ∑§Ê __________ mÊ⁄UÊ ÁŒπÊÿÊ


¡Ê ‚∑§ÃÊ „Ò — 78. ç‹Ê øÊ≈¸ ◊ ¥ ¬Ã¢ ª / «U Ê ÿ◊¢ « U ¬˝ à Ë∑§ ∑§Ê ©¬ÿÙª
__________ ∑‘ Á‹∞ Á∑§ÿÊ ¡ÊÃÊ „Ò–
(A) ∑§‹Ë¸ ’˝‚‚ (B) ⁄UÊ©¥«U ’˝Ò∑§≈U
(A) ÁŸc¬ÊºŸ (B) Á«UÁ‚¡Ÿ
(C) •Ê߸«¥U≈U‡ÊŸ (D) ‚◊Ë∑§Ê‹Ÿ
(C) S≈≈◊¥≈ (D) ©¬⁄ÙÄà ‚÷Ë
Hierarchy in a pseudo-code can be shown
Kite/diamond symbol in flow chart is used
by :
for __________.
(A) Curly Braces (B) Round Brackets (A) Execution (B) Decision
(C) Indentation (D) Semicolon (C) Statement (D) All of the above

Page 17/13 SPACE FOR ROUGH WORK M3-R5/01-23


79. a=5, b=8 c=6 ∑‘ Á‹∞ ÁŸêŸÁ‹Áπà ∞ÀªÙÁ⁄Õ◊ ∑§Ê 80. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
•Ê©≈¬È≈ ÄÿÊ „ÙªÊ? example = “helle”
Step 1 : Start
Step 2 : Declare variables a, b and c. example.rfind(“e”)
Step 3 : Read variables a, b and c. (A) 1 (B) 2
Step 4 : If a < b
(C) 4 (D) 5
If a < c
Display a is the smallest number. What will be the output of the following
Else Python code ?
Display c is the smallest number. example = “helle”
Else
If b < c example.rfind(“e”)
Display b is the smallest number. (A) 1 (B) 2
Else
Display c is the smallest number. (C) 4 (D) 5
Step 5 : Stop
(A) a ‚’‚ ¿UÙ≈Ë ‚¢ÅÿÊ „Ò
81. ∞∑§ __________ S≈≈◊¥≈ ∑§Ê ©¬ÿÙª Ã’ Á∑§ÿÊ ¡ÊÃÊ „Ò
(B) b ‚’‚ ¿UÙ≈Ë ‚¢ÅÿÊ „Ò
¡’ ∑§Ù߸ S≈≈◊¥≈ flÊÄÿÊà◊∑§ M§¬ ◊¥ •Êfl‡ÿ∑§ „ÙÃÊ
(C) c ‚’‚ ¿UÙ≈Ë ‚¢ÅÿÊ „Ò „Ò ‹Á∑§Ÿ •Ê¬ Ÿ„Ë¥ øÊ„Ã Á∑§ ∑§Ù߸ ∑§Ù«U ÁŸc¬ÊÁºÃ „Ù–
(D) stop
What will be the output of the following (A) break (B) pass
algorithm for a=5, b=8, c=6 ?
(C) continue (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
Step 1 : Start
Step 2 : Declare variables a, b and c. A _______ statement is used when a
Step 3 : Read variables a, b and c. statement is required syntactically but you do
Step 4 : If a < b not want any code to execute.
If a < c (A) break (B) pass
Display a is the smallest number.
(C) continue (D) none of these
Else
Display c is the smallest number. 82. ç‹Ê ø Ê≈¸ U ◊ ¥ •Ê©≈¬È ≈ ∑§Ù ÁŸM§Á¬Ã ∑§⁄Ÿ ∑‘ Á‹∞
Else ÁŸêŸÁ‹Áπà ◊¥ ‚ Á∑§‚ Áøã„ ∑§Ê ¬˝ÿÙª Á∑§ÿÊ ¡ÊÃÊ „Ò?
If b < c
Display b is the smallest number. (A) flª¸ (B) ‚Á∑¸§‹
Else
Display c is the smallest number.
(C) ‚◊ÊãÃ⁄øÃÈ÷ȸ¡ (D) ÁòÊ∑§ÙáÊ
Step 5 : Stop Which of the following symbols is used to
(A) a is the smallest number represent output in a flow chart ?
(B) b is the smallest number
(A) Square (B) Circle
(C) c is the smallest number
(D) stop (C) Parallelogram (D) Triangle

Page 18/13 SPACE FOR ROUGH WORK M3-R5/01-23


83. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ-‚Ê ∞∑§ •¬Á⁄fløŸËÿ «U≈Ê ¬˝∑§Ê⁄ 86. $ç‹ÙøÊ≈¸ ◊¥ ºÙ é‹ÊÚ∑§Ù¥ ∑§Ù ¡Ù«∏Ÿ ∑‘ Á‹∞ ç‹Ê‹Êߟ ∑‘
„Ò? M§¬ ◊¥ Á∑§‚ ¬˝ÃË∑§ ∑§Ê ©¬ÿÙª Á∑§ÿÊ ¡ÊÃÊ „Ò?

(A) Á‹S≈ (B) ‚≈ (A) ∞⁄Ù (B) ‚Á∑¸§‹

(C) tuple (D) dict (C) ’ÊÚÄ‚ (D) ‚◊ÊãÃ⁄øÃÈ÷ȸ¡


Which one of the following is immutable data Which symbol is used as a flowline to connect
type ? two blocks in a flow chart ?

(A) list (B) set (A) arrow (B) circle

(C) tuple (D) dict (C) box (D) parallelogram

84. readlines() ◊Õ«U ÄÿÊ Á⁄≈Ÿ¸ ∑§⁄ÃÊ „Ò? 87. ÁŸêŸÁ‹Áπà SÿÍ«UÙ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ, ¡„Ê°
ANd •ÊÚ¬⁄‡ÊŸ ∑§Ê ¬˝ÁÃÁŸÁœàfl ∑§⁄ÃÊ „Ò?
(A) ‡Êéº∑§Ù‡Ê (B) ÁS≈˛¢ª Integer a, b, c

(C) ≈¬‹ (D) Á‹S≈ Set b = 5, a = 1

What does readlines() method return ? c=a&b

(A) Dictionary (B) String Print c

(C) Tuple (D) List (A) 1 (B) 3

(C) 5 (D) 7

What will be the output of the following


85. •‚¥’‹Ë ÷Ê·Ê ∑§Ù ◊‡ÊËŸË ÷Ê·Ê ◊¥ ’º‹Ÿ ∑‘ Á‹∞ Á∑§‚ pseudo code, where & represent ANd
•ŸÈflʺ∑§ ∑§Ê ©¬ÿÙª Á∑§ÿÊ ¡ÊÃÊ „Ò? operation ?

(A) ∑§ê¬Êß‹⁄ (B) ߢ≈⁄¬˝≈⁄ Integer a, b, c

Set b = 5, a = 1
(C) •‚ê’‹⁄ (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
c=a&b
Which translator is used to convert assembly
language into machine language ? Print c

(A) Compiler (B) Interpreter (A) 1 (B) 3

(C) Assembler (D) None of these (C) 5 (D) 7

Page 19/13 SPACE FOR ROUGH WORK M3-R5/01-23


88. __________ $»¢§Ä‡ÊŸ $»§Êß‹ ¬ÊÚߢ≈⁄ ∑§Ë flø◊ÊŸ ÁSÕÁà 91. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ¬ÊÿÕŸ ◊¥ ∞∑§ ◊Êãÿ •¢∑§ªÁáÊÃËÿ
¬˝SÃÈà ∑§⁄ÃÊ „Ò– •ÊÚ¬⁄≈⁄ „Ò?
(A) get( ) (B) tell( )
(C) seek( ) (D) cur( ) (A) // (B) ?
__________ function returns the current
position of file pointer. (C) < (D) and
(A) get( ) (B) tell( )
(C) seek( ) (D) cur( ) Which of the following is a valid arithmetic
operator in Python ?

89. Á‹S≈U 1 ◊¥ ∞∑§ ∞Á‹◊¥≈U (5) ¡Ê«∏Ÿ ∑§ Á‹∞ $»¥§Ä‡ÊŸ ∑§Ê (A) // (B) ?
©¬ÿÊª Á∑§ÿÊ ¡ÊÃÊ „Ò?
(A) list1.sum(5) (C) < (D) and
(B) list1.add(5)
(C) list1.append(5)
(D) list1.addelement(5)
Which function is used to add an element (5) 92. ¬Ò∑§¡ ‚ ‚÷Ë ◊ÊÚ«KÍ‹ ßê¬Ù≈¸ ∑§⁄Ÿ ∑‘ Á‹∞ ∑§ıŸ ‚Ê
in the list1 ? S≈≈◊¥≈ ‚„Ë „Ò?
(A) list1.sum(5)
(B) list1.add(5) (A) from package import all
(C) list1.append(5)
(D) list1.addelement(5) (B) from package import *

90. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? (C) from package include all

x = ‘abcd’
(D) from package include *
for i in x:
print(i.upper())
Which statement is correct to import all
(A) aBCD (B) abcd modules from the package ?
(C) error (D) ABCD
What will be the output of the following (A) from package import all
Python code ?
x = ‘abcd’ (B) from package import *
for i in x:
print(i.upper()) (C) from package include all
(A) aBCD (B) abcd
(C) error (D) ABCD (D) from package include *

Page 20/13 SPACE FOR ROUGH WORK M3-R5/01-23


93. ¡’ „◊ Á∑§‚Ë ∞‚Ë »§Êß‹ ∑§Ù ⁄Êß≈ ◊Ù«U ◊¥ πÙ‹Ÿ ∑§Ë 95. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ∞∑§ ÁŸÿ¢òÊáÊ ‚¢⁄øŸÊ Ÿ„Ë¥ „Ò?
∑§ÙÁ‡Ê‡Ê ∑§⁄Ã „Ò¥, ¡Ù ◊ı¡Íº Ÿ„Ë¥ „Ò, ÃÙ ÁŸêŸ ◊¥ ‚ ∑§ıŸ
‚Ë ∞⁄⁄ ÁºπÊ߸ ºÃË „Ò? (A) ‹Í¬ (B) ¬˝Ù‚‚
(C) Á«UÁ‚¡Ÿ (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(A) File Found Error
Which of the following is not a control
(B) File Not Exist Error structure ?

(C) File Not Found Error (A) Loop (B) Process

(C) Decision (D) None of these


(D) ©¬⁄UÊÄà ◊¥ ‚ ∑§Ê߸ Ÿ„Ë¥

Which of the following error is returned when


we try to open a file in write mode which
96. ÁŸêŸÁ‹Áπà ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?
does not exist ?
n=5
(A) File Found Error while n>0:

(B) File Not Exist Error n-=1

if n ==2:
(C) File Not Found Error
continue
(D) None of the above
print(n)

(A) 54310 (B) 4310

94. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê flÒÀÿÍ ÄÿÊ „Ò? (C) 432 (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥

>>>print(36 / 4) What is the output of the following ?

n=5
(A) 9 (B) 4
while n>0:
(C) 9.0 (D) 4.0
n-=1
What is the value of the following Python if n ==2:
code ?
continue
>>>print(36 / 4)
print(n)
(A) 9 (B) 4 (A) 54310 (B) 4310

(C) 9.0 (D) 4.0 (C) 432 (D) None of these

Page 21/13 SPACE FOR ROUGH WORK M3-R5/01-23


97. ¡’ „◊ ∞¬¥«U ◊Ù«U ◊¥ »§Êß‹ πÙ‹Ã „Ò¥ ÃÙ »§Êß‹ ¬ÊÚߢ≈⁄ 99. ¬ÊÿÕŸ ∑‘ ‚ãº÷¸ ◊¥ ‚„Ë Áfl∑§À¬ ∑§Ê øÿŸ ∑§ËÁ¡∞–
»§Êß‹ ∑‘ __________ ¬⁄ „ÙÃÊ „Ò– (A) ≈ȬÀ‚ •ÊÒ⁄ Á‹S≈˜‚ ºÙŸÙ¥ •¬Á⁄fløŸËÿ „Ò¥

(A) $»§Êß‹ ∑§ ’Ëø ◊¥ ∑§„Ë¥ ÷Ë (B) ≈È ¬ À‚ •¬Á⁄flø Ÿ Ëÿ „Ò ¥ ¡’Á∑§ Á‹S≈˜ ‚
¬Á⁄fløŸ‡ÊË‹ „Ò¥
(B) •¢Ã (C) ≈ȬÀ‚ •ÊÒ⁄ Á‹S≈˜‚ ºÙŸÙ¥ ¬Á⁄fløŸ‡ÊË‹ „Ò¥
(C) •Ê⁄ê÷ ◊¥ (D) ≈È ¬ À‚ ¬Á⁄flø Ÿ ‡ÊË‹ „ÙÃ „Ò ¥ ¡’Á∑§ Á‹S≈˜ ‚
•¬Á⁄fløŸËÿ „ÙÃË „Ò¥
(D) $»§Êß‹ ∑§Ë ºÍ‚⁄Ë ¬¢ÁÄà Choose the correct option with respect to
Python.
When we open file in append mode the file
pointer is at the _________ of the file. (A) Both tuples and lists are immutable
(B) Tuples are immutable while lists are
(A) anywhere in between the file mutable
(C) Both tuples and lists are mutable
(B) end
(D) Tuples are mutable while lists are
(C) beginning immutable

(D) second line of the file


100. ÁŸêŸÁ‹Áπà ∑§Ù«U ÁSŸ¬≈U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
d = {3, 4, 5}

98. $ç‹ÙøÊ≈¸ •ÊÒ⁄ ∞ÀªÙÁ⁄Õ◊ ∑§Ê ©¬ÿÙª __________ ∑‘ Á‹∞ for k in d:


Á∑§ÿÊ ¡ÊÃÊ „Ò– print(k)
(A) {3, 4, 5} {3, 4, 5} {3, 4, 5}
(A) ’„Ã⁄ ¬˝Ùª˝ÊÁ◊¢ª (B) 345
(C) Syntax Error
(B) •ŸÈ∑ͧÁ‹Ã ∑§ÙÁ«¢Uª
(D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(C) √ÿflÁSÕà ¬⁄ˡÊáÊ What will be the output of the following code
snippet ?
(D) ©¬⁄ÙÄà ‚÷Ë d = {3, 4, 5}
for k in d:
Flow charts and Algorithms are used for
__________. print(k)
(A) {3, 4, 5} {3, 4, 5} {3, 4, 5}
(A) Better Programming
(B) 345
(B) Optimized Coding (C) Syntax Error
(D) None of the above
(C) Systematic testing

(D) All the above -o0o-

Page 22/13 SPACE FOR ROUGH WORK M3-R5/01-23


SPACE FOR ROUGH WORK

Page 23/13 SPACE FOR ROUGH WORK M3-R5/01-23


SPACE FOR ROUGH WORK

Page 24/13 SPACE FOR ROUGH WORK M3-R5/01-23

You might also like