Explore topic-wise InterviewSolutions in Current Affairs.

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.

Multi line comment starts with ......... and ends with a) /’ and’/ b)*/and/* c) /* and*/ d)’/ and /’

Answer»

(c)  /* and*/

2.

From the following which is ignored by the compiler a) statement b) comments c) loopsd) None of these

Answer»

(b) comments

3.

Write a C++ statement to print the following sentence. Justify. “\ is a special character”

Answer»

cout<<“\\ is a special character” 

\\ is treated as an escape sequence

4.

From the following pick a character constant (a) ‘A’ (b) ‘ALL’ (c) ‘AIM’ (d) None of these

Answer»

(a) ‘A’, a character enclosed between single quote.

5.

How many bytes used to store “\abc”.

Answer»

A string is automatically appended by a null character.

Here one byte for \a (escape sequence). One byte for character b.

One byte for character c. 

And one byte for null character. 

So a total of 4 bytes needed to store this string.

6.

How many bytes used to store ‘\a’.

Answer»

To store ‘\a’ one byte is used because it is an escape sequence. An escape sequence is treated as one character. To store one character one byte is used.

7.

Complete the columns a, b, c, d, e &amp; f 1. Maltose ........ a....... +.......b.......2. Sucrose .......c........ + .........d..... 3. Lactose ........e........ + ........f.......

Answer»

1. Maltose Glucose + Glucose 

2. Sucrose Glucose + Fructose 

3. Lactose Glucose + Galactose

8.

Mr. Dixon purchased a Laptop with bluetooth technology. What is bluetooth?

Answer»

It is a specification that allows mobile phones, computers and PDAS to be connected wirelessly over short distance.

9.

A student type a C++ program and saves it in his personal folder as Sample.cpp. After getting the output of the program, he checks the folder and finds three files namely Sample.cpp, Sample.obj and Sample.exe. Write the reasons for the generation of the two files in the folder.

Answer»

After the compilation of the program sample.cpp, the operating system creates two files if there is no error. The files are one object file (sample.obj) and one executable file(sample.exe). Now the source file(sample.cpp) and object file(sample.obj) are not needed and can be deleted. To run the program sample.exe is only needed.

10.

Pick an identifier from the following (а) auto (b) age (c) float (d) double

Answer»

Age is an identifier

11.

From this which statement is correct? (a) Human denititian is heterodont (b) Fat is soluble in water (c) Fructose absorbed passively (d) Small intestine devoid of villi

Answer»

(a) Human dentitian is heterodont

12.

Which of the following statement is most suitable for gastrin? (a) It stimulates the secretion of gastric juice. (b) It stimulates the secretion of bile. (c) It inhibits gastric gland to produce gastric secretion.

Answer»

(a) It stimulates the secretion of gastric juice.

13.

Identify the invalid literals from the following and write reason for each: 1. 2E3.5 2. “9”3. ‘hello’ 4. 55450

Answer»

1. 2E3.5 → The mantissa part (3.5) will not be a floating point number. Hence it is invalid 

3. ‘hello’ → It is a string hence it must be enclosed in double quotes instead of single quotes. It is invalid.

14.

Some of the literals in C++ are given below. How do they differ?(5, ‘5’, 5.0, “5”)

Answer»

5 – integer literal 

‘5’ – Character literal 

5.0 – floating point literal 

“5”- string literal

15.

Mention the purpose of tokens in C++. Write names of any four tokens in C++.

Answer»

Token:

It is the smallest individual units  similar to a word in English or Malayalam language. C++ has 5 tokens. 

1. Keywords 

2. Identifier 

3. Literals (Constants) 

4. Punctuators 

5. Operators

16.

Non graphic symbol can be represented by using ..........

Answer»

Escape Sequence

17.

The following are some invalid identifiers. Specify its reason. 1. Sum of digits 2. 1 year 3. First jan 4. For

Answer»

1. Sum of digits → space not allowed hence it is invalid

2. 1 year → First character must be an alphabet hence it is invalid 

3. First.jan → special characters such as dot (.) not allowed hence it is invalid. 

4. For → It is valid. That is it is not the keyword for

18.

The execution of a program starts at ......... function.

Answer»

The execution of a program ends with main() function.

19.

Manish wants to write a program to produce a beep sound. Which escape sequence is used to get an alert (sound) a) \a b) \d c) \s d)None of these

Answer»

\a sequence is used to get an alert (sound).

20.

Manish wants to write a program to produce a beep sound. Which escape sequence is used to get an alert (sound) (a) \a (b) \d (c) Vs (d) None of these

Answer»

\a sequence is used to get an alert (sound)

21.

....... is used to write single line comment (a) // (b) /*(c) */ (d) None of these 

Answer»

