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

admin
By admin

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.

W03Q03

a) -1
b) 1
c) 0
d) Compilation error

Answer :- 

4.

W03Q04

a) -42
b) 24
c) 15
d) -34

Answer :- 

5.

W03Q05

a) 0
b) 3
c) 4
d) Compilation error

Answer :- For Answers Click Here

6.

W03Q06

a) Both are true
b) At least one is false
c) Compilation error
d) None of the above

Answer :- 

7.

W03Q07

a) x is 5
b) x is not 5
c) Compilation error
d) None of the above

Answer :- For Answers Click Here

8.

W03Q08

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.

W03Q10

a) 0
b) 1
c) 7
d) Compilation error

Answer :- For Answers Click Here
Share This Article
Leave a comment