## NPTEL Problem Solving Through Programming in C Week 3 Assignment Answers 2024

1. The precedence of arithmetic operators is (from highest to lowest)

a) %, *, /, +, –

b) %, +, /, *, –

c) +, -, %, *, /

d) %, +, -, *, /

Answer :-For Answers Click Here

2. Which of the following is a logical operator in C?

a) &&

b) ==

c) =

d) +=

Answer :-For Answers Click Here

3.

a) -1

b) 1

c) 0

d) Compilation error

Answer :-

4.

a) -42

b) 24

c) 15

d) -34

Answer :-

5.

a) 0

b) 3

c) 4

d) Compilation error

Answer :-For Answers Click Here

6.

a) Both are true

b) At least one is false

c) Compilation error

d) None of the above

Answer :-

7.

a) x is 5

b) x is not 5

c) Compilation error

d) None of the above

Answer :-For Answers Click Here

8.

a) b is positive

b) b is non-positive

c) a is greater than b

d) b is positive

a is greater than b

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