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.

Write any 5 features of Python?

Answer»

1. Python uses Automatic Garbage Collection

2. Python is a dynamically typed language.

3. Python runs through an interpreter.

4. Python code tends to be 5 to 10 times shorter than that written in C++.

5. In Python, there is no need to declare types explicitly

6. In Python, a function may accept an argument of any type, and return multiple values without any kind of declaration beforehand.

2.

Name the infective stage of Plasmodium. Give Symptoms of malaria

Answer»

Sporozoite 

I. Symptoms of malaria: 

1. Fever accompanied by shivering.

2. Joint pain or arthralgia. 3. Vomiting.

4. Anaemia caused due to rupture of RBCs or haemolysis. 

5. Haemoglobinuria. 

6. Retinal damage. 

7. Convulsions

8. Cyclical occurrence of sudden coldness followed by rigor and then fever and sweating lasting for four to six hours. This is called a classic symptom of malaria. 

9. Splenomegaly or enlarged spleen, severe headache, cerebral ischemia, hepatomegaly, i. e. enlarged liver, hypoglycaemia and haemoglobinuria with renal failure may occur in severe infections.

II. Spread / Transmission of malaria:

1. Malaria parasite is transmitted through the female Anopheles mosquito and hence it is known as mosquito-borne disease. Mosquito acts as a vector. 

2. There are four species of Plasmodium, viz., P. vivax, P. falciparum, P. ovale and P. malariae which transmit malaria.

3.

What is sys.argv? What does it contain?

Answer»

sys.argv is the list of command-line arguments passed to the Python program, argv contains all the items that come along via the command-line input, it’s basically an array holding the command-line arguments of the program.

To use sys.argv, you will first have to import sys. The first argument, sys.argv[0], is always the name of the program as it was invoked, and sys.argv[l] is the first argument you pass to the program (here it is the C++ file).

For example: main(sys.args[1]) Accepts the program file (Python program) and the input file (C++ file) as a list(array). argv[0] contains the Python program which is need not to be passed because by default _main_ contains source code reference and argv[l] contains the name of the C++ file which is to be processed.

4.

Identify the function call statement in the following snippet.if_name == ’_main_’:main(sys.argv[l:])(a) main(sys.argvfl:])(b) _name_(c) _main_(d) argv

Answer»

Answer (b)  _name_

5.

Name of the causative agent of ringworm.

Answer»

Trichophyton

6.

Identify the module, operator, definition name for the followingwelcome.display( )

Answer»

welcome – module name

– dot operator

display( ) – function name

7.

Which of the following can be used for processing text, numbers, images, and scientific data?(a) HTML (b) C (c) C++ (d) PYTHON

Answer»

PYTHON can be used for processing text, numbers, images, and scientific data

8.

Find the correct statement.(a) C++ is a dynamic typed language(b) python is a dynamic typed language

Answer»

(b) python is a dynamic typed language

9.

Name the vector of Filariasis.

Answer»

Female Culex mosquito

10.

Antigen-antibody complex:Img 1

Answer»

1. Between antigen and antibody there is specificity. 

2. Each antibody is specific for a particular antigen. 

3. On the antigens there are combining sites which are called antigenic determinants or epitopes. 

4. Epitopes react with the corresponding antigen binding sites of antibodies which are called paratopes. 

5. The antigen binding sites are located on the variable regions of the antibody. Variable regions have small variations which make each antibody highly specific for a particular antigen. 

6. Owing to variable region the antibody can recognize the specific antigen.

7. Antibody thus binds to specific antigen in a lock and key manner, forming an antigen- antibody complex.

11.

Antigen and antibody.

Answer»
AntigenAntibody
1. Antigens are foreign proteins which are capable of producing infection.1. Antibodies are immunoglobulins produced by the body to act against the antigens.
2. The structure of antigens is variable dependent upon the type of pathogen.2. The structure of antibody is Y-shaped.
3. The antigen is the ‘non-self’molecule 3. The antibody is ‘self’ molecule.
4. The antigens have epitope sites which bind with the antibody molecule.4. The antibodies have paratope sites which bind with the antigen molecule.
12.

