0% found this document useful (0 votes)
271 views24 pages

M3 R5 Jan2023 Set4

Uploaded by

TaniShq rastogi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
271 views24 pages

M3 R5 Jan2023 Set4

Uploaded by

TaniShq rastogi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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 : 14
ÁŸœÊ¸Á⁄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. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ∞∑§ ÁŸÿ¢òÊáÊ ‚¢⁄øŸÊ Ÿ„Ë¥ „Ò? 4. NumPY ∑§Ê ¬Íáʸ M§¬ „Ò?

(A) ‹Í¬ (B) ¬˝Ù‚‚


(A) Ÿ¢’Á⁄¢ª ¬ÊßÕŸ
(C) Á«UÁ‚¡Ÿ (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(B) Ÿ¢’⁄ ߟ ¬ÊßÕŸ
Which of the following is not a control
structure ?
(C) ŸÈ◊Á⁄∑§‹ ¬ÊßÕŸ
(A) Loop (B) Process

(C) Decision (D) None of these (D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥

NumPY stands for :


2. ç‹ÊøÊ≈¸U ◊¥ ºÙ ‚¢Åÿʕ٥ ∑§Ê ÿÙª ∑§⁄Ÿ ∑‘ Á‹∞
ÁŸêŸÁ‹Áπà ◊¥ ‚ Á∑§‚ ¬˝ÃË∑§ ∑§Ê ¬˝ÿÙª Á∑§ÿÊ ¡ÊÃÊ „Ò? (A) Numbering Python

(A) ∑§á≈˛Ù‹ ç‹Ê (B) ≈Á◊¸Ÿ‹ (B) Number In Python

(C) ¬˝Ù‚Á‚¢ª (D) Á«UÁ‚¡Ÿ (C) Numerical Python


For performing the addition of two numbers,
which of the following symbol in a flow chart (D) None of the above
are used ?

(A) Control flow (B) Terminal

(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) seed() (D) sqrt() (C) box (D) parallelogram

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


6. fun1() ∑§Ë ‚„Ë $»¢§Ä‡ÊŸ Á«UÄ‹⁄‡ÊŸ øÈŸ¥ ÃÊÁ∑§ „◊ 8. ∑§ıŸ ‚Ê S≈≈◊¥≈ $»§Êß‹ (file object is ‘f’) ‚ ∞∑§
ÁŸêŸÁ‹Áπà ºÙ $»¢§Ä‡ÊŸ ∑§ÊÚ‹ ∑§Ù ‚»§‹ÃʬÍfl¸∑§ ÁŸc¬ÊÁºÃ ¬¥ÁÄà ¬˝SÃÈà ∑§⁄ªÊ?
∑§⁄ ‚∑¥§– (A) f.readlines( ) (B) f.readline( )
fun1(25, 75, 55) (C) f.read( ) (D) f.line( )

fun1(10, 20) Which statement will return one line from a


file (file object is ‘f’) ?
(A) def fun1(**kwargs) (A) f.readlines( ) (B) f.readline( )
(B) def fun1(args*) (C) f.read( ) (D) f.line( )

(C) No, it is not possible in Python

(D) def fun1(*data)


9. __________ $»¢§Ä‡ÊŸ $»§Êß‹ ¬ÊÚߢ≈⁄ ∑§Ë flø◊ÊŸ ÁSÕÁÃ
¬˝SÃÈà ∑§⁄ÃÊ „Ò–
Choose the correct function declaration of
fun1() so that we can execute the following (A) get( ) (B) tell( )
two function calls successfully. (C) seek( ) (D) cur( )

fun1(25, 75, 55) __________ function returns the current


position of file pointer.
fun1(10, 20)
(A) get( ) (B) tell( )
(A) def fun1(**kwargs) (C) seek( ) (D) cur( )
(B) def fun1(args*)

(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

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


11. ∞∑§ ‚ •Áœ∑§ «Ufl‹¬⁄ ∑§Ù •‚Êߟ ∑§⁄Ÿ ∑‘ Á‹∞ 13. readlines() ◊Õ«U ÄÿÊ Á⁄≈Ÿ¸ ∑§⁄ÃÊ „Ò?
‚¢⁄ÁøÃ ¬˝Ùª˝Ê◊ ∑§Ù __________ ◊¥ π¢Á«Uà Á∑§ÿÊ ¡Ê ‚∑§ÃÊ
„Ò– (A) ‡Êéº∑§Ù‡Ê (B) ÁS≈˛¢ª

(A) ‚Ç◊¥≈˜‚ (B) ◊ı«ÍUÀ‚ (C) ≈¬‹ (D) Á‹S≈


(C) ÿÍÁŸ≈˜‚ (D) ©¬⁄ÙÄà ‚÷Ë What does readlines() method return ?

Structured program can be broken into (A) Dictionary (B) String


__________ to assign to more than one
developer. (C) Tuple (D) List
(A) Segments (B) Modules

(C) Units (D) All the above


14. ÁŸêŸÁ‹Áπà SÿÍ«UÙ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ, ¡„ʰ
ANd •ÊÚ¬⁄‡ÊŸ ∑§Ê ¬˝ÁÃÁŸÁœàfl ∑§⁄ÃÊ „Ò?
12. ÁŸêŸÁ‹Áπà SÿÍ«UÙ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
Integer a, b, c
Integer a, b
Set b = 5, a = 1
Set a = 10, b = 5
c=a&b
a = a mod (a - 6)

b = b mod (b - 2) Print c

Print a - b (A) 1 (B) 3


(A) 4 (B) 0 (C) 5 (D) 7
(C) 1 (D) 8
What will be the output of the following
What will be the output of the following pseudo code, where & represent ANd
pseudo code ? operation ?

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

(C) 1 (D) 8 (C) 5 (D) 7

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


15. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò? 17. ÁŸêŸÁ‹Áπà S≈≈◊¥≈ ◊¥ ‘f’ ÄÿÊ „Ò?
import numpy as np f=open(“Data.txt”, “r”)

a = np.array([1,2,3,5,8]) (A) »§Êß‹ ∑§Ê ŸÊ◊ (B) »§Êß‹ „Ò¥«U‹


b = np.array([0,3,4,2,1]) (C) »§Êß‹ ∑§Ê ◊Ù«U (D) »§Êß‹ „Ò¥«UÁ‹¢ª
What is ‘f’ in the following statement ?
c=a+b
f=open(“Data.txt”, “r”)
c = c*a (A) File Name (B) File Handle
print (c[2]) (C) Mode of file (D) File Handling

(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’]

What is the output of following code ? (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥


What is the output of the following code ?
import numpy as np
M=[‘b’ * x for x in range(4)]
a = np.array([[1,2,3],[4,5,6]]) print(M)
print(a.shape) (A) [‘’, ‘b’, ‘bb’, ‘bbb’]
(B) [‘b’, ‘bb’, ‘bbb’, ‘bbbb’]
(A) (2, 3) (B) (3, 2)
(C) [ ‘b’, ‘bb’, ‘bbb’]
(C) (1, 1) (D) None of these (D) None of these

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


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

a = np.array([1,2,3]) import numpy as np

print(a.ndim) a = np.array([[1,2,3],[0,1,4]])

(A) 1 (B) 2 print (a.size)


(C) 3 (D) 0 (A) 1 (B) 5

(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) ? __________.

(C) < (D) and (A) Subtracting two numbers


Which of the following is a valid arithmetic (B) Comparing two data values
operator in Python ?
(C) Providing output to the user
(A) // (B) ?

(C) < (D) and (D) Adding two numbers

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


25. •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? 28. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‚Ë Á«UÄ‹⁄‡ÊŸ ª‹Ã „Ò?
Y=[2,5J,6] (A) _x = 2 (B) x=3
Y.sort()
(C) __xyz__ = 5 (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(A) [2,6,5J] (B) [5J,2,6]
Which of the following declarations is
(C) Error (D) [6,5J,2]
incorrect ?
What will be the output of following ?
(A) _x = 2 (B) x=3
Y=[2,5J,6]
(C) __xyz__ = 5 (D) None of these
Y.sort()
(A) [2,6,5J] (B) [5J,2,6]
(C) Error (D) [6,5J,2] 29. ∞∑§ __________ S≈≈◊¥≈ ∑§Ê ©¬ÿÙª Ã’ Á∑§ÿÊ ¡ÊÃÊ „Ò
¡’ ∑§Ù߸ S≈≈◊¥≈ flÊÄÿÊà◊∑§ M§¬ ◊¥ •Êfl‡ÿ∑§ „ÙÃÊ
„Ò ‹Á∑§Ÿ •ʬ Ÿ„Ë¥ øÊ„Ã Á∑§ ∑§Ù߸ ∑§Ù«U ÁŸc¬ÊÁºÃ „Ù–
26. ’Êߟ⁄Ë ◊Ù«U ◊¥ «U≈Ê Á‹πŸ ∑‘ Á‹∞ Á∑§‚ $»¢§Ä‡ÊŸ ∑§Ê
(A) break (B) pass
©¬ÿÙª Á∑§ÿÊ ¡ÊÃÊ „Ò?
(A) write (B) writelines (C) continue (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(C) dump (D) pickle A _______ statement is used when a
statement is required syntactically but you do
Which function is used to write data in binary
not want any code to execute.
mode ?
(A) write (B) writelines (A) break (B) pass

(C) dump (D) pickle (C) continue (D) none of these

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) both (A) and (B) (C) A local variable


(D) none of the above (D) An automatic variable

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


31. ç‹Ê øÊ≈¸ ◊ ¥ ¬Ã¢ ª / «U Ê ÿ◊¢ « U ¬˝ à Ë∑§ ∑§Ê ©¬ÿÙª 34. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
__________ ∑‘ Á‹∞ Á∑§ÿÊ ¡ÊÃÊ „Ò >>>list1 = [1, 3]
>>>list2 = list1
(A) ÁŸc¬ÊºŸ (B) Á«UÁ‚¡Ÿ
>>>list1[0] = 4
(C) S≈≈◊¥≈ (D) ©¬⁄ÙÄà ‚÷Ë >>>print(list2)
Kite/diamond symbol in flow chart is used (A) [1, 4] (B) [1, 3, 4]
for __________. (C) [4, 3] (D) [1, 3]
What will be the output of the following
(A) Execution (B) Decision
Python code ?
(C) Statement (D) All of the above >>>list1 = [1, 3]
>>>list2 = list1
32. x ∑§Ê «U≈Ê≈Ê߬ ÄÿÊ „Ò? >>>list1[0] = 4
>>>print(list2)
import numpy as np (A) [1, 4] (B) [1, 3, 4]
a=np.array([1,2,3,4]) (C) [4, 3] (D) [1, 3]
x= a.tolist()
(A) int (B) array 35. ÁŸêŸÁ‹Áπà S≈≈◊¥≈ ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
(C) tuple (D) list >>>”m”+”nl”
(A) ‘m+nl’ (B) ‘mnl’
What is the datatype of x ?
(C) ‘m nl’ (D) ‘m’
import numpy as np What will be the output of following
a=np.array([1,2,3,4]) statement ?
x= a.tolist() >>>”m”+”nl”
(A) ‘m+nl’ (B) ‘mnl’
(A) int (B) array
(C) ‘m nl’ (D) ‘m’
(C) tuple (D) list
36. ¬ÊÿÕŸ ∑‘ ‚ãº÷¸ ◊¥ ‚„Ë Áfl∑§À¬ ∑§Ê øÿŸ ∑§ËÁ¡∞–
33. f.read(5) ∞∑§ $ » §Êß‹ (file object is ‘f’) ‚ (A) ≈ȬÀ‚ •ÊÒ⁄ Á‹S≈˜‚ ºÙŸÙ¥ •¬Á⁄fløŸËÿ „Ò¥
__________ ¬…U∏ªÊ? (B) ≈È ¬ À‚ •¬Á⁄flø Ÿ Ëÿ „Ò ¥ ¡’Á∑§ Á‹S≈˜ ‚
(A) 5 fláʸ ¬Á⁄fløŸ‡ÊË‹ „Ò¥
(B) 5 ‡Êéº (C) ≈ȬÀ‚ •ÊÒ⁄ Á‹S≈˜‚ ºÙŸÙ¥ ¬Á⁄fløŸ‡ÊË‹ „Ò¥
(D) ≈È ¬ À‚ ¬Á⁄flø Ÿ ‡ÊË‹ „ÙÃ „Ò ¥ ¡’Á∑§ Á‹S≈˜ ‚
(C) 5 ¬¢ÁÄÃÿʰ
•¬Á⁄fløŸËÿ „ÙÃË „Ò¥
(D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥ Choose the correct option with respect to
f.read(5) will read __________ from a file (file Python.
object ‘f’). (A) Both tuples and lists are immutable
(A) 5 characters (B) Tuples are immutable while lists are
mutable
(B) 5 words
(C) Both tuples and lists are mutable
(C) 5 lines (D) Tuples are mutable while lists are
(D) None of the above immutable

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


37. ÁŸêŸÁ‹Áπà ∑§Ù«U ÁSŸ¬≈U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? 39. ∞∑§ __________ ‚ÍøŸÊ ∑§Ù ◊ÊŸfl ¬∆ŸËÿ •Õʸà ASCII
d = {3, 4, 5} ÿÊ ÿÍÁŸ∑§Ù«U fláÊÙZ ∑§Ë ∞∑§ S≈˛Ë◊ ∑‘ M§¬ ◊¥ ‚¢ª˝Á„à ∑§⁄ÃË
„Ò–
for k in d:
(A) ≈ÄS≈ »§Êß‹
print(k)
(B) ’Êߟ⁄Ë »§Êß‹
(A) {3, 4, 5} {3, 4, 5} {3, 4, 5}
(C) (A) •ÊÒ⁄ (B) ºÙŸÙ¥
(B) 345
(D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(C) Syntax Error A _____________ stores information in the
form of a stream of ASCII or unicode
(D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥ characters i.e. human readable.
What will be the output of the following code (A) Text file
snippet ? (B) Binary file
d = {3, 4, 5} (C) Both (A) and (B)
(D) None of these
for k in d:
print(k) 40. ÁŸêŸÁ‹Áπà ∑§Ù«U ‚ª◊¥≈ ÄÿÊ Á¬˝¢≈ ∑§⁄ªÊ?
(A) {3, 4, 5} {3, 4, 5} {3, 4, 5} if True or True:
(B) 345 if False and True or False:
print(‘A’)
(C) Syntax Error elif False and False or True and True:
(D) None of the above print(‘B’)
else:
print(‘C’)
38. $ç‹ÙøÊ≈¸ •ÊÒ⁄ ∞ÀªÙÁ⁄Õ◊ ∑§Ê ©¬ÿÙª __________ ∑‘ Á‹∞ else:
Á∑§ÿÊ ¡ÊÃÊ „Ò– print(‘D’)
(A) A (B) B
(A) ’„Ã⁄ ¬˝Ùª˝ÊÁ◊¢ª
(C) C (D) D
(B) •ŸÈ∑ͧÁ‹Ã ∑§ÙÁ«¢Uª What will following code segment print ?
if True or True:
(C) √ÿflÁSÕà ¬⁄ˡÊáÊ if False and True or False:
(D) ©¬⁄ÙÄà ‚÷Ë print(‘A’)
elif False and False or True and True:
Flow charts and Algorithms are used for print(‘B’)
__________.
else:
(A) Better Programming print(‘C’)
(B) Optimized Coding else:
print(‘D’)
(C) Systematic testing
(A) A (B) B
(D) All the above (C) C (D) D

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


41. ¬ÊÿÕŸ ‹Ò¥Çfl¡ ◊¥, k ∑§Ù ¬ÊÚfl⁄ l Ã∑§ ’…U∏ÊŸ ∑‘ Á‹∞ 44. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?
ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‚Ê •ÊÚ¬⁄≈⁄ ‚„Ë Áfl∑§À¬ „Ò?
(A) k ^ l (B) k**l >>>print(5*(2//3))
(C) k ^ ^ l (D) k ^ *l
In python language, which of the following (A) 3 (B) 3.3
operators is the correct option for raising k to
the power l ? (C) 0 (D) error
(A) k ^ l (B) k**l
(C) k ^ ^ l (D) k ^ *l What is the output of following Python code ?

42. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? >>>print(5*(2//3))


example = “helle”
example.rfind(“e”) (A) 3 (B) 3.3
(A) 1 (B) 2
(C) 4 (D) 5
(C) 0 (D) error
What will be the output of the following
Python code ?
example = “helle”
example.rfind(“e”)
(A) 1 (B) 2 45. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑‘ Á‹∞ •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
(C) 4 (D) 5
import numpy as np
43. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‚Ê ◊ÊÚ«KÍ‹ ∑§Ê ©¬ÿÙª ∑§⁄Ÿ ∑§Ê
‹Ê÷ Ÿ„Ë¥ „Ò? a = np.array([1,2,3,5,8])
(A) ¬˝Ùª˝Ê◊ ∑§Ù«U ∑‘ ¬ÈŸ— ©¬ÿÙª ∑§Ê ∞∑§ ‚ÊœŸ ¬˝ºÊŸ
print (a.ndim)
∑§⁄ÃÊ „Ò
(B) ∑§ÊÿÙZ ∑§Ù Áfl÷ÊÁ¡Ã ∑§⁄Ÿ ∑§Ê ∞∑§ ‚ÊœŸ ¬˝ºÊŸ (A) 0 (B) 1
∑§⁄ÃÊ „Ò
(C) ¬˝Ùª˝Ê◊ ∑‘ •Ê∑§Ê⁄ ∑§Ù ∑§◊ ∑§⁄Ÿ ∑§Ê ∞∑§ ‚ÊœŸ (C) 2 (D) 3
¬˝ºÊŸ ∑§⁄ÃÊ „Ò
(D) ¬˝Ùª˝Ê◊ ∑‘ •‹ª-•‹ª Á„S‚Ù¥ ∑‘ ¬⁄ˡÊáÊ ∑§Ê ∞∑§ What will be output for the following code ?
‚ÊœŸ ¬˝ºÊŸ ∑§⁄ÃÊ „Ò
import numpy as np
Which of the following is not an advantage
of using modules ?
(A) Provides a means of reuse of program a = np.array([1,2,3,5,8])
code
(B) Provides a means of dividing up tasks print (a.ndim)
(C) Provides a means of reducing the size
of the program (A) 0 (B) 1
(D) Provides a means of testing individual
parts of the program (C) 2 (D) 3

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


46. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‚ ¬ÊÿÕŸ ◊¥ ◊Êãÿ ÁS≈˛¢ª ◊ÒÁŸ¬È‹‡ÊŸ 48. ∑§ıŸ ‚Ê S≈≈◊¥≈ »§Êß‹ ¬ÊÚߢ≈⁄ ∑§Ù flø◊ÊŸ ÁSÕÁà ‚ 10
$»¢§Ä‡ÊŸ „Ò¥? ’Êß≈ ¬Ë¿U ‹ ¡Ê∞ªÊ–

(A) count() (B) upper() (A) f.seek(-10, 0)

(C) strip() (D) ©¬⁄ÙÄà ‚÷Ë (B) f.seek(10, 0)

(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

(D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥ (B) File Not Exist 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

(C) 11.0 (C) File Not Found Error

(D) None of these (D) None of the above

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


50. a=5, b=8 c=6 ∑‘ Á‹∞ ÁŸêŸÁ‹Áπà ∞ÀªÙÁ⁄Õ◊ ∑§Ê 51. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‚Ê ∞⁄⁄ Áº∞ ª∞ ∑§Ù«U mÊ⁄Ê ¬˝SÃÈÃ
•Ê©≈¬È≈ ÄÿÊ „ÙªÊ? Á∑§ÿÊ ¡ÊÃÊ „Ò—
Step 1 : Start
Step 2 : Declare variables a, b and c. >>> f = open(“test.txt”,”w”)
Step 3 : Read variables a, b and c. >>> f.write(345)
Step 4 : If a < b
If a < c (A) Á‚¢≈Ä‚ ∞⁄⁄ (B) ≈Ê߬ ∞⁄⁄
Display a is the smallest number.
Else (C) ÁS≈˛¢ª ∞⁄⁄ (D) ⁄Ÿ ≈Êß◊ ∞⁄⁄
Display c is the smallest number.
Else Which of the following error is returned by
the given code ?
If b < c
Display b is the smallest number. >>> f = open(“test.txt”,”w”)
Else
Display c is the smallest number. >>> f.write(345)
Step 5 : Stop
(A) Syntax Error (B) Type Error
(A) a ‚’‚ ¿UÙ≈Ë ‚¢ÅÿÊ „Ò
(B) b ‚’‚ ¿UÙ≈Ë ‚¢ÅÿÊ „Ò (C) String Error (D) Run Time Error
(C) c ‚’‚ ¿UÙ≈Ë ‚¢ÅÿÊ „Ò
(D) stop
What will be the output of the following 52. ’Êߟ⁄Ë $»§Êß‹ ◊¥ ‚ÍøŸÊ Á∑§‚ ¬˝ÊM§¬ ◊¥ „ÙÃË „Ò?
algorithm for a=5, b=8, c=6 ?
Step 1 : Start (A) ÁÄfl∑§ Á⁄S¬Ê¢‚ ∑§Ù«U
Step 2 : Declare variables a, b and c.
Step 3 : Read variables a, b and c. (B) ©‚Ë ¬˝ÊM§¬ ◊¥ Á¡‚◊¥ «U≈Ê ∑§Ù ◊◊Ù⁄Ë ◊¥ ⁄πÊ ¡ÊÃÊ
Step 4 : If a < b „Ò
If a < c
Display a is the smallest number. (C) ∞∞‚‚Ë•Ê߸•Ê߸ ¬˝ÊM§¬
Else
Display c is the smallest number. (D) ÿÍÁŸ∑§Ù«U ¬˝ÊM§¬
Else
In which format Binary file contains
If b < c information ?
Display b is the smallest number.
Else (A) Quick response code
Display c is the smallest number.
(B) Same format in which the data is held
Step 5 : Stop
in memory
(A) a is the smallest number
(B) b is the smallest number (C) ASCII format
(C) c is the smallest number
(D) stop (D) Unicode format

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


53. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? 55. Á‹S≈U 1 ◊¥ ∞∑§ ∞Á‹◊¥≈U (5) ¡Ê«∏Ÿ ∑§ Á‹∞ $»¥§Ä‡ÊŸ ∑§Ê
©¬ÿÊª Á∑§ÿÊ ¡ÊÃÊ „Ò?
from math import factorial
(A) list1.sum(5)
print(math.factorial(5))
(B) list1.add(5)
(A) 120 (C) list1.append(5)

(B) ∑ȧ¿U ÷Ë Á¬˝ã≈ Ÿ„Ë¥ „ÙªÊ (D) list1.addelement(5)


Which function is used to add an element (5)
(C) ∞⁄⁄, ◊Õ«U $»Ò§Ä≈ÙÁ⁄ÿ‹ ◊ÒÕ ◊Ù«KÍ‹ ◊ ∞∑§Á‚S≈ in the list1 ?
Ÿ„Ë¥ ∑§⁄ÃÊ
(A) list1.sum(5)
(D) ∞⁄⁄, S≈≈◊¥≈ „ÙŸË øÊÁ„∞— print(factorial(5)) (B) list1.add(5)

What will be the output of the following (C) list1.append(5)


Python code ?
(D) list1.addelement(5)
from math import factorial

print(math.factorial(5)) 56. ÁŸêŸÁ‹Áπà ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?


(A) 120 y = ‘klmn’

(B) Nothing is printed for i in range(len(y)):

(C) Error, method factorial doesn’t exist in print(y)


math module (A) klmn klmn klmn klmn
(D) Error, the statement should be : (B) k
print(factorial(5))
(C) kkk

(D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥


54. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‚Ê ‡Êéº ¬ÊÿÕŸ ‹Ò¥Çfl¡ ∑§Ê What is the output of the following ?
∑§Ëfl«¸U Ÿ„Ë¥ „Ò?
y = ‘klmn’
(A) val (B) raise for i in range(len(y)):
(C) try (D) with print(y)

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

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


57. „Ê«¸Uflÿ⁄ ∑§Ù ø‹ÊŸ ∑‘ Á‹∞ ÁŸêŸ ◊¥ ‚ ∑§ıŸ ‚Ê ‚ÊÚç≈flÿ⁄ 60. ¬ÊßÕŸ ◊¥ Numpy ∞⁄ ◊¥ zeros() $»¢§Ä‡ÊŸ ∑§Ê ÄÿÊ
•Êfl‡ÿ∑§ „Ò? ©¬ÿÙª „Ò?
(A) ≈ÊS∑§ ◊ÒŸ¡⁄ (A) ‚÷Ë ∞Á‹◊¥≈ ∑§ ‚ÊÕ ∞∑§ ◊ÒÁ≈˛Ä‚ 0 ’ŸÊŸ ∑‘
(B) ≈ÊS∑§ ’Ê⁄ Á‹∞
(C) ¬˝Ùª˝Ê◊ ◊ÒŸ¡⁄
(B) ‚÷Ë «UÊÿªÙŸ‹ ∞Á‹◊¥≈ ∑‘ ‚ÊÕ ∞∑§ ◊ÒÁ≈˛Ä‚ 0
(D) Á«UflÊß‚ «˛Ê߸fl⁄ ’ŸÊŸ ∑‘ Á‹∞
Which of the following software is required
to run the hardware ? (C) ¬„‹Ë ¬¢ÁÄà ∑‘ ‚ÊÕ ∞∑§ ◊ÒÁ≈˛Ä‚ 0 ’ŸÊŸ ∑‘ Á‹∞
(A) Task Manager (D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(B) Task Bar
What is the use of the zeros() function in
(C) Program Manager
Numpy array in python ?
(D) Device Driver
(A) To make a Matrix with all element 0

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

(B) »§Êß‹ (D) None of the above

(C) ©¬⁄ÙÄà ºÙŸÙ¥


(D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥ 61. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
In which of the following, data is stored
x = ‘abcd’
permanently ?
(A) Variable for i in x:
(B) File print(i.upper())
(C) Both of the above
(A) aBCD (B) abcd
(D) None of the above
(C) error (D) ABCD

59. ‚ÊÚç≈flÿ⁄ ∑‘ Áfl∑§Ê‚ ∑‘ Á∑§‚ ø⁄áÊ ◊¥ ‚ÊÚç≈flÿ⁄ ∑§Ë What will be the output of the following
ªÈáÊflûÊÊ ∑§Ê ¬˝‹πŸ Á∑§ÿÊ ¡ÊÃÊ „Ò? Python code ?

(A) ≈ÁS≈¢ª (B) «U‹Ëfl⁄Ë x = ‘abcd’

(C) •ÊßÁ«UÿÊ (D) Áfl∑§Ê‚ for i in x:


In which software development phase quality print(i.upper())
of software is documented ?
(A) aBCD (B) abcd
(A) Testing (B) Delivery
(C) Idea (D) Development (C) error (D) ABCD

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


62. Á⁄∑§Á‚¸fl »¢§Ä‡ÊŸ __________ „Ò 64. ÁŸêŸÁ‹Áπà ∑§Ù«U ÁSãʬ≈U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
from math import *
(A) ∞∑§ $»¢§Ä‡ÊŸ ¡Ù Sflÿ¢ ∑§Ù ∑§ÊÚ‹ ∑§⁄ÃÊ „Ò
a = 2.19
(B) ∞∑§ $»¢§Ä‡ÊŸ ¡Ù •ãÿ ∑§ÊÿÙZ ∑§Ù ∑§ÊÚ‹ ∑§⁄ÃÊ „Ò b = 3.999999

(C) (A) •ÊÒ⁄ (B) ºÙŸÙ¥ c = -3.30


print(int(a), floor(b), ceil(c), fabs(c))
(D) ©¬⁄ÙÄàÊ ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(A) 2 3 -3 3.3 (B) 3 4 -3 3
Recursive function is __________. (C) 2 3 -3 3 (D) 2 3 -3 -3.3

(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 *

(C) Both (A) and (B) a = 2.19


b = 3.999999
(D) None of the above
c = -3.30
print(int(a), floor(b), ceil(c), fabs(c))
63. ÿÁº $»§Êß‹ ◊ı¡Íº Ÿ„Ë¥ „Ò ÃÙ ∑§ıŸ ‚Ê ◊Ù«U ∞∑§ Ÿß¸ (A) 2 3 -3 3.3 (B) 3 4 -3 3
$»§Êß‹ ’ŸÊÃÊ „Ò? (C) 2 3 -3 3 (D) 2 3 -3 -3.3

(A) ⁄Êß≈ ◊Ù«U


65. Á∑§‚ ¬˝∑§Ê⁄ ∑§Ê «U≈Ê „Ò— arr = [(1, 1), (2, 2), (3, 3)] ?
(B) ⁄Ë«U ◊Ù«U
(A) ≈ȬÀ‚ ∑§Ë ‚ÍøË
(C) •¬á«U ◊Ù«U
(B) ‚ÍÁøÿÙ¥ ∑‘ ≈ȬÀ‚
(D) (A) •ÊÒ⁄U (C) ŒÊŸÊ¥ (C) ≈ȬÀ‚ ∑§Ë ‚⁄áÊË
Which mode creates a new file if the file does (D) •◊Êãÿ ¬˝∑§Ê⁄
not exist ?
What type of data is : arr = [(1, 1), (2, 2),
(A) write mode (3, 3)] ?
(A) List of tuples
(B) read mode
(B) Tuples of lists
(C) append mode
(C) Array of tuples
(D) Both (A) and (C) (D) Invalid type

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


66. ¬ÊÿÕŸ ‹Ò¥Çfl¡ ◊¥, ÁŸêŸÁ‹Áπà ◊¥ ‚ Á∑§‚ flÁ⁄∞’‹ ∑‘ 69. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ ‡Êéº∑§Ù‡Ê ◊¥ key=tiger ∑‘ Á‹∞
M§¬ ◊¥ ¬Á⁄÷ÊÁ·Ã Ÿ„Ë¥ Á∑§ÿÊ ¡Ê ‚∑§ÃÊ „Ò? ∑§Ë-flÒÀÿÍ ¬ÿ⁄ ∑§Ù Á«U‹Ë≈ ∑§⁄ªÊ?
(A) _val (B) val
dic={“lion”:”wild”,”tiger”:”wild”,”cat”:”domestic”,
(C) try (D) _try_
“dog”.”domestic”}
In python language, which of the following
cannot be defined as variable ? (A) del dic[“tiger”]
(A) _val (B) val (B) dic[“tiger”].delete()
(C) try (D) _try_ (C) delete(dic.[“tiger”])
(D) del(dic.[“tiger”])
67. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑‘ Á‹∞ •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? Which of the following will delete key-value
import numpy as np pair for key=”tiger” in dictionary ?
ary = np.array([1,2,3,5,8])
dic={“lion”:”wild”,”tiger”:”wild”,”cat”:”domestic”,
ary = ary + 1 “dog”.”domestic”}
print (ary[1])
(A) del dic[“tiger”]
(A) 0 (B) 1
(C) 2 (D) 3 (B) dic[“tiger”].delete()
What will be output for the following code ? (C) delete(dic.[“tiger”])
import numpy as np (D) del(dic.[“tiger”])
ary = np.array([1,2,3,5,8])
ary = ary + 1
70. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê flÒÀÿÍ ÄÿÊ „Ò?
print (ary[1])
(A) 0 (B) 1 >>>print(36 / 4)
(C) 2 (D) 3 (A) 9 (B) 4
(C) 9.0 (D) 4.0
68. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò? What is the value of the following Python
a = set(‘abc’) code ?
b = set(‘cdef’) >>>print(36 / 4)
print(a&b) (A) 9 (B) 4
(A) {‘c’}
(C) 9.0 (D) 4.0
(B) {‘a’,’b’,’c’,’d’,’e’,’f’}
(C) {c}
(D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥ 71. Á«U’Áª¢ª ‚ÊÚç≈flÿ⁄ ◊¥ __________ ∑§Ù ∆Ë∑§ ∑§⁄Ÿ ∑§Ë
What is the output of the following code ? ¬˝Á∑˝§ÿÊ „Ò–
a = set(‘abc’) (A) ¬˝Á∑˝§ÿÊ (B) ∑§Êÿ¸
b = set(‘cdef’)
print(a&b)
(C) ’ª (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(A) {‘c’} Debugging is the process of fixing a
(B) {‘a’,’b’,’c’,’d’,’e’,’f’} __________ in the software.
(C) {c} (A) procedure (B) function
(D) None of these (C) bug (D) None of these

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


72. ÁŸêŸÁ‹Áπà ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? 74. ÁŸêŸÁ‹Áπà ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?
print(sum(1,2,3)) print(max([1, 2, 3, 4], [4, 5, 6], [7]))

(A) Error (B) 6 (A) [4, 5, 6] (B) [7]

(C) 1 (D) 3 (C) [1, 2, 3, 4] (D) 7


What is the output of the following ?
What will be the output of the following ?
print(max([1, 2, 3, 4], [4, 5, 6], [7]))
print(sum(1,2,3))
(A) [4, 5, 6] (B) [7]
(A) Error (B) 6
(C) [1, 2, 3, 4] (D) 7
(C) 1 (D) 3
75. ∞∑§ ∞ÀªÙÁ⁄Õ◊ ∑‘ ‚ÁøòÊ ÁŸM§¬áÊ ∑§Ù __________ ∑§„Ê
73. ÁŸêŸÁ‹Áπà ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò? ¡ÊÃÊ „Ò–
n=5 (A) S≈≈◊¥≈ (B) ¬˝Ùª˝Ê◊
while n>0: (C) ç‹ÊøÊ≈¸ (D) ©¬⁄ÙÄà ‚÷Ë
n-=1 Pictorial representation of an algorithm is
called as __________.
if n ==2:
(A) Statement (B) Program
continue
(C) Flow chart (D) All the above
print(n)

(A) 54310 (B) 4310


76. ¬Ò∑§¡ ‚ ‚÷Ë ◊ÊÚ«KÍ‹ ßê¬Ù≈¸ ∑§⁄Ÿ ∑‘ Á‹∞ ∑§ıŸ ‚Ê
(C) 432 (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥ S≈≈◊¥≈ ‚„Ë „Ò?
What is the output of the following ? (A) from package import all
n=5 (B) from package import *

while n>0: (C) from package include all

n-=1 (D) from package include *

if n ==2: Which statement is correct to import all


modules from the package ?
continue
(A) from package import all
print(n)
(B) from package import *
(A) 54310 (B) 4310 (C) from package include all
(C) 432 (D) None of these (D) from package include *

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


77. ÁŸêŸÁ‹Áπà ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò? 79. ÁŸêŸÁ‹Áπà ∞Ä‚¬˝‡ÊŸ ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
m=0 x = 14
print(x>>2)
while m < 5:
(A) 14 (B) 1
print(m)
(C) 3 (D) 2
m += 1
What will be the output of the following
if m == 3: expression ?
break x = 14
else: print(x>>2)
print(0) (A) 14 (B) 1
(A) 0120 (B) 012 (C) 3 (D) 2
(C) 00102 (D) error
What is the output of the following ? 80. ‹Í¬ ∑‘ •¢º⁄ ∑§Ë ‚Ê◊ª˝Ë ∑§Ù __________ mÊ⁄Ê •‹ª
m=0 Á∑§ÿÊ ¡ÊÃÊ „Ò–
while m < 5: (A) ∑§Ù‹Ÿ (B) ∑§ÊÚ◊Ê
print(m) (C) ‚◊Ë∑§Ù‹Ÿ (D) „Ê߸¬Ÿ
m += 1 The contents inside the “for loop” are
if m == 3: separated by :
(A) colon (B) comma
break
(C) semicolon (D) hyphen
else:
print(0)
81. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?
(A) 0120 (B) 012
def s(n1):
(C) 00102 (D) error
print(n1)
n1 = n1 +2
78. ¡’ „◊ ∞¬¥«U ◊Ù«U ◊¥ »§Êß‹ πÙ‹Ã „Ò¥ ÃÙ »§Êß‹ ¬ÊÚߢ≈⁄ n2=4
»§Êß‹ ∑‘ __________ ¬⁄ „ÙÃÊ „Ò– s(n2)
print(n2)
(A) $»§Êß‹ ∑§ ’Ëø ◊¥ ∑§„Ë¥ ÷Ë
(A) 6 4 (B) 4 6
(B) •¢Ã (C) 4 4 (D) 6 6
(C) •Ê⁄ê÷ ◊¥ What is the output of the following code ?
def s(n1):
(D) $»§Êß‹ ∑§Ë ºÍ‚⁄Ë ¬¢ÁÄÃ
print(n1)
When we open file in append mode the file
n1 = n1 +2
pointer is at the _________ of the file.
n2=4
(A) anywhere in between the file
s(n2)
(B) end
print(n2)
(C) beginning (A) 6 4 (B) 4 6
(D) second line of the file (C) 4 4 (D) 6 6

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


82. ÁŸêŸÁ‹Áπà ◊¥ ‚ ∑§ıŸ-‚Ê ∞∑§ •¬Á⁄fløŸËÿ «U≈Ê ¬˝∑§Ê⁄ 84. ÁŸêŸÁ‹Áπà ∑§Ù«U ÁSŸ¬≈U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
„Ò? numbers = (4, 7, 19, 2, 89, 45, 72, 22)
(A) Á‹S≈ (B) ‚≈
sorted_numbers = sorted(numbers)
(C) tuple (D) dict
Which one of the following is immutable data odd_numbers = [x for x in sorted_numbers if
type ? x % 2 != 0]
(A) list (B) set
print(odd_numbers)
(C) tuple (D) dict
(A) [7, 19, 45, 89]
83. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? (B) [2, 4, 22, 72]
def func(a, b=5, c=10):
print(‘a is’, a, ‘and b is’, b, ‘and c is’, c) (C) [4, 7, 19, 2, 89, 45, 72, 22]
func(13, 17) (D) [2, 4, 7, 19, 22, 45, 72, 89]
func(a=2, c=4)
func(5,7,9) What will be the output of the following code
(A) a is 13 and b is 15 and c is 10 snippet ?
a is 2 and b is 5 and c is 4 numbers = (4, 7, 19, 2, 89, 45, 72, 22)
a is 5 and b is 7 and c is 9
(B) a is 13 and b is 17 and c is 10 sorted_numbers = sorted(numbers)
a is 2 and b is 4 and c is 4 odd_numbers = [x for x in sorted_numbers if
a is 5 and b is 9 and c is 7 x % 2 != 0]
(C) a is 13 and b is 17 and c is 10
a is 2 and b is 5 and c is 4 print(odd_numbers)
a is 5 and b is 7 and c is 9 (A) [7, 19, 45, 89]
(D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(B) [2, 4, 22, 72]
What will be the output of the following
Python code ? (C) [4, 7, 19, 2, 89, 45, 72, 22]
def func(a, b=5, c=10):
(D) [2, 4, 7, 19, 22, 45, 72, 89]
print(‘a is’, a, ‘and b is’, b, ‘and c is’, c)
func(13, 17)
func(a=2, c=4)
func(5,7,9) 85. ¬ÊÿÕŸ ‹Ò¥Çfl¡ ◊¥ ∑§Ù«U ∑‘ é‹ÊÚ∑§ ∑§Ù ¬Á⁄÷ÊÁ·Ã ∑§⁄Ÿ ∑‘
(A) a is 13 and b is 15 and c is 10 Á‹∞ ÁŸêŸÁ‹Áπà ◊¥ ‚ Á∑§‚∑§Ê ©¬ÿÙª Á∑§ÿÊ ¡ÊÃÊ „Ò?
a is 2 and b is 5 and c is 4
a is 5 and b is 7 and c is 9 (A) try (B) ’˝Ò∑§≈˜U‚
(B) a is 13 and b is 17 and c is 10
(C) ߢ«¥U≈‡ÊŸ (D) ∑Ò§ø
a is 2 and b is 4 and c is 4
a is 5 and b is 9 and c is 7 Which of the following is used to define a
(C) a is 13 and b is 17 and c is 10 block of code in Python language ?
a is 2 and b is 5 and c is 4
(A) try (B) Brackets
a is 5 and b is 7 and c is 9
(D) None of the above (C) Indentation (D) Catch

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


86. ÁŸêŸ ◊¥ ‚ ∑§ıŸ $»§Êß‹ (file object ‘f’) ∑§Ë ‚¢¬Íáʸ 89. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
‚Ê◊ª˝Ë ∑§Ù ¬…U∏ªÊ? d1={“abc”:5,”def”:6,”ghi”:7}

(A) f.reads( ) (B) f.read( ) print(d1[0])


(A) abc (B) 5
(C) f.read(all) (D) f.read( * )
(C) {“abc”:5} (D) Error
Which of the following will read entire
What will be the output of the following
content of file (file object ‘f’) ?
Python code ?
(A) f.reads( ) (B) f.read( ) d1={“abc”:5,”def”:6,”ghi”:7}

(C) f.read(all) (D) f.read( * ) print(d1[0])


(A) abc (B) 5
(C) {“abc”:5} (D) Error
87. $ç‹Ù øÊ≈¸ ∑‘ Á‹∞ ∑§ŸÄ≈⁄ ¬˝ÃË∑§ __________ „Ò–

(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

88. ¬ÊÿÕŸ __________ ◊¥ Á‹πÊ ªÿÊ „Ò–


91. ¬ÊÿÕŸ »§Êß‹ ∑§Ê ‚„Ë ∞Ä‚≈¥‡ÊŸ __________ „Ò–
(A) ¡ÊflÊ (B) C
(A) .py (B) .pyth
(C) PHP (D) ©¬⁄ÙÄà ‚÷Ë (C) .python (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
Python is written in __________. The correct extension of the Python file is
____________.
(A) Java (B) C
(A) .py (B) .pyth
(C) PHP (D) All of the above (C) .python (D) None of these

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


92. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? 94. ∞∑§ ÁS≈˛¢ª x=”hello” ∑§Ù ºπÃ „È∞ x.count(‘l’) ∑§Ê
def display(b, n): •Ê©≈¬È≈ ÄÿÊ „Ò?
while n>0: (A) 2 (B) 1
print(b, end=””) (C) 0 (D) ∑§Ù߸ Ÿ„Ë¥
n=n-1 Given a string x=”hello” What is the output
of x.count(‘l’) ?
display(‘z’, 3)
(A) 2 (B) 1
(A) zzz
(C) 0 (D) none
(B) zz
(C) Infinite loop
95. ∞∑§ ÁflSÃÎà $ç‹ÙøÊ≈¸ ∑§Ù __________ ∑§„Ê ¡ÊÃÊ „Ò–
(D) An exception is thrown
(A) S≈Ò∑§ (B) ◊Ò∑˝§Ê
What will be the output of the following
Python code ? (C) ◊Êß∑˝§Ê (D) ÿÍÁŸÿŸ
A detailed flow chart is called as __________.
def display(b, n):
(A) stack (B) macro
while n>0:
(C) micro (D) union
print(b, end=””)
n=n-1 96. •‚¥’‹Ë ÷Ê·Ê ∑§Ù ◊‡ÊËŸË ÷Ê·Ê ◊¥ ’º‹Ÿ ∑‘ Á‹∞ Á∑§‚
display(‘z’, 3) •ŸÈflʺ∑§ ∑§Ê ©¬ÿÙª Á∑§ÿÊ ¡ÊÃÊ „Ò?
(A) zzz (A) ∑§ê¬Êß‹⁄ (B) ߢ≈⁄¬˝≈⁄
(B) zz
(C) •‚ê’‹⁄ (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
(C) Infinite loop Which translator is used to convert assembly
(D) An exception is thrown language into machine language ?
(A) Compiler (B) Interpreter
(C) Assembler (D) None of these
93. ÁŸêŸÁ‹Áπà ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?
import numpy as np
97. ÁŸêŸÁ‹Áπà ∑§Ê •Ê©≈¬È≈ ÄÿÊ „Ò?
a = np.array( [2, 3, 4, 5] )
x=123
print(a.dtype) for i in x:
(A) int 32 (B) int print(i)
(C) float (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥ (A) 123 (B) 123
What will be output for the following code ? (C) Error (D) ߟ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
import numpy as np What is the output of the following ?
x=123
a = np.array( [2, 3, 4, 5] )
for i in x:
print(a.dtype)
print(i)
(A) int 32 (B) int (A) 1 2 3 (B) 123
(C) float (D) None of these (C) Error (D) None of these

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


98. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ? 100. ÁŸêŸÁ‹Áπà ¬ÊÿÕŸ ∑§Ù«U ∑§Ê •Ê©≈¬È≈ ÄÿÊ „ÙªÊ?
def power(x, y=2):
tuple1=(5,1,7,6,2) r=1
for i in range(y):
tuple1.pop(2)
r=r*x
print(tuple1) return r
print (power(3))
(A) (5,1,6,2) (B) (5,1,7,6) print (power(3,3))

(C) (5,1,7,6,2) (D) Error (A) 212


32
What will be the output of the following
Python code ? (B) 9
27
tuple1=(5,1,7,6,2)
(C) 567
tuple1.pop(2) 98
(D) ©¬⁄ÙÄà ◊¥ ‚ ∑§Ù߸ Ÿ„Ë¥
print(tuple1) What will be the output of the following
Python code ?
(A) (5,1,6,2) (B) (5,1,7,6) def power(x, y=2):
r=1
(C) (5,1,7,6,2) (D) Error
for i in range(y):
r=r*x
return r
99. ‚Í«UÊ-∑§Ê«U ◊¥ ¬ŒÊŸÈ∑˝§◊ ∑§Ê __________ mÊ⁄UÊ ÁŒπÊÿÊ print (power(3))
¡Ê ‚∑§ÃÊ „Ò — print (power(3,3))

(A) 212
(A) ∑§‹Ë¸ ’˝‚‚ (B) ⁄UÊ©¥«U ’˝Ò∑§≈U
32

(C) •Ê߸«¥U≈U‡ÊŸ (D) ‚◊Ë∑§Ê‹Ÿ (B) 9


27
Hierarchy in a pseudo-code can be shown
by : (C) 567
98
(A) Curly Braces (B) Round Brackets (D) None of the above

(C) Indentation (D) Semicolon


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

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


SPACE FOR ROUGH WORK

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

You might also like