1.A variable declared in a function can be used in main().
A. True
B. False
C. True if it is declared static
D. None of the mentioned
2.What is the precedence of arithmetic operators (from highest to lowest)?
A. %, *, /, +, –
B. %, +, /, *, –
C. +, -, %, *, /
D. %, +, -, *, /
3.Which of the following is not an arithmetic operation?
A. a * = 10;
B. a / = 10;
C. a ! = 10;
D. a % = 10;
4.Which among the following are the fundamental arithmetic operators, i.e, performing the desired operation canbe done using that operator only?
A. +, –
B. +, -, %
C. +, -, *, /
D. +, -, *, /, %
5.Are logical operator sequence points?
A. True
B. False
C. Depends on the compiler
D. Depends on the standard
1.A variable declared in a function can be used in main().
ans: B.) False
2.What is the precedence of arithmetic operators (from highest to lowest)?
ans: A.) %, *, /, +, –
3.Which of the following is not an arithmetic operation?
ans: C.) a ! = 10;
4.Which among the following are the fundamental arithmetic operators, i.e, performing the desired operation canbe done using that operator only?
ans: A.) +, –
5.Are logical operator sequence points?
ans: A.) True