Write a C++ program to create a class called Student with the following details?Protected memberRno integerPublic membersvoid Readno(int); to accept roll number and assign to Rnovoid Writeno( ); To display Rno.The class Test is derived Publically from the Studentclass contains the following detailsProtected memberMark1 floatMark2 floatPublic membersvoid Readmark(float, float);To accept mark1 and mark2void Writemark( ); To display the marksCreate a class called Sports with the following detailProtected membersscore integerPublic membersvoid Readscore(int); To accept the scorevoid Writescore( ); To display the scoreThe class Result is derived Publically from Test and Sports class contains the following – details Private memberTotal floatPublic membervoid display( ) assign the sum of mark1, mark2, score in totalinvokeWriteno( ), Writemark( ) and Writescore( ). Display the total also.Save the C++ program in a file called hybrid. Write a python program to execute the hybrid.cpp

Answer»

In Notepad, type the C++ program

#include<iostream>

using namespace std;

class student

protected:

int mo;

public:

void readno(int rollno)

{

mo = rollno;

}

void writeno( )

{

cout<< “\n Roll no:” <<rno;

}};

class test: public student

{

protected:

float mark1,mark2; 

public:

void readmark(float m1, float m2)

{

mark1 = m1;

mark2 = m2;

}

void writemark( )

{

cout<< “\n mark1 ” << mark1;

cout<< “\n mark2 ” << mark2;

}};

class sports

{

protected:

int score;

public:

void readscore(int s)

{

score = s;

}

void writescore( )

{

cout<< “SCORE : ” <<score;

}};

class result: public test, public sports

{

private: float total; public:

void display( )

{

total = mark1 + mark2;

cout<< “TOTAL MARKS: ” <<total;

}};

int main( )

{

result r;

r.readno(5);

r.readmark(100,100);

r.readscore(200);

r.writeno( );

r.writemark( );

r.display( );

r.writescore( );

}

save this file as hybrid.cpp

Now type the python program in New Notepad file. 

# python hybrid.py -i hybrid.cpp

import sys,os,getopt def main(argv): cpp Jile = ” exe_file = ”

opts, args = getopt.getopt(argv, “i:” ,[‘ifile-])

for o, a in opts:

if o in(“-i” , “–file”):

cpp_file = ”a+ ‘.cpp’

exe_file = a+ ‘.exe’

run(cpp_file, exefile)

def run(cpp_file, exe_file):

print(“Compiling” + cpp_file)

os.system(‘g++ ‘+ cpp_file + ‘-o ‘+ exe_file) 

print(“Running” + exefile)

print(“.......“)

print

os.system(excfile)

print

if name == ’ main

main(sys.argv[1:])

Output:

Rollno : 5

Mark1 : 100

Mark2 : 100

TOTAL MARKS : 200

SCORE : 200

13.

What does name contains?(a) C++ filename (b) main( ) name (c) python filename (d) os module name

Answer»

(c) python filename

14.

Identify the script language from the following. (a) Html(b) Java(c) Ruby (d) C++

Answer»

Answer is (c) Ruby

15.

Where is antigen D is present? (a) On Rhesus factor (b) On the surface of RBCs (c) On A-antigen(d) On AB-antigen

Answer»

Correct answer is (b) On the surface of RBCs

16.

Which of the following is NOT a parasitic vector insect? (a) Mosquito (b) Housefly (c) Honey bee (d) Head louse

Answer»

Correct answer is (c) Honey bee

17.

What are the applications of scripting language?

Answer»

Applications of Scripting Languages

1. To automate certain tasks in a program

2. Extracting information from a data set

3. Less code intensive as compared to traditional programming language

4. can bring new functions to applications and glue complex systems together

18.

The input mode in python command is given by ……a) -i(b) o(c) -p

Answer»

The input mode in python command is given by -i 

19.

What is the theoretical difference between Scripting language and other programming language?

Answer»

The theoretical difference between the two is that scripting languages do not require the 228 compilation step and are rather interpreted.

For example, normally, a C++ program needs to be compiled before running whereas, a scripting language like JavaScript or Python need not be compiled. A scripting language requires an interpreter while a programming language requires a compiler.

20.

Write a Python program to execute the following C++ coding?

