11th (ਕੰਪਿਊਟਰ ਸਾਇੰਸ/Computer Science) - 2026-27

ਪਾਠ-6/Chapter-6
Control Flow Part-2/Control Flow Part-2





Q-1.
while ਲੂਪ (while loop) ਨੂੰ ਘੱਟ ਤੋਂ ਘੱਟ .................... ਵਾਰ ਲਾਗੂ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ।
while loop can be applied at least .................... at least.
Q-1. Objective  

1) /1
2) /2
3) /3
4) /4

Ans.) /1

Q-2.
do-while ਸਟੇਟਮੈਂਟ (do while statement) ਦਾ ਆਮ ਰੂਪ ਹੈ ..................... ?
The do-while statement is a general form of .....................?
Q-2. Objective  

1) /while statement (expression);
2) /do statement while (expression);
3) /Both A & B
4) /None of These

Ans.) /do statement while (expression);

Q-3.
Do while loop ਨੂੰ ...................... ਵੀ ਕਿਹਾ ਜਾਂਦਾ ਹੈ ?
The do while loop is also called ......................
Q-3. Objective  

1) /post test loop
2) /pre test loop
3) /Both A & B
4) /None of These

Ans.) /post test loop

Q-4.
while do loop ਵਿਚ expression ਪਹਿਲਾ ਚਲਦਾ ਹੈ।
The expression in the while do loop runs first.
Q-1. True/False  

1) ਸਹੀ /True
2) ਗ਼ਲਤ/False

Ans.) ਸਹੀ /True

Q-5.
do while loop ਵਿਚ block statement ਪਹਿਲਾ ਚਲਦਾ ਹੈ।
The block statement is first executed in the do while loop.
Q-2. True/False  

1) ਸਹੀ /True
2) ਗ਼ਲਤ/False

Ans.) ਸਹੀ /True

Q-6.
ਕਿ while (i=20) {.....} ਸਟੇਟਮੈਂਟ infinite loop ਵਿਚ ਪਰਵਰਤਿਤ ਹੋ ਜਾਏਗੀ ?
Will the (i = 20) {.....} statement be converted to an infinite loop?
Q-3. True/False  

1) ਸਹੀ /True
2) ਗ਼ਲਤ/False

Ans.) ਸਹੀ /True