Quiz Assignment 2:
1)Which of the following statement is correct?
a) System software is dependent on application software
b) Application software is dependent on system software
c) Both are independent of each other
d) None of the above.
2)Syntax error occurs when
a) The rules of grammar of the language is violated
b) The statements in the program have no meaning
c) The program gives wrong or undesired output
d) Some illegal operation (e.g. divide by zero) is done
3)The execution of any C program is
a) Sequential
b) Parallel
c) Multi-threading
d) None of these
4)We use the concept of function for the following reason
a) To use divide and conquer strategy
b) For code reusability
c) Enhances the logical clarity of the program
d) All of the above.
5)Which of the following data type will throw an error on modulus operation (%)?
a) int
b) float
c) long int
d) None of the above
6)
a) 5
b) 0
c) 101
d) Compilation Error
7)
a) 1
b) 1.6
c) 0
d) Compilation error
8)Which of the following variable is not allowed in C?
a) $abc_123
b) _abc$123
c) $abc&123
d) _abc_123
9)
a) 45
b) 54
c) 54.45
d) Compilation error
10)
a) 1
b) 1.250000
c) 0
d) Compilation error
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.