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.

Give the meaning of flow chart.

Answer»

A Flow Chart is a pictorial representation of an algorithm that uses symbols to denote different types of instructions. The actual instructions are written with in the boxes using clean and concise statements.

2.

What are mini computers?

Answer»

Mini computer is comparatively small in size and less cost. The memory and speed is medium.

3.

Give the meaning of micro computers.

Answer»

It is a type of computer. It is very small in size. The memory power and speed of computer is limited.

4.

What do you mean by super computers?

Answer»

It is a type of computer. It is large in size and their storage capacity is also very large. They work with a super speed.

5.

State any two types of computers.

Answer»

The types of computer are: 

1. Super Computer 

2. Main Frame Computer 

3. Mini Computer 

4. Micro Computer.

6.

What do you mean by mainframe computers?

Answer»

A large computer called main frame computer. Its components are fitted in large frame.

7.

Give the Syntax for If else if else statements in php?

Answer»

if (1st condition)

{

Execute statement(s) if condition is true;

}

elseif(2nd condition)

{

Execute statement(s) if 2nd condition is true; 

}

else

{

Execute statement(s) if both conditions are false;

}

8.

The block of statements have to be enclosed with(a) ( ) (b) <> (c) [ ] (d) { }

Answer»

The block of statements have to be enclosed with {}

9.

Which of the following can check for multiple values at a time?(a) If(b) If else (c) Nested else(d) Switch

Answer»

Switch can check for multiple values at a time.

10.

If statements have to be given in ……(a) ( ) (b) <> (c) [ ] (d) { }

Answer»

If statements have to be given in ()

11.

The if statement contains ….. expressions.(a) arithmetic(b) logical(c) boolean(d) Terriary

Answer»

The if statement contains boolean expressions

12.

Compare if and if else statement?

Answer»

If:

If statement executes a statement or a group of statements if a specific condition is satisfied as per the user expectation. When the condition fails, nothing happens.

If else: 

If statement executes a statement or a group of statements if a specific condition is satisfied by the user expectation. When the condition gets false (fail) the else block is executed.

13.

Usage of Switch Statement in PHP?

Answer»

1. The switch statement is used to perform different actions based on different conditions. 

2. Switch statements work the same as if statementsbut they can check for multiple values at a time.

14.

Write Syntax of the If else statement in PHP?

Answer»

if (condition)

{

Execute statement(s) if condition is true;

}

else

{

Execute statement(s) if condition is false;

}

15.

Define if…elseif….else Statement in PHP?

Answer»

1. If-elseif-else statement is a combination of ifelse statement.

2. More than one statement can execute the condition based on user needs.

16.

What is if else statement in PHP?

Answer»

If else statement in PHP:

1. If statement executes a statement or a group of statements if a specific condition is satisfied by the user expectation.

2. When the condition gets false (fail) the else block is executed.

Syntax:

if (condition)

{

Execute statement(s) if condition is true;

}

else

{

Execute statement(s) if condition is false;

}

17.

What will be the output of the following PHP code?<?php$x;if ($x) print “hi”;elseprint “how are u”;?>(a) how are u (b) hi (c) error (d) no output

Answer»

Correct Answer is: (c) error

18.

What will be the output of the following PHP code?<?php$x;if($x = 0)print "hi";elseprint "how are u";print "hello"?>(a) how are uhello (b) hihello (c) hi (d) no output

Answer»

(d) no output

19.

What will be the output of the following PHP code?<?php$a = “”;if ($a)print “all”;ifelseprint “some”;?>(a) all (b) some (c) error (d) no output

Answer»

Correct Answer is: (c) error

20.

What will be the output of the following PHP code?<?php$a = “”;if ($a)print “all”;ifelseprint “some”;?>(a) all (b) some (c) error(d) no output

Answer»

Correct Answer is: (c) error

21.

Define if statement in PHP?

Answer»

If statement executes a statement or a group of statements if a specific condition is satisfied as per the user expectation.

Syntax: if (condition)

{

Execute statement(s) if condition is true;

}

22.

What will be the output of the following PHP code?<?php$x = 10;$y = 20;if($x>$y&&1||1)print “hi” ;elseprint “how are u”;?>(a) how are u (b) hi (c) error (d) no output

Answer»

Output

(i) (b) hi