Answer»

#include<iostream>

using namespace std;

int main( )

{ cout« “WELCOME”;

return (0);

}

The above C++ program is saved in a file welcome.cpp

Python program

Type in notepad and save as welcome.cpp #include<include>

using namespace std;

int main( )

{

cout<<“WELCOME”;

retum(0);

}

Open Notepad and type python program and save as welcome.py 

import sys,os,getopt

def main(argv):

cppfile = ”

exefile = ”

opts, args = getopt.getopt(argv, “i:” , [ifile = ‘])

for o,a in opts:

if o in (“_i” , ” ifile “):

cpp_file = a+ ‘.cpp’

exe_file = a+ ‘.exe’

run(cpp_file, exe_file)

def run(cpp_file, exe_file):

print(“compiling” +cpp_file)

os.system(‘g++’ +cpp_file + ‘_o’ + exe_file) 

print(“Running” + exe_file)

print(“……")

print

os.system(exe_file)

print

if — name — == ‘–main –‘;

main(sys.argv[1:])

output:

.................

WELCOME

...................

21.

Pick the odd one outPerl, Ruby, ASP, Tel, Java

Answer»

Answer is Java

22.

Erythroblastosis foetalis is caused when mother is ………………… (a) Rh +ve (b) with antibody ‘a’ (c) Rh -ve (d) with antibody ‘b’

Answer»

Correct answer is (c) Rh -ve

23.

Which command is used to clear the screen?(a) clear(b) clean(c) cls(d) clrscr

Answer»

cls is used to clear the screen

24.

Read the statement given below and choose the correct option.(I) All scripting languages are progamming languages.(II) A scripting language requires an interpreter(III) Programming language requires a compiler(a) (I) – False, (II), (III) – True(b) (I), (II) – False(c) All are true(d) All are false

Answer»

(c) All are true

25.

How many values can be returned by a function in python?(a) 1 (b) 2 (c) 3 (d) many

Answer»

many values can be returned by a function in python.

26.

What is the use of modules?

Answer»

We use modules to break down large programs into small manageable and organized files. Furthermore, modules provide reusability of code. We can define our most used functions in a module and import it, instead of copying their definitions into different programs.

27.

The process by which python periodically frees and reclaims block of memory that no longer are in use is called …………

Answer»

Garbage Collection

28.

Write the expansion of 1. SWIG 2. MinGW

Answer»

SWIG (Simplified Wrapper Interface Generator. Both C and C++)

MinGW (Minimalist GNU for Windows)

29.

……. is a python like language for writing c extensions.

Answer»

cython is a python like language for writing c extensions

30.

…………. is the best compiler for C++ on windows. (a) MinGW-w64(b) MinGW-w63 (c) MinGW-w62 (d) MinGW-w60

Answer»

(a) MinGW-w64

31.

pythons’ ……… provides access to same variables and functions that interact with the interpreter.

Answer»

pythons’ sys module provides access to same variables and functions that interact with the interpreter.

32.

Which of the following language codes are linked by minGW on windows OS?(a) C(b) C++(c) FORTRAN(d) all of these

Answer»

(d) all of these

33.

Which opeator is used to access the functions of a imported value?(a) +(b) * (c) . (d) /

Answer»

. is used to access the functions of a imported value

34.

Which command of os module executes the exe file? (a) run (b) system( ) (c) main (d) name

Answer»

run command of os module executes the exe file

35.

……….. refers to a set of runtime header files used in compiling and linking the code of c, C++, Fortran to run on window os(a) MaxGW(b) CountGW (c) MinGW (d) AvgGW

Answer»

MinGW refers to a set of runtime header files used in compiling and linking the code of c, C++, Fortran to run on window os

36.

Factorize the following expressions: a4 – 1/b4

Answer»

We have,

a4 – 1/b4

= (a2)2 – (1/b2)2

= (a2 + 1/b2) (a2 – 1/b2)

= (a2 + 1/b2) (a – 1/b) (a + 1/b)

37.

Factorize the following expressions:x3 – 144x

Answer»

We have,

x3 – 144x

= x [x2 – (12)2]

= x (x + 12) (x – 12)

38.

Factorize the following expressions:25x4y4 – 1

Answer»

We have,

25x4y4 – 1

= (5x2y2)2 – (1)2

= (5x2y2 – 1) (5x2y2 + 1)

39.

Factorize the following expressions:9 (a – b)2 – 100 (x – y)2

Answer»

We have,

9 (a – b)2 – 100 (x – y)2

= [3 (a – b)]2 – [10 (x – y)]

= [3 (a – b) + 10 (x + y)] [3 (a – b) – 10 (x – y)] [3a – 3b + 10x – 10y] [3a – 3b – 10x + 10y]

40.

Factorize the following expressions: (x – 4y)2 – 625

Answer»

We have,

(x – 4y)2 – 625

= (x – 4y)2 – (25)2

= (x – 4y + 25) (x – 4y – 25)

41.

The reciprocal of (2/5)-1 is:(a) 2/5 (b) 5/2 (c) –5/2 (d) –2/5

Answer»

(b) 5/2

Explanation: By the law of exponent we know: a-n = 1/an.

Hence, (2/5)-1

= 1/(2/5)

= 5/2

42.

Which of the following is not the reciprocal of (2/3)4?(a) (3/2)4 (b) (3/2)-4 (c) (2/3)-4 (d) 34/24

Answer»

(b) (3/2)-4

Explanation: 

(2/3)4 

= 1/(2/3)-4 

= (3/2) -4

43.

Cube of -1/2 = …………….. A) 1/8B) -1/8C) 8D) -2

