Punjab 10th Class Computer Science Chapter 4 Conditional Control Structure Mcqs Test Online
Questions 8
Total Marks 16
Time 8 Mins

Punjab 10th Class Computer Science Chapter 4 Conditional Control Structure Mcqs Test Online

Computer Science Chapter 4 Conditional Control Structure Mcqs Test Online Punjab Board 10th Class

 

Question 1 of 8

Computer Science

1. Which statement is suitable to use in a situation where there are only two choices based on a condition?
1.
2.
3.
4.

Question 1 of 8

Question 2 of 8

2. Which statement can be used in place of conditional operator?
1.
2.
3.
4.

Question 2 of 8

Question 3 of 8

3. What will be printed when the following code is executed?
x=1;
switch(x)
{ case 1:
case 2:
case 3:
printf(“\n x is a positive number”);
break;
default
printf(“\n value of x is 1”);
1.
2.
3.
4.

Question 3 of 8

Question 4 of 8

4. For which purpose if structure is used in programming?
1.
2.
3.
4.

Question 4 of 8

Question 5 of 8

5. Which statement can be used in place of switch statement?
1.
2.
3.
4.

Question 5 of 8

Question 6 of 8

6. Which of the following is a multiple selection statement?
1.
2.
3.
4.

Question 6 of 8

Question 7 of 8

7. Which of the selection structures tests only for equality?
1.
2.
3.
4.

Question 7 of 8

Question 8 of 8

8. Which statement is used to exit from the body of switch statement?
1.
2.
3.
4.

Question 8 of 8


 

Prepare Subjective:
Read Short Questions
Test By Class
Test By Subject

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button