NPTEL Problem Solving Through Programming In C Week 5 Assignment Answers 2025

NPTEL Problem Solving Through Programming In C Week 5 Assignment Answers 2025

1. In C language three way transfer of control is possible using

a) Ternary operator
b) Unary operator
c) Logical operator
d) None of the above are true

Answer :- For Answers Click Here 

2. The loop in which the statements within the loop are executed at least once is called

a) for
b) do-while
c) while
d) goto

Answer :- 

3.

a) Error
b) I love C — will be printed 6 times
c) I love C — will be printed 3 times
d) I love C –will be printed 5 times

Answer :- 

4.

a) ‘while vs do-while’ once
b) ‘Out of loop’ infinite times
c) Both ‘while vs do-while’ and ‘Out of loop’ once
d) ‘while vs do-while’ infinite times

Answer :- 

5.

a) 0
b) 1
c) No output
d) Compiler error

Answer :- 

6.

a) 5
b) 4
c) 1
d) No output

Answer :- For Answers Click Here 

7.

a) Syntax error
b) 0 1 2 3 4 5 6 7 8 9 10
c) 1 2 3 4 5 6 7 8 9 10
d) 0 1 2 3 4 5 6 7 8 9

Answer :- 

8.

a) True
b) False
c) Both ‘True’ and ‘False’
d) Compilation error

Answer :- 

9.

a) 5,4
b) 7,4
c) 5,6
d) 6,4

Answer :- 

10.

a) 10
b) 11
c) 12
d) 13

Answer :- For Answers Click Here 
Scroll to Top