Answer»

Correct option is (B) -1/8

\((\frac{-1}{2})^3\) \(=\frac{(-1)^3}{2^3}\) \(=\frac{-1}{8}\)

Correct option is  B) -1/8

44.

Cube of -1/2 is(a) 1/8 (b) 1/16 (c) -1/8 (d) -1/16

Answer»

(c) -1/8

Explanation: 

Cube of -1/2 

= (-1/2)3

= (-1/2) × (-1/2) × (-1/2) 

= -1/8

45.

For a non-zero rational number x, x8 ÷ x2 is equal to(a) x4 (b) x6 (c) x10 (d) x16

Answer»

(b) x6

For any non-zero integers ‘a’ and ‘b’ and whole numbers m and n,

am ÷ an = am–n , m>n

so, x8 ÷ x2

= x8/x2

= x8 – 2

= x6

46.

Find the product of the cube of (–2) and the square of (+4).

Answer»

Cube of -2 = (-2)3 = -(2)3

And square of +4 = 42

∴ The product of the cube of (–2) and the square of (+4)

= -(2)3 × 42= -8 × 16 = -128

∴ The product of the cube of (–2) and the square of (+4) is -128.

47.

x is a non-zero rational number. Product of the square of x with the cube of x is equal to the(a) second power of x (b) third power of x(c) fifth power of x (d) sixth power of x

Answer»

(c) fifth power of x

From the question, it is given that,

The square of x = x2

The cube of x = x3

As per the condition given the question, x2 × x3

For any non-zero integers ‘a’ and ‘b’ and whole numbers m and n,

am × an = am+n

x2 × x3 = x2+3

x5

Therefore, fifth power of x.

48.

Square of (-2/3) is(a) -2/3 (b) 2/3 (c) -4/9 (d) 4/9

Answer»

(d) 4/9

Square of (-2/3) is = -22/32

= (-2 × -2)/(3 × 3)

= 4/9

49.

In standard form, the number 72105.4 is written as 7.21054 × 10n where n is equal to(a) 2 (b) 3 (c) 4 (d) 5

Answer»

(c) 4

Any number can be expressed as a decimal number between 1.0 and 10.0 (including 1.0) multiplied by a power of 10. Such form of a number is called its standard form or scientific notation.

72105.4 is written as 7.21054 × 104

50.

In standard form, the number 829030000 is written as K × 108 where K is equal to (a) 82903 (b) 829.03 (c) 82.903 (d) 8.2903

Answer»

(d) 8.2903

Any number can be expressed as a decimal number between 1.0 and 10.0 (including 1.0) multiplied by a power of 10. Such form of a number is called its standard form or scientific notation.

829030000 is written as 8.2903 × 108