This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Describe the lifestyle of the country mouse in two or three sentences. |
|
Answer» The country mouse lived in a hole in a field of a village. He was in the habit of taking raw food such as roots, sugarcane and fresh water. He lived in a peaceful and natural way. |
|
| 2. |
How can you say that the town mouse could not enjoy the dinner offered by the country mouse? |
|
Answer» The town mouse did not enjoy his dinner as it consisted of only the root and the sugarcane, instead of bread and jam, different kinds of fruit and slabs of chocolate. |
|
| 3. |
“The town mouse and the country mouse did not visit each other again.” Why ? Give reasons for your answer. |
|
Answer» The town mouse did not visit the country mouse again because the country was so quiet and he had to eat only raw food there. The country mouse did not visit the town mouse again because there the streets were noisy with the traffic of buses, lorries and cars. He could not get raw food there. He could not even eat in peace, there. |
|
| 4. |
The town mouse and the country mouse are …. a) friends b) cousins c) classmates |
|
Answer» The town mouse and the country mouse are cousins |
|
| 5. |
How can you say the town mouse was not comfortable in the country? |
|
Answer» The town mouse came to the village for rest for a week. But he went back to the town the very next day. This clearly shows that the town mouse was uncomfortable in the village. |
|
| 6. |
The country mouse arrived in town.(a) left for a place (b) got to a place (c) left a place |
|
Answer» (b) got to a place |
|
| 7. |
What is nested switch statement? |
|
Answer» When a switch is a part of the statement sequence of another switch, then it is called as nested switch statement. The inner switch and the outer switch constant may or may not be the same. |
|
| 8. |
Write C++ program to sum the numbers from 1 to 10. |
|
Answer» C++ program to sum the numbers from 1 to 10 using for loop #include<iostream> using namespace std; int main () { int i,sum = 0; for(i=1;i<=10;i++) { sum = sum + i; } cout<<"The sum of 1 to is"<<sum; return 0; } Output: The sum of 1 to 10 is 55 |
|
| 9. |
Pick the odd one out (a) Password security (b) Data Audit(c) Data Bank (d) Data vault |
|
Answer» (c) Data Bank |
|
| 10. |
Which among the following is an example of mnemonic codes. (a) AS03, AS04, AS05 (b) 1925, 1926, 1927, 1928 (c) ACC, ECO, ENG, MAL (d) 001-100, 101-200, 201-300, 301-400 |
|
Answer» (c) ACC, ECO, ENG, MAL |
|
| 11. |
Assembly language is a low level programming language (a) makes use of mnemonics to interact with computer system (b) sometimes referred to as machine code or object code (c) that is not limited by the computer or for one specific job(d) used to interact with computer software |
|
Answer» (a) Assembly language is a low level programming language that use mnemonics to interact with computer system. |
|
| 12. |
Assembly language uses mnemonic codes. |
|
Answer» True Assembly language uses mnemonic codes to represent each low level machine operation or code. |
|
| 13. |
……… The speed of printer is rated by |
|
Answer» cps or ppm The speed of printer is rated by |
|
| 14. |
Encrypted data is referred as cipher text. |
|
Answer» True Encrypted data is presented in coded form. So, it is known as cipher text. |
|
| 15. |
A separate printer will be needed in a network for all connected computers. |
|
Answer» False Computers connected to a LAN can share information and through a common printer. |
|
| 16. |
Name the term defined by given below statement: “A group of computers connected to each other by a link.” |
|
Answer» Computer network is defined as a group of computers connected to each other by a link. |
|
| 17. |
Explain Database Management. What are the features of DBMS? |
|
Answer» It refers to the software that is responsible for storing, maintaining and utilising a database. It enables a user to define, create and maintain the database and provide controlled access on it. A database is a collection of integrated data stored together to serve multiple applications. DataBase Managements System provides several additional features which are as follows: 1. Removes data redundancy 2. Elimination of data inconsistency 3. Data integration 4. Data sharing 5. Data security e.g. MS-Access, Corel Paradox, Lotus Approach, MySQL, OpenOffice.org Base etc. |
|
| 18. |
When we transmit signal over a long distance, the intensity of the signal is reduced. What could be the solution for this problem? |
|
Answer» We can use a networking device called repeater, regenerates the feeble signal and transmit it. |
|
| 19. |
When we transmit signal over a long distance, the intensity of the signal is reduced. What could be the solution for this problem? |
|
Answer» We can use a networking device called repeater, regenerates the feeble signal and transmit it. |
|
| 20. |
Explain any five specific purpose application softwares. |
|
Answer» 1. Hotel Management System It refers to the management techniques used in the hotel sector. It includes hotel administration, accounts, billing marketing, housekeeping, front office or front desk, e.g. Hotelogix PMS, Djubo, True Hotel Management, Aatithya HMS etc. 2. Payroll Management System It is used by all modern organisations to encompass every employee of the organisation, who receives regular wages or other compensation. All different payment methods are calculated by the payroll software and the appropriate paychecks are issued. This software can also be used for printing or E-mailing the salary slip of employees, e.g. Namely, UltiPro etc. 3. HR Management System It refers to the systems and processes at the intersection between Human Resource Management (HRM) and Information Technology (IT). The function of HR department is generally administrative and common in all organisations. e.g. Effective Staff, Cezanne HR etc. 4. Attendance System It is an application software designed to track and optimise the presence of a person/student in an organisation/school. Now-a-days, attendance system can be integrated with customer’s existing time/ attendance recording devices like Biometrics/Access cards. Attendance management can be done in two ways as follows: 1. Biometric integration 2. Manual attendance integration e.g. eTimeTrackLite, Pyramid PTR 4000 etc. 5. Billing System It refers to the software that is used to’ perform the billing process. It handles the tracking of labelled products and services delivered to a customer or set of customers. e.g. Billing Manager, BillingTracker, kBilling etc. . |
|
| 21. |
C++ supports types of iteration statements. (a) 3(b) 2(c) 4(d) 5 |
|
Answer» Answer is (a) 3 |
|
| 22. |
Given the following C++ code, answer the questions (i) & (ii).class TestMeOut{public:~TestMeOut() //Function 1 {cout << “Leaving the examination hall” << endl;}TestMeOut() //Function 2{cout<<“Appearing for examination”<<endl;}void MyWork() //Function 3{cout<<“Attempting Questions//<<endl;}};1. In Object Oriented Programming, what is Function 1 referred as and when does it get invoked / called?2. In Object Oriented Programming, what is Function 2 referred as and when does it get invoked / called? |
|
Answer» 1. Function 1 is the ‘destructor’. It is executed automatically when an object of the class TestMeOut goes out of scope. 2. Function 2 is called default ‘constructor’. It is executed automatically when instance of the class TestMeOut comes into scope or when objects of the class TestMeOut are created. |
|
| 23. |
What are advantages of declaring constructors and destructor under public accessability? |
|
Answer» When constructor and destructor are declared under public: 1. we can initialize the object while declaring it. 2. we can explicitly call the constructor. 3. we can overload constructor and therefore use multiple constructors to initialize objects automatically. 4. we can destroy the objects at the end of class scope automatically (free unused memory). However, some C++ compiler and Dev C++ do not allow to declare constructor and destructor under private section. So it is better to declare constructor and destructor under public section only. |
|
| 24. |
Write the output from the following code:y = 2000if (y%4==0):print “Leap Year”else:print “Not leap year” |
|
Answer» The output is Leap Year |
|
| 25. |
Write the output from the following code:n = 50i = 5s = 0while i<n:s+ = ii+ = 10print “i=”,iprint “sum=”,s |
|
Answer» i= 15 i= 25 i= 35 i= 45 i= 55 sum= 125 |
|
| 26. |
Write the output from the following code:T1=(10,20,30,40,50)T2=(100,200,300)T3=T1+T2print T3 |
|
Answer» (10,20,30,40,50,100,200,300) |
|
| 27. |
Write the output from the following code:T1=(10,20,30,40,50)T2 =(10,20,30,40,50)T3 =(100,200,300)cmp(T1, T2)cmp(T2,T3)cmp(T3,T1) |
|
Answer» The output is 0 -1 1 |
|
| 28. |
Write the output from the following code:x= 10y = 20if (x>y):print x+yelse:print x-y |
|
Answer» The output is -10 |
|
| 29. |
Write the output from the following code:s = 0for I in range(10,2,-2):s+=Iprint “sum= ",s |
|
Answer» The output is sum = 28 |
|
| 30. |
Write the output for the following codes:A={10:1000,20:2000,30:3000,40:4000,50:5000}print A.items()print A.keys()print A.values() |
|
Answer» [(40,4000), (10,1000), (20,2000), (50,5000), (30,3000)] [40,10, 20, 50, 30] [4000,1000, 2000, 5000, 3000] |
|
| 31. |
Give the output of the following statements:>> str=‘Hello Python’>>> print str.lstrip(“Hel”) |
|
Answer» The output is Hello Python |
|
| 32. |
Give the output of the following statements :>> str=‘Hello Python’>>> str.istitle() |
|
Answer» The output is True |
|
| 33. |
Write the output from the following code:t=(10,20,30,40,50)print len(t) |
|
Answer» The output is 5 |
|
| 34. |
What does the following print?for i in range (1,10):for j in'range (1,10):print i * j,print |
|
Answer» 1 2 3 4 5 6 7 8 9 2 4 6 8 10 12 14 16 18 3 6 9 12 15 18 21 24 27 4 8 12 16 20 24 28 32 36 5 10 15 20 25 30 35 40 45 6 12 18 24 30 36 42 48 54 7 14 21 28 35 42 49 56 63 8 16 24 32 40 48 56 64 72 9 18 27 36 45 54 63 72 81 |
|
| 35. |
Give the output of the following statements :>>> str=‘Honesty is the best policy’>>> str.replace(‘o’,‘*’) |
|
Answer» ‘H*nesty is the best p*licy’. |
|
| 36. |
What is the result of 4+4/2+2? |
|
Answer» 4 + (4/2) + 2 = 8. |
|
| 37. |
What will be the output of the following statement? Also, justify the answer.>> print ‘Radhsa’s dress is pretty’. |
|
Answer» SyntaxError: invalid syntax. The single quote needs to be replaced by V to get the expected output. |
|
| 38. |
Write the output from the following code:t=(‘a’,‘b’,‘c’,‘A’,‘B’)print max(t)print min(t) |
|
Answer» The output is ‘c’ 'A’ |
|
| 39. |
Find the output from the following code:T=(10,30,2,50,5,6,100,65)print max(T)print min(T) |
|
Answer» The output is 100 2 |
|
| 40. |
Highlight the literals in the following program and also predict the output. Mention the types of variables in the program.a=3b='1'c=a-2d=a-ce=“Kathy”f=‘went to party.’g=‘with Sathy’print a,g,e,f,a,g,“,”,d,g,“,”,c,g,“and his”,e,f |
|
Answer» a, c,d = integer b, e,f,g = string Output: 3 with Sathy Kathy, went to party. 3 with Sathy, 2 with Sathy , 1 with Sathy and his Kathy, went to party. |
|
| 41. |
Write the output of the following code: print “Python is an \n interpreted \t Language” |
|
Answer» Python is an interpreted Language |
|
| 42. |
Give the output of following with justification.x = 3x+ = x-xprint x |
|
Answer» Output: 3 Working: x = 3 x = (x+ x-x ):x = 3 + 3 - 3 = 3 |
|
| 43. |
Observe the following program and answer the question that follows: import random x = 3 N = random, randint (1, x) for 1 in range (N): print 1, ‘#’, 1 + 1 a. What is the minimum and maximum number of times the loop will execute? b. Find out, which line of output(s) out of (i) to (iv) will not be expected from the program? (i). 0#1 (ii). 1#2 (iii). 2#3 (iv). 3#4 |
|
Answer» (a). Minimum Number = 1 Maximum number = 3 (b). Line iv is not expected to be a part of the output. |
|
| 44. |
What will be printed, when following Python code is executed?class person:def init (self,id):self.id = id arjun = person(150)arjun. diet [‘age’] = 50print arjun.age + len(arjun. diet )Justify your answer. |
|
Answer» 52 arjun.age = 50 arjun.dict has 2 attributes so length of it is 2. So total = 52. |
|
| 45. |
Find and write the output of the following Python code:Number = [9,18,27,36] for N in Numbers:print (N, "#", end = " ")print () |
||||||||||||||||||||||||
Answer»
|
|||||||||||||||||||||||||
| 46. |
Find and write the output of the following Python code :Values = [10,20,30,40]for val in Values:for I in range (1, Val%9):print (I," * ", end= " ")print () |
||||||||||||||||||||||||||||||
Answer»
|
|||||||||||||||||||||||||||||||
| 47. |
Write the output of the following. |
|
Answer» Constructor of class P Constructor of class P Constructor of class Q Constructor of class R Constructor of class Q Constructor of class P Destructor of class P Destructor of class Q Destructor of class R Destructor of class Q Destructor of class P Destructor of class P |
|
| 48. |
What are the possible outcome(s) executed from the following code? Also, specify the maximum and import random.PICK=random.randint (0,3)CITY= ["DELHI", "MUMBAI", "CHENNAI", "KOLKATA"];for I in CITY :for J in range (1, PICK)print (I, end = " ")Print ()(i)(ii)DELHIDELHIDELHIMUMBAIMUMBAIDELHIMUMBAICHENNAICHENNAIDELHIMUMBAICHENNAIKOLKATAKOLKATA(iii)(iv)DELHIDELHIMUMBAIMUMBAICHENNAIKOLKATAKOLKATAKOLKATAKOLKATA |
|
Answer» Option (i) and (iii) are possible option (i) only PICKER maxval = 3 minval = 0 |
|
| 49. |
What are the possible outcome(s) executed from the following code? Also, specify the maximum and minimum values that can be assigned to variable SEL.import randomSEL=random. randint (0, 3)ANIMAL = [“DEER”, “Monkey”, “COW”, “Kangaroo”];for A in ANIMAL:for AAin range (1, SEL):print (A, end =“”)print ()(i)(ii)(iii)(iv)DEERDEERDEERDEERDEERMONKEYMONKEYDELHIMONKEYMONKEYMONKEYMONKEYCOWCOWDELHIMONKEYCOWCOWKANGAROOKANGAROOKANGAROOKANGAROOKANGAROOKANGAROO |
|
Answer» Maximum value of SEL is 3. The possible output is below DEER Monkey Monkey Kangaroo Kangaroo Kangaroo Thus (iv) is the correct option. |
|
| 50. |
The member function defined within the class behave like ……..(a) inline function(b) Non – inline function(c) Outline function(d) Data function |
|
Answer» (a) inline function |
|