--:--









Quiz for Type casting & type conversion

Course: C Language | Subject: Unit 2 | Topic: Operators and Expressions



Logo

Q1: What is type casting in C?

Logo

Q2: Which of the following is an example of explicit type casting?

Logo

Q3: What is type conversion in C?

Logo

Q4: Implicit type conversion is also known as?

Logo

Q5: Which type is given higher priority during type conversion?

Logo

Q6: What will be the result of (int)3.9?

Logo

Q7: Which conversion happens when int is assigned to float?

Logo

Q8: When a float is assigned to an int, what happens?

Logo

Q9: Which operator is used for type casting in C?

Logo

Q10: What will (char)65 output?

Logo

Q11: Which type conversion has higher precedence?

Logo

Q12: What is the output of (float)5/2?

Logo

Q13: Which conversion might cause data loss?

Logo

Q14: Converting double to int will?

Logo

Q15: Which is safer to avoid precision loss?

Logo

Q16: Which is an example of narrowing conversion?

Logo

Q17: What does (double)5/2 give?

Logo

Q18: Which happens when char is assigned to int?

Logo

Q19: Why use type casting in C?

Logo

Q20: Which is an example of implicit type conversion?

Are you ready to start test? Set your time limit