NPTEL Problem Solving Through Programming In C Week 3 Assignment Answers 2025
1. The precedence of arithmetic operators is (from highest to lowest)
a) %, *, /, +, –
b) %, +, /, *, –
c) +, -, %, *, /
d) %, +, -, *, /
Answer :- For Answers Click Here
2.
a) -1
b) 1
c) 0
d) Compilation error
Answer :-
3.
a) -42
b) 24
c) 15
d) -34
Answer :-
4.
a) 0
b) 3
c) 4
d) Compilation error
Answer :-
5.
a) TRUE
b) FALSE
c) Syntax Error
d) Compilation Error
Answer :- For Answers Click Here
6.
a) IITKGP
b) IITD and IITM
c) IITKGP and IITM
d) IITM
Answer :-
7.
a) TRUE
b) FALSE
c) Compilation Error
d) Compiler Dependent
Answer :-
8. Which of the following statement is correct?
a) Operator precedence determines which operator is performed first in an expression with more than one operator with different precedence.
Associativity is used when two operators of same precedence appear in an expression
b) Operator associativity determines which operator is performed first in an expression with more than one operator with different associativity.
Precedence is used when two operators of same precedence appear in an expression
c) Operator precedence and associativity are same.
d) None of the above
Answer :-
9. Which of the following method are accepted for assignment?
a) 8=x=y=z
b) x=8=y=z
c) x=y=z=8
d) None
Answer :-
10.
a. 0
b. 1
c. 7
d. Compilation error
Answer :- For Answers Click Here