(ii) (b) hi

23.

What will be the output of the following PHP code? <?php$x = 10;$y = 20;if($x>$y+$y! = 3)print “hi”;elseprint “how are u”;?>(a) how are u(b) hi (c) error (d) no output

Answer»

Output

(b) hi

24.

What will be the output of the following PHP code?<?php$x = 0if ($x + +)Print "hi";elseprint "hi";elseprint "how are u";?>(a) hi (b) no output (c) error (d) how are u

Answer»

(d) how are u

25.

Statement which is used to make choice between two options and only option is to be performed is written as(a) if statement(b) if else statement(c) then else statement(d) else one statement

Answer»

(b) if else statement

26.

Statement which is used to make choice between two options and only option is to be performed is written as (a) if statement (b) if else statement (c) then else statement (d) else one statement

Answer»

(b) if else statement

27.

What will be the output of the following PHP code?<?php$x;if($x) print "hi";elseprint "how are u";?>(a) how are u(b) hi (c) error (d) no output

Answer»

Answer is (c) error

28.

What will be the output of the following PHP code?<?php$a = "";if($a)print "all";ifelseprint "some";?>(a) all (b) some (c) error(d) no output

Answer»

Answer is (c) error

29.

List out Conditional Statements in PHP?

Answer»

if Statement

1. if…else Statement 

2. if…elseif….else Statement 

3. switch Statement

30.

Define Conditional Statements in PHP?

Answer»

Conditional statements are useful for writing decision making logics. It is most important feature of many programming languages, including PHP.

They are implemented by the following types:

1. if Statement 

2. if…else Statement

3. if…elseif….else Statement

4. switch Statement

31.

Discuss in detail about Switch statement with an example?

Answer»

Switch Case:

1. The switch statement is used to perform different actions based on different conditions.

2. Switch statement tests only for equality.

3. More case values can be given.

4. When all the case values are not matched, then default will be executed.

Syntax:

switch (n) {

case label 1:

code to be executed if n=labe11;

break;

case labe12:

code to be executed if n=labe12;

break;

case labe13:

code to be executed if n=labe13;

break;

…….

default:

code to be executed if n is different from all labels;

}

32.

Write Short notes on Switch statement?

Answer»

1. The switch statement is used to perform different actions based on different conditions. 

2. It tests for equality only. – 

3. It uses default value, when all the case values are not matched.

4. It can have multiple ease values.

33.

Explain the process Conditional Statements in PHP? PHP Conditional statements:

Answer»

Conditional statements are useful for writing decision making logics. It is most important feature of many programming languages, including PHP.

They are implemented by the following types:

(i) if Statement:

If statement executes a statement or a group of statements if a specific condition is satisfied as per the user expectation.

(ii) if…else Statement:

If statement executes a statement or a group of statements if a specific condition is satisfied by the user expectation. When the condition gets false (fail) the else block is executed.

(iii) if…elseif….else Statement:

If-elseif-else statement is a combination of if-else statement. More than one statement can execute the condition based on user needs.

(iv) Switch Case:

The switch statement is used to perform different actions based on different conditions based on different conditions.

34.

Explain Function Conditional Statements in PHP?

Answer»

Function Conditional Statements:

1. Function conditional statement is the function specified inside the conditional statements.

2. We can’t call conditional function before its definition.

Syntax:

if(expression)

{

function function_name( )

{

block of statements;

}

}

function_name( ); // calling function.

Eg:

<?php

display();

If(TRUE)

{

function display( )

{

echo “condition and function”;

}

}

Output: condition and function

35.

Differentiate if statement and if elseif else statement?

Answer»

if elseif else statement:

1. If-elseif-else statement is a combination of ifelse statement.

2. More than one statement can execute the condition based on user needs.

3. If the condition is false more alternatives are there.

36.

Differentiate Switch and if else statement?

Answer»

Switch:

1. Switch statement uses single expression for multiple choices.

2. If all the cases are not matched default will be executed.

3. It test only for equality.

4. It evaluates only for character or integer

If-else: 

1. If else statement uses multiple statement for multiple choices.

2. Nothing happens.

3. It tests for equality as well as for logical ‘ expressions.

4. any data type is allowed.

37.

Write the purpose of if elseif else statement?

Answer»

