--:--









Quiz for Inline functions

Course: C++ Language | Subject: Unit 3 | Topic: Functions and Function Overloading



Logo

Q1: What is an inline function in C++?

Logo

Q2: How do you declare a function as inline?

Logo

Q3: Which is a key advantage of inline functions?

Logo

Q4: What happens if the inline function is too large?

Logo

Q5: Are inline functions allowed to be recursive?

Logo

Q6: Can inline functions be defined inside a class?

Logo

Q7: Which of these is true about inline functions?

Logo

Q8: Can inline functions have multiple definitions in different files?

Logo

Q9: What is the relationship between inline functions and macros?

Logo

Q10: Which is NOT true about inline functions?

Logo

Q11: How are inline functions typically defined in multi-file programs?

Logo

Q12: Can inline functions have static variables inside?

Logo

Q13: Does using inline functions affect debugging?

Logo

Q14: What is the default linkage of an inline function?

Logo

Q15: Which of the following should NOT be inline?

Logo

Q16: Can virtual functions be inline?

Logo

Q17: How does inline affect recursive function calls?

Logo

Q18: Why prefer inline functions over macros?

Logo

Q19: What happens if inline keyword is omitted?

Logo

Q20: Which compiler directive can force inline?

Are you ready to start test? Set your time limit