This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 11101. |
Millions of computer science students have taken a course on algorithms and data structures, typically the second course after the initial one introducing programming. One of the basic data structures in such a course is the stack. The stack has a special place in the emergence of computing as a science, as argued by Michael Mahoney, the pioneer of the history of the theory of computing. The Stack can be used in many computer applications, few are given below: a) In recursive function b) When function is called.c) Expression conversion such as – Infix to Postfix, Infix to Prefix, Postfix to Infix, Prefix to Infix. In Stack, insertion operation is known as Push whereas deletion operation is known as Pop. Code – 1def push(Country,N): Country._________(len(Country),N)) #Statement 1 #Function Calling Country=[ ] C=['Indian', 'USA', 'UK', 'Canada', 'Sri Lanka'] for i in range(0,len(C),________): #Statement 2 push(Country,C[i]) print(Country)Required Output: ['Indian', 'UK', 'Sri Lanka'] Code - 2def pop(Country): if __________: #Statement 3 return "Under flow" else: return Country.________() #Statement 4 #Function Calling for i in range(len(Country)+1): print(_______) #Statement 5 Required Output: Sri Lanka UK India Under flowFill the above statement based on given questions: i. Identify the suitable code for the blank of statement 1. a. .append() b. .insert() c. .extend() d. .append(len(Country),N) ii. Fill the statement 2, to insert the alternate element from Country list. a. 3 b. 0 c. -1 d. 2iii. Fill the statement 3, to check the stack is empty. a. Country=[] b. Country.isEmpty() c. len(country)==0 d. No of the aboveiv. Fill the statement 4, to delete an element from the stack. a. pop(1) b. pop() c. del country[1] d. Country.delete(1)v. Fill the statement 5, to call the pop function. a. pop(C) b. pop(Country) c. call pop(Country)d. def pop(Country) |
|
Answer» 1. Correct Answer : b. .insert() 2. Correct Answer : d. 2 3. Correct Answer : c. len(country)==0 4. Correct Answer: b. pop() 5. Correct Answer: b. pop(Country) |
|
| 11102. |
Which of the following are not valid operations in python? i. Slicing a listii. Concatenation of a list and a tuple iii. Slicing a dictionary iv. Adding an element to an existing tuple |
|
Answer» Adding an element to an existing tuple. Answer : (II) , (III) and (IV) Reason : 1. For part (II) - You can't concatenate different data types 2. For part (III) - Dictionaries and unordered data types so you can't slice them the way you can slice strings or tuples or lists 3. For part (IV) - Whenever you add an element to tuple, A new tuple is formed because Tuples are immutable data types |
|
| 11103. |
Arun, during Practical Examination of Computer Science, has been assigned an incomplete search() function to search in a pickled file student.dat. The File student.dat is created by his Teacher and the following information is known about the file. • File contains details of students in [roll_no,name,marks] format.• File contains details of 10 students (i.e. from roll_no 1 to 10) and separate list of each student is written in the binary file using dump(). Arun has been assigned the task to complete the code and print details of roll number 1. def search(): f = open("student.dat",____) #Statement-1 ____: #Statement-2 while True: rec = pickle.____ #Statement-3 if(____): #Statement-4 print(rec) except: pass ____ #Statement-5I. In which mode Arun should open the file in Statement-1? a) r b) r+ c) rb d) wbII. Identify the suitable code to be used at blank space in line marked as Statement2 a) if(rec[0]==1)b) for i in range(10) c) try d) passIII. Identify the function (with argument), to be used at blank space in line marked as Statement-3. a) load() b) load(student.dat) c) load(f) d) load(fin)VI. What will be the suitable code for blank space in line marked as Statement-4. a) rec[0]==2 b) rec[1]==2 c) rec[2]==2 d) rec[0]==1V. Which statement Arun should use at blank space in line marked as Statement4 to close the file. a) file.close() b) close(file) c) f.close() d) close() |
|
Answer» 1. Correct Answer: c) rb 2. Correct Answer: c) try 3. Correct Answer: c) load(f) 4. Correct Answer: d) rec[0]==1 5. Correct Answer: c) f.close() |
|
| 11104. |
In an exam, a student has to answer 10 questions out of 12. It is mandatory to answer 4 questions from section A and 5 questions from section B. If both sections have an equal number of questions, in how many ways can the student attempt the paper?1. 782. 513. 424. 30 |
|
Answer» Correct Answer - Option 2 : 51 Concept:
Calculation: Each section has 6 questions The selection can be done in the following ways = (4 from section A and 6 from section B) or (5 from each section) Ways of selecting 4 questions out of 6 from section A = 6C4 = 15 Ways of selecting 5 questions out of 6 from section A = 6C5 = 6 Ways of selecting 5 questions out of 6 from section B = 6C5 = 6 Ways of selecting 6 questions out of 6 from section B = 6C6 = 1 Hence number ways N = 15 × 1 + 6 × 6 = 51 ways
|
|
| 11105. |
A bag contain 3 white, 2 green and 5 yellow tokens. 3 tokens are drawn in such a way that not more than 2 tokens are yellow. Find the number of ways to do the operation.1. 1102. 1203. 1354. 150 |
|
Answer» Correct Answer - Option 1 : 110 Concept:
Calculation: The operation can be done = (No token drawn is yellow) or (2 non-yellow token and 1 yellow token) or (1 non-yellow token and 2 yellow token) Non-yellow tokens = 3 + 2 = 5 Ways of selecting of 3 non-yellow tokens out of 5 = 5C3 = 10 Ways of selecting of 2 non-yellow tokens out of 5 = 5C2 = 10 Ways of selecting of 1 non-yellow token out of 5 = 5C1 = 5 Ways of selecting of 2 yellow tokens out of 5 = 5C2 = 10 Ways of selecting of 1 yellow token out of 5 = 5C1 = 5 ∴ The total number of ways N = 10 + (10 × 5) + (5 × 10) N = 10 + 50 + 50 = 110 |
|
| 11106. |
Amit is a very hard working and effective sales person. He possesses amazing negotiation skills. Before entering a bargaining meeting, he always prepares for the meeting and collects information regarding buyers’ objectives, attitudes, personality, financial position, expectations, likes and dislikes etc. While the discussion is in progress, he tries to get views and ideas of opponents. What further steps should he follow to ensure effective negotiation? Explain. |
|
Answer» Steps of negotiation discussed in the case are ‘Preparing for a meeting’ and ‘Discussion’. Further steps to be followed for effective negotiation are as follows 1. Active listening - to listen actively to the other party during discussion. It helps to find out the areas for compromise to strike a deal. 2. Proposing – to send a proposal for final negotiations. The important rule of bargaining is to put all your terms and conditions as true statements and not as questions. 3. Emotional control - to keep the emotions in check during negotiations. At times the situation may be frustrating but he has to control his emotions during the meeting to avoid unfavorable results. Efforts should be to reach a compromise formula instead of breaking down the communication between the parties. 4. Problem-solving - to seek a variety of solutions to problems. He should use negotiating skills in solving the problems i.e. agree to a compromise quickly to end a stalemate and close the deal. |
|
| 11107. |
The ability to recruit good sales people is one of the key traits an effective sales supervisor possesses. True / False |
|
Answer» Correct option: True |
|
| 11108. |
From where did Fareed, later who became Sher Shah Suri, got his education from :1. Sahsaram 2. Patna 3. Jaunpur4. Lahore |
|
Answer» Correct Answer - Option 3 : Jaunpur The correct answer is Jaunpur.
|
|
| 11109. |
When a machine possesses the ability to mimic the following human traits, it is said to have artificial intelligence. Identify the positive traits that an AI machine should possess. i. make decisions ii. bias iii. predict iv. learn and improve on its own a) i), and iii) only b) i) , iii) and iv) only c) ii) and iv) only d) i) ,ii), and iv) only |
|
Answer» Correct answer is b) i) , iii) and iv) only |
|
| 11110. |
Unscramble the letters and find the correct answer DATA + ________ = AI MACHINE |
|
Answer» Answer: IMLHOMRGAT |
|
| 11111. |
Read the statement (A) and (B) below and choose the correct answer from the codes given below :(A) Not all the mansabdars were military officers.B) Those who held high civil posts under the Mughals were also mansabdars and were graded accordingly.1. Both (A) and (B) are false2. Both (A) and (B) are true3. (A) is true, while (B)’ is false4. (A) is false, while (B) is true |
|
Answer» Correct Answer - Option 2 : Both (A) and (B) are true The correct answer is Both (A) and (B) are true.
|
|
| 11112. |
Discuss the basic tools of Photoshop. |
Answer»
|
|
| 11113. |
Machine Learning refers to. a) Computer systems ability to improve its performance |
|
Answer» Machine learning is an application of artificial intelligence (AI) that provides systems the ability to automatically learn and improve from experience without being explicitly programmed. Machine learning focuses on the development of computer programs that can access data and use it to learn for themselves. |
|
| 11114. |
What are the measures to increase the performance of a computer system? |
|
Answer» The performance of a computer can be increased by removing any extra files such as temporary files and images. We can use some disk cleaner software, which helps us clean up the unnecessary files. |
|
| 11115. |
What is Photoshop? |
|
Answer» Photoshop is a photo editing and raster graphic design software which allows users to create, edit, and manipulate various graphics as well as digital art. It also allows to create and edit raster images with multiple layers and import the images in various file formats. Photoshop is developed by Adobe Systems for both Windows and MacOS. |
|
| 11116. |
ITeS is also called ___________ that cover the entire operations which exploit Information Technology for improving the efficiency of an organisation. a. web-enabled services b. webpage c. computer services d. business |
|
Answer» a. web-enabled services ITeS is also called web-enabled services that cover the entire operations which exploit Information Technology for improving the efficiency of an organisation. |
|
| 11117. |
‘F’ and ‘J’ are called as ______________________ keys. a. Home b. Filter c. Guide d. Sticky |
|
Answer» a. Guide ‘F’ and ‘J’ are called as Guide keys. |
|
| 11118. |
There should be at least ___________ cm of distance between your eyes and the screen. a. 40-50 b. 60-65 c. 90-100 d. 75-80 |
|
Answer» b. 60-65 There should be at least 60-65 cm of distance between your eyes and the screen. |
|
| 11119. |
Which unit displays the result after processing |
|
Answer» After processing , central processing unit can send data back to user. |
|
| 11120. |
The ______________ is the one which displays the result of the lessons which has been already completed. a. Lesson Editor b. Navigation Tree c. Statistics Window d. Result Window |
|
Answer» c. Statistics Window The Statistics Window z is the one which displays the result of the lessons which has been already completed. |
|
| 11121. |
Mr. Rajan wants to write x2 . But when he writes this, it shows x2. Which option he should use to get 2 at its proper place? a. Superscript b. Strikethrough c. Subscript d. Change Case |
|
Answer» a. Superscript Mr. Rajan wants to write x2 . But when he writes this, it shows x2. Which option he should use to get 2 at its proper place is Superscript |
|
| 11122. |
Which of the following is not a type of alignmenta. sizeb. justifiedc. rightd. left |
|
Answer» The correct option is (b) justified. |
|
| 11123. |
Mr. Vijay wants to write x2. But when he writes this, it shows x2. Which option he should use to get 2 at its proper place? |
|
Answer» Answer: Superscript |
|
| 11124. |
Which one of the following is 'not' input device?1. Magnetic Ink character recognisation2. Optical mark Recognisation (OMR)3. Trackball4. Speaker |
|
Answer» Correct Answer - Option 4 : Speaker The correct answer is Speaker.
|
|
| 11125. |
Which of the following is a method of accessing fixed internet for home or office?1. Public Wi-Fi2. Mobile broadband3. Digital subscriber line4. Private Wi-Fi |
|
Answer» Correct Answer - Option 3 : Digital subscriber line The correct answer is the Digital subscriber line.
|
|
| 11126. |
Which of the following is NOT an option in the 'Table' menu of 'Insert' tab in MS- Word 2007?1. Draw Table2. Quick Tables3. Remove Header4. Insert Table |
|
Answer» Correct Answer - Option 3 : Remove Header The correct answer is Remove Header.
|
|
| 11127. |
______ is a space on a computer's hard drive that acts a a backup to system Random Access Memory (RAM).1. Virtual memory2. Spool3. Kernal Swap4. None of these |
|
Answer» Correct Answer - Option 1 : Virtual memory The correct answer is Virtual memory.
|
|
| 11128. |
Which of the following is a central location of various related web pages?1. Web host2. Web site3. Web browser4. Search engine |
|
Answer» Correct Answer - Option 2 : Web site The correct answer is the Website.
|
|
| 11129. |
Which of the following functions in MS-Excel counts the number of cells within a range that meet the given condition?1. COUNT IFB2. COUNTA3. COUNT4. COUNT IF |
|
Answer» Correct Answer - Option 4 : COUNT IF The correct answer is COUNT IF.
|
|
| 11130. |
A device used to store documents or pictures available on any paper into digital memory of computers is1. OMR2. Scanner3. Plotter4. MICR |
|
Answer» Correct Answer - Option 2 : Scanner Scanner is the device used to store documents or pictures available on any paper into digital memory.
OMR (Optical Mark Reader)
MICR (Magnetic Ink Character Recognition)
Plotter
|
|
| 11131. |
Which one of the following is not a storage device?1. Magnetic Tape2. Modem3. Flash Driver4. Hard Drives |
||||||||
|
Answer» Correct Answer - Option 2 : Modem The correct answer is Modem.
Description of other devices:
|
|||||||||
| 11132. |
_______ is an example of an input device of a computer.1. Joystick2. Projector3. Printer4. Headphone |
||||||||||
Answer» Correct Answer - Option 1 : Joystick
Therefore, a joystick is an input type of device. |
|||||||||||
| 11133. |
A ______ is a mini-calendar from which data - entry clerks can enter a date.1. Text box2. Date picker3. Combo box4. Form |
||||||
|
Answer» Correct Answer - Option 2 : Date picker The correct answer is the Date picker.
|
|||||||
| 11134. |
Which of the following is NOT a input device for a computer?1. Scanner2. Light Pen3. Plotter4. Magnetic Ink Character Reader (MICR) |
||||||||||
|
Answer» Correct Answer - Option 3 : Plotter Explanation:
Therefore, a joystick is an input type of device. |
|||||||||||
| 11135. |
______ is a standalone malware computer program that replicates itself in order to spread to other computers. Often, it uses a computer network for its spread, relying on its security failures to gain access to the target computer.1. Mothership2. Virus3. Worm4. Bacteria |
||||||
|
Answer» Correct Answer - Option 3 : Worm The correct answer is Worm.
|
|||||||
| 11136. |
What is the short-cut key to launch the RUN command window?1. Ctrl + R2. Windows + R3. Alt + R4. Shift + R |
||||||||||||||||||||||||||||||||||||||||||||
|
Answer» Correct Answer - Option 2 : Windows + R The correct answer is Windows + R.
|
|||||||||||||||||||||||||||||||||||||||||||||
| 11137. |
The Forward and Back icons appear to scroll through pages in the _______ view of MS Word.1. print layout2. outline3. read mode4. web layout |
|
Answer» Correct Answer - Option 3 : read mode The correct answer is read mode.
|
|
| 11138. |
The icons or pictures associated with some commands in menus will appear on the ______ of MS-Excel.1. tool bar2. formula bar3. title bar4. menu bar |
|
Answer» Correct Answer - Option 1 : tool bar The correct answer is Toolbar.
|
|
| 11139. |
Which of the following appears in MS-Word 2007 document area, as soon as a block of text is selected for formatting?1. New document2. Print preview3. Mini tool bar4. Table |
|
Answer» Correct Answer - Option 3 : Mini tool bar The correct answer is a Mini toolbar.
|
|
| 11140. |
Which of the following keyboard shortcuts opens the FIND and REPLACE (or REPLACE) dialogue box in MS Word? 1. CTRL + R 2. CTRL + H3. ALT + H 4. ALT + R |
||||||||||||||||||||||||||||||||||||||||||||
|
Answer» Correct Answer - Option 2 : CTRL + H The correct answer is CTRL + H.
|
|||||||||||||||||||||||||||||||||||||||||||||
| 11141. |
In which of the following tabs, the formatting tasks such as bolding, italicizing, changing the font and size of text found in MS-Word 2007?1. Home2. Page Layout3. References4. Insert |
|
Answer» Correct Answer - Option 1 : Home The correct answer is Home.
|
|
| 11142. |
When you enter a value in an MS Excel cell and press SHIFT + ENTER keys, what will happen? 1. The cursor (selection box) will move to the upper cell2. The cursor (selection box) will move to the lower cell 3. The cursor (selection box) will move to the right cell4. The cursor (selection box) will move to the left cell |
|
Answer» Correct Answer - Option 1 : The cursor (selection box) will move to the upper cell The correct answer is the cursor (selection box) will move to the upper cell.
|
|
| 11143. |
Which of the following is needed to access the Internet?1. Unique IP Address2. TV3. Email4. Hacker |
|
Answer» Correct Answer - Option 1 : Unique IP Address The correct answer is Unique IP Address.
|
|
| 11144. |
The ______ provides high-speed internet access. 1. dial-up2. TCP3. ISP4. broadband |
|
Answer» Correct Answer - Option 4 : broadband The correct answer is Broadband.
|
|
| 11145. |
Which of the following statements is/are FALSE? (i) In MS Word, a table can have one cell.(ii) In MS Word, the font size of a text cannot be less than 8. 1. Neither i nor ii2. Both i and ii3. Only i4. Only ii |
|
Answer» Correct Answer - Option 4 : Only ii The correct answer is Only ii.
|
|
| 11146. |
Softcopy is the intangibleoutput. So then what is hardcopyA. They physical parts of the computerB. The printed parts of the computerC. The printed outputD. the physical output devices |
| Answer» Correct Answer - C | |
| 11147. |
Which of the following is a short cut key to close a document in MS-Word?1. Ctrl+S2. Ctrl+N3. Ctrl+W4. Ctrl+M |
||||||||||||||||||||||||||||||||||||||||||
|
Answer» Correct Answer - Option 3 : Ctrl+W The correct answer is Ctrl + W.
|
|||||||||||||||||||||||||||||||||||||||||||
| 11148. |
Which of the following is an operating system?1. Java2. Python3. MS Office4. Windows |
|
Answer» Correct Answer - Option 4 : Windows The correct answer is Windows.
Note: Satya Nadella Now becomes the third chairman of Microsoft.
|
|
| 11149. |
The operating system can be defined as:1. Software is responsible for managing various activities and sharing computer resources.2. A software that can perform any specific task for the user.3. A medium that provides detailed information on a specific topic that is suitable for the user.4. A storage device responsible for providing an interface to the user. |
|
Answer» Correct Answer - Option 1 : Software is responsible for managing various activities and sharing computer resources. The correct answer is Software responsible for managing various activities and sharing computer resources.
|
|
| 11150. |
All the Excel functions are stored in _____ under the Formulas tab.1. AutoSum2. Styles3. Formula bar4. Function Library |
|
Answer» Correct Answer - Option 4 : Function Library The correct answer is the Functions library.
|
|