Following Casts Used Widening Conversion Functional Cast B C Style Cast C Staticcast D Dy Q26470025

A. Which of the following casts should be used when doing a widening conversion? a) Functional cast b)C style cast c) Static_cast<>() d) Dynamic_cast<>() e) Reinterpret cast<>() f) Const cast<>() g) None of the above B. Given the following C++ defintions: int x(42); int y: which of the following statements are valid C++ syntax? d) y = x = 42; C. The- operator is used for which of the following: a) Testing for equality b) Assignment c) Initialization d) Comparison D. Which of the following has the highest precedence (happens first) E. const char c = 11 + 2; What is the value of c? (1) 3 (2) 3 (4) c (5) 12 (6)112 F. Which expression returns zero if the value of i is even? (1)V2 (2) i*2 (3)i%2 (4) (2*)/2 (5) None of the above. G. int i)i- - +i; What is the value of i?

A. Which of the following casts should be used when doing a widening conversion? a) Functional cast b)’C’ style cast c) Static_cast() d) Dynamic_cast() e) Reinterpret cast() f) Const cast() g) None of the above B. Given the following C++ defintions: “int x(42); int y:” which of the following statements are valid C++ syntax? d) y = x = 42; C. The”-” operator is used for which of the following: a) Testing for equality b) Assignment c) Initialization d) Comparison D. Which of the following has the highest precedence (happens first) E. const char c = 11 + 2; What is the value of c? (1) ‘3’ (2) 3 (4) ‘c’ (5) 12 (6)112 F. Which expression returns zero if the value of i is even? (1)V2 (2) i*2 (3)i%2 (4) (2*)/2 (5) None of the above. G. int i)i- – +i; What is the value of i? Show transcribed image text