Go Back

C++ - Sample Interview Question (Junior Level)

What is true regarding the following code snippet?

if (ComplicatedFunctionCall() || AnotherComplicatedFunctionCall())
{
// do stuff
}

Assume that the operator || is not overloaded
  1. The function AnotherComplicatedFunctionCall() will be executed even if the function ComplicatedFunctionCall() will return true
  2. The function AnotherComplicatedFunctionCall() will be executed only if the function ComplicatedFunctionCall() will return false
  3. The function ComplicatedFunctionCall() will be executed only if the function AnotherComplicatedFunctionCall() will return true
  4. None of the above
Tests in C++ for Juniors

Test Name Difficulty Time (minutes) No. of Questions
C++ Junior 60 30

More Specific Tests in C++ for Juniors

Test Name Difficulty Time (Minutes) No. of Questions
C++ - Basics Junior 20 10
C++ - Compound Data Types Junior 20 10
C++ - Algorithms Junior 20 10
C++ - STL Junior 20 10
C++ - Object Oriented Programming Junior 20 10