// is used to write single line comment.

22.

Adeline wrote a C++ program namely sum.cpp and she compiled the program successfully with no error. Some files are generated namely sum.obj and sum.exe. From this which file is not needed to run the program

Answer»

sum.obj is not needed and can be deleted.

23.

Consider the following code int main() {cout&lt;&lt;“welcome to C++”; } After you compile this program there is an error called prototype error. Why it is happened? Explain.

Answer»

Here we used the output operator cout <<. It is used to display a message “welcome to C++” to use this operator the corresponding header file <iostream> must be included. We didn’t included the header file hence the error.

24.

Define Network?

Answer»

A network is a set of devices connected by physical media links. A network is recursively is a connection of two or more nodes by a physical link or two or more networks connected by one or more nodes.

25.

Each and every statement in C++ must be end with ........ a) Semi colon b) Colon c) full stop d) None of these

Answer»

a) Semi colon

26.

From the following which is known as string terminator. a) ‘\0’ b) ‘\a’ c) ‘\s’ d) ‘\t’

Answer»

‘\0’ is known as string terminator.

27.

From the following which is ignored by the compiler (a) statement (b) comments (c) loops (d) None of these

Answer»

(b) comments

28.

const k = 100 means (a) const float k = 100 (b) const double k = 100 (c) const int k = 100 (d) const char k = 100

Answer»

(c) const int k = 100

29.

Each and every statement in C++ must be end with ........ (а) Semicolon (b) Colon (c) full stop (d) None of these

Answer»

(a)  Semicolon

30.

In C++ the size of the string “book” is 5 and that of “book\n” is 6. Check the validity of the above statement. Justify your answer.

Answer»

A string is automatically added by a null character(\0). The null character is treated as one character. So the size of string “book” is 5. Similarly, a null character (\0) is also added to “book\n”. \n and \0 is treated as single characters. Hence the size of the string “book\n” is 6.

31.

From the following pick a string constant (a) ‘a’ (b) “abc” (c) ‘abc’ (d) None of these

Answer»

(b) “abc”, a character constant must be enclosed between double quotes.

32.

What is PAN?

Answer»

PAN means Personal Area Network. It is used to connect devices situated in a small radius by using guided media(USB cable)or unguided media (Bluetooth, infrared,etc).

33.

const k=100 means a) const float k=100 b) const double k=100 c) const int k=100 d)const char k=100

Answer»

c) const int k=100

34.

What is a Link?

Answer»

At the lowest level, a network can consist of two or more computers directly connected by some physical medium such as coaxial cable or optical fiber. Such a physical medium is called as Link.

35.

Find the invalid identifiers from the following:-(i) nA(ii) 2nd(iii) ROLL NO(iv) case(A) (i) (ii) and (iv)(B) (i) and (iii)(C) (ii), (iii) and(iv)(D) (ii),(i) and (iii)  

Answer»

Correct option -(C) (ii), (iii) and (iv)

Explanation:- 

Identifier cannot start with a digit; it cannot have a space and case is a keyword. 

36.

Match column I with and Rennin Column I Column II Column I Column II (a) Bilirubin and biliverdin (i) Parotid (b) Hydrolysis of starch (ii) Bile (c) Digestion of fat (iii) Lipases(d) Salivary gland (iv) Amylases

Answer»

(a) – (ii), (b) – (iv), (c) – (iii), (d) – (i)

37.

Pick the odd man out. Justify TOTSAL, TOT_SAL, totsal5, Tot5_sal, SALTOT, tot.sal

Answer»

tot.sal. Because it contains a special character dot(.). An identifier cannot contain a special character. So it is not an identifier. The remaining satisfies the rules of naming identifier. So they are valid identifiers.

38.

Categorise and classify the different types of network given below.ATM network, Cable television network, Network within the school, Network at home using Bluetooth, Telephone network, Railway network

Answer»
  • PAN: Network at home using Bluetooth 
  • LAN: Network within the school 
  • MAN: Cable television network 
  • WAN: ATM network, Telephone network, Railway network
39.

Pick the hexadecimal integer from the following (a) 217 (b) 0 × 217 (c) 0217 (d) None of these

Answer»

(b) 0 × 217, a hexadecimal integer.

40.

What is a node?

Answer»

A network can consist of two or more computers directly connected by some physical medium such as coaxial cable or optical fiber. Such a physical medium is called as Links and the computer it connects is called as Nodes.

41.

Pick the octal integer from the following (a) 217 (b) 0 X 217 (c) 0217 (d) None of these

Answer»

(c) 0217, an octal integer precedes 0

42.

Will muscle contraction occur in the following conditions. Justify your answer. 1. Troponin is removed from the thin lament. 2. No ATP is supplied to the muscle. 3. All endoplasmic reticulum are removed from muscle cells.

