Related Questions
What is the correct answer?
4
If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const member function)?
What is the correct answer?
4
The output of the following code is:
void main()
{
int a;
int &b = a;
a=100;
printf("b=%d\ta=%d
", b,a);
}
What is the correct answer?
4
The contents of a file opened in 'r+' mode cannot be changed.
What is the correct answer?
4
Which among the following is a unconditional control structure
What is the correct answer?
4
p++ executes faster than p + 1.
What is the correct answer?
4
unsigned' is a valid variable name.
What is the correct answer?
4
What's wrong? for (int k = 2, k <=12, k++)
A. the increment should always be ++k
B. the variable must always be the letter i when using a for loop
C. there should be a semicolon at the end of the statement
D. the commas should be semicolons
What is the correct answer?
4
Right shifting an operand 1bit is equivalent to multiplying it by 2.
What is the correct answer?
4
The main() function can call itself recursively.
What is the correct answer?
4
&& and & operators have the same meaning.
What is the correct answer?
4
The output of the following code is:
main()
{
int a = 0;
for (; i = 0; i++)
printf("%d", a);
}
B. Nothing will be displayed
What is the correct answer?
4
continue statement is used
A. to go to the next iteration in a loop
C. exit and return to the main function
D. restarts iterations from beginning of loop
What is the correct answer?
4
Which one of the following is not a fundamental data type in C++
What is the correct answer?
4
Structures within structures cannot be created.
What is the correct answer?
4
The same variable names of automatic type can be used in different functions without any conflict.
What is the correct answer?
4
Which of the following language is predecessor to C Programming Language?
What is the correct answer?
4
The expression (i + j)++ is illegal.
What is the correct answer?
4
The-------------------- statement helps immediate exit from any part of the loop
What is the correct answer?
4
A C variable cannot start with
C. A special symbol other than underscore
What is the correct answer?
4
Which of the following is not a standard exception built in C++.
What is the correct answer?
4
What's wrong? while( (i < 10) && (i > 24))
A. the logical operator && cannot be used in a test condition
B. the while loop is an exit-condition loop
C. the test condition is always true
D. the test condition is always false
What is the correct answer?
4
Expression 4**3 evaluates to 64.
What is the correct answer?
4
The printf() function retunes which value when an error occurs?
What is the correct answer?
4
The output of the following code is:
void main()
{
int a = 20;
printf("%d\t%d
", ++a, a);
}
What is the correct answer?
4
Which of the following expressions is wrong
What is the correct answer?
4
The output of the following code is:
main()
{
xyz: goto abc;
printf("Hello");
abc: printf("World");
goto xyz;
}
What is the correct answer?
4
Only one break can be used in one loop.
What is the correct answer?
4
What will be output if you will compile and execute the following c code?
#include
int main(){
char c=125;
c=c+10;
printf("%d",c);
return 0;
}
What is the correct answer?
4
The expression "b = 3 ^ 2;" will evaluate b = 9.
What is the correct answer?
4
Left shift operator rotates the bits on the left and places them to the right.