1. If statement executes a statement or a group of statements if a specific condition is satisfied by the user expectation. When the condition gets false (fail) the else block is executed.

2. If-elseif-else is a combination of if-else statement.

3. More than one statement can execute the condition based on user needs.

4. User can select from many choices.

38.

How many types of php conditional statements are there?(a) 2(b) 3(c) 4(d) 5

Answer»

There are 4 types of php conditional statements

39.

Write the features Conditional Statements in PHP?

Answer»

PHP Conditional statements:

1. Conditional statements are useful for writing decision making logics.

2. It is most important feature of many programming languages, including PHP.

3. They are implemented by the following types:

4. if Statement 

5. if…else Statement

6. if…elseif….else Statement

7. switch Statement

40.

The ……… block will be executed if it is not matched with any of the case values in switch.

Answer»

The default block will be executed if it is not matched with any of the case values in switch.

41.

The …….. statement is used to perform different actions based on different conditions.

Answer»

The switch statement is used to perform different actions based on different conditions.

42.

When the condition in If-else block fails then ………. block will be executed?(a) if(b) else(c) Nested if(d) while

Answer»

Answer is (b) else

43.

Explain if else statement in PHP?

Answer»

If else statement in PHP:

If statement executes a statement or a group of statements if a specific condition is satisfied by the user expectation. When the condition gets false (fail) the else block is executed.

Syntax:

if (condition)

{

Execute statement(s) if condition is true;

}

else

{

Execute statement(s) if condition is false;

}

Example:

<?php

$pass_Mark = 35;

$Student_Mark = 70;

if($Student_Mark>=$Pass_Mark)

{

echo “The Student is eligible for the promotion”;

}

else 

{

echo “The Student is not eligible for the promotion”;

}

?>

44.

Explain concepts of if elseif else statement?

Answer»

If elseif else statement in PHP:

If-elseif-else statement is a combination of if-else statement. More than one statement can execute the condition based on user needs. 

Syntax:

if (1st condition)

{

Execute statement(s) if condition is true;

}

elseif(2nd condition)

{

Execute statement(s) if 2nd condition is true;

}

else

{

Execute statement(s) if both conditions are false;

}

Example:

<?php

$pass_Mark = 35;

$frist_class=60;

$Student_Mark=70;

if($Student_Mark>=$frist_class)

{

echo" The Student is eligible for the promotion with with Frist Class";

elseif($Student_Mark>=$pass_Mark)

{

echo "The Student is eligible for the promotion";

}

else

{

echo “The Student is not eligible for the promotion”;

}?>

45.

Write Syntax of Switch statement?

Answer»

switch (n)

{

case label 1:

code to be executed if n=label 1; break; case label2:

code to be executed if n=label2; break; case label3:

code to be executed if n=label3; break; 

default:

code to be executed if n is different from all labels;

46.

Define osmotic pressure. Prove that osmotic pressure is a molecular property.

Answer»

Osmotic pressure:- The excess pressure is exerted on the surface of solution to just prevent osmosis is called osmotic pressure. It depends upon the molal concentration. Hence it is a colligative property.

According to Van't Hoff π ∝ C (at constant temp.) and π ∝ T (At constant Concentration)

Both laws are combined, we have

π ∝ CT and c = n/v; π = RCT; π = n/v RT

or, πv = nRT or, π = W/M RT

Where M = molecular weight and R = Gas constant.

47.

Frogs respires through A) Lungs B) Skin C) Tracheae D) Both A &amp; B

Answer»

The correct answer is D) Both A & B.

48.

What are the characteristics of wind pollinated flowers?

Answer»

Pollination by wind is called Anemophilous. It happens in coconut palm, date palm, maize, grasses etc. Their some characters are as such:

(i) Flowers are inconspicuous and not showy.

(ii) They are colourless and odourless.

(iii) Produce large quantities of dusty pollens.

(iv) Flowers grow in large groups.

(v) stigmas are stickly, hairy, feathery or branched.

49.

Name any two national parks of India.

Answer»

Jim Corbett National Park (Uttarakhand) and Kaziranga National Park (Assam).

50.

This gas turns lime water into milky white A) Oxygen B) Hydrogen C) Carbon dioxide D) Nitrogen

Answer»

The correct answer is C) Carbon dioxide.