Answer»

1. Muscle contraction occur. 

2. Muscle contraction does not occur. Attachment and detachment of myosin head to actin molecule requires ATP. 

3. No muscle contraction. Ca2+ necessary for muscular contraction is released from endoplasmic reticulum.

43.

Observe the following diagram.​​​​​1. Identify A, B, C, D. 2. What is Sarcomere? 3. List out the changes takes place during muscle contraction to ABC and D.

Answer»

1. Identification 

  • A – Sarcomere 
  • B – Hzone 
  • C – Aband 
  • D – Iband 

2. A sarcomere is the region between two adjacent Z line. It is formed of a complete A band in the middle and halves of two I bands present on either side. 

3. The changes takes place during muscle contraction to ABC and D: 

  • A – Two Z lines of the sarcomere come close together resulting in the shortening of the sarcomere. 
  • B – H – Zone completely disappears. 
  • C – No change in the length of A band 
  • D – I – band get reduced
44.

The given statements are about the structure of muscles. Categorise them into a table giving appropriate headings. 1. These muscles have striation. 2. These are found inside the wall of hollow internal organs. 3. These muscles have no striations. 4. They are voluntary muscles. 5. They are muscles of the arms and legs. 6. They are involuntary muscles

Answer»
 Skeletal Muscle Smooth muscle
 1. These muscles have striation 2. These muscles are found inside the wall of hollow internal organs.
 4. They are voluntary muscles.3. These muscles have no striation
5. They are muscles of the arms and legs 6. They are involuntary muscles
45.

Differentiate between router and Bridge.

Answer»

Bridge is a device used to link same type of networks while Router is similar to a bridge, but it can connect two networks with different protocols.

46.

What is a gateway or Router?

Answer»

A node that is connected to two or more networks is commonly called as router or Gateway. It generally forwards message from one network to another.

47.

Explain the different network topologies.

Answer»

physical or logical arrangement of computers of a network is called structure or topology. It is the geometrical arrangement of computers in a network. The major topologies developed are star, bus, ring, tree and mesh. 

1. Star Topology: 

A star topology has a server all other computers are connected to it. If computer A wants to transmit a message to computer B. Then computer A first transmits the message to the server then the server retransmits the message to the computer B.

That means all the messages are transmitted through the server. Advantages are add or remove workstations to a star network is easy and the failure of a workstation will not effect the other. The disadvantage is that if the server fails the entire network will fail.

2. Bus Topology: 

Here all the computers are attached to a single cable called bus. Here one computer transmits all other computers listen. Therefore it is called broadcast bus. The transmission from any station will travel in both the direction. The connected computers can hear the message and check whether it is for them or not. 

Advantages are add or remove computer is very easy. It requires less cable length and the installation cost is less. Disadvantage is fault detection is very difficult because of no central computer. 

3. Ring Topology: 

Here all the computers are connected in the shape of a ring and it is a closed loop. Here also there is no central computer. Here a computer transmits a message, which is tagged along with its destination computer’s address.

The message travels in one direction and each node check whether the message is for them. IF not, it passes to the next node. It require only short cable length. If a single node fails, at least a portion of the network will fail. To add a node is very difficult. 

4. Hybrid Topology: 

It is a combination of any two or more network topologies. Tree topology and mesh topology can be considered as hybrid topology.

(a) Tree Topology: 

The structure of a tree topology is the shape of an inverted tree with a central node and branches as nodes. It is a variation of bus topology. The data transmission takes place in the way as in bus topology. The disadvantage is that if one node fails, the entire portion will fail. 

(b) Mesh Topology: 

In this topology each node is connected to more than one node. It is just like a mesh (net). There are multiple paths between computers. If one path fails, we can transmit data through another path.

48.

Explain the protocol TCP/IP.

Answer»

1. TCP: 

(Transmission Control Protocol) is a connection oriented protocol. It is responsible for sending the data from one PC to another and also verifying the correct delivery of data from client to server. Data can be lost in the intermediate network. TCP adds support to detect errors or lost data and to trigger retransmission until the data is correctly and completely received.

2. IP: 

is responsible for moving packet of data from node to node. IP forwards each packet based on a four byte destination address (the IP number). The Internet authorities assign ranges of numbers to different organizations.

The organizations assign groups of their numbers to departments. IP operates on gateway machines that move data from department to organization to region and then around the world. In short TCP handle the flow control and error free packet delivery and IP provides basic addressing and data packets forwarding services. 

eg: 101.65.105.255

49.

IDE means ............

Answer»

Integrated Development Environment

50.

C++ is a ......... language. (a) High level (b) Low level (c) Middle level (d) None of these

Answer»

(a) High level