PROBLEM SOLVING THROUGH PROGRAMMING IN C.
By Prof. ANUPAM BASU
ASSIGNMENT 3
QUIZ:
--------------------------------------------------------------------------------------------------------------------------
1.The precedence order (from highest to lowest) of arithmetic operators is
a) %, *, /, +, –
b) %, +, /, *, –
c) +, -, %, *, /
d) %, +, -, *, /
2.Which of the following are incorrect statements?
1) if(a==7) printf("IncludeHelp");
2) if(7==a) printf("IncludeHelp");
3) if(a=7) printf("IncludeHelp");
4) if(7=a) printf("IncludeHelp");
a) 1 and 2.
b) 3 only.
c) 4 only.
d) 2,3 and 4.
3.
a) Programming on C 0
b) NPTEL 0
c) NPTEL 3
d) Compilation error
4.
a) -18
b) 38
c) 24
d) -32
5.
a) 10
b) 11
c) 20
d) Compiler error
6.
Ans: 5
7.
a) true
b) false
c) Compiler dependent
d) Compiler error
8.
a) true
b) false
c) Syntax Error
d) Compilation Error
9.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
10.
a) Kolkata
b) Delhi
c) Bangalore
d) Compiler error
Week-3 :Program-01 Answers And Program-02
CLICK ON BELOW LINK.<<CLICK HERE FOR WEEK 3 :PROGRAM -01>>
<<CLICK HERE FOR WEEK 3 :PROGRAM-02>>
FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.
Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100% correct solutions.
No comments:
Post a Comment
If you have any problems related to solutions or any concept please let me know.