Related Questions
What is the correct answer?
4
the value *(&i) is same as printing the value of address of i.
What is the correct answer?
4
C is a ___ language
A. High Level and Procedural
C. Middle Level and Procedural
D. Machine Level and OOPS
What is the correct answer?
4
A multidimensional array A[10][9] can store-------- number of elements
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
Which of the following is not true about preprocessor directives
A. They begin with a hash symbol
B. They are processed by a preprocessor
C. They form an integral part of the code
D. They have to end with a semi colon
What is the correct answer?
4
The expression "int i = j = k = 0;" is invalid.
What is the correct answer?
4
A continue statement causes execution to skip to
A. the return 0; statement
B. the first statement after the loop
C. the statement following the continue statement
D. the next iteration of the loop
What is the correct answer?
4
It is necessary to initialize the array at the time of declaration.
What is the correct answer?
4
All macro substitutions in a program are done before compilation of the program.
What is the correct answer?
4
Expression 4**3 evaluates to 64.
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
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
= and = = have the same operation.
What is the correct answer?
4
What is the right way to access value of structure variable book{ price, page }?
A. printf("%d%d", book.price, book.page);
B. printf("%d%d", price.book, page.book);
C. printf("%d%d"< price::book< page::book);
D. printf("%d%d", price>book, page>book);
What is the correct answer?
4
Which of the following is not a preprocessor directive
What is the correct answer?
4
# define PI = 8;' is the correct declaration of macros.
What is the correct answer?
4
Only one break can be used in one loop.
What is the correct answer?
4
The size of signed integer is ------ bytes.
What is the correct answer?
4
A recursive function calls itself again and again.
What is the correct answer?
4
printf("%d", sizeof('2')); will print 2.
What is the correct answer?
4
The output of the following code is:
#define sqr(x= x*x)
main()
{
int a = 10, b = 5;
printf("%d, %d", sqr(a+b),sqr(++a));
}
What is the correct answer?
4
Which one of the following is not a valid reserved keyword in C++
What is the correct answer?
4
The printf() function retunes which value when an error occurs?
What is the correct answer?
4
Which of the following is not an infinite loop
A. int i =1;
while (1)
{i++;}
C. int true=0< false;
while (true)
{false = 1;}
D. int y, x = 0;
do
{y = x;}
while (x==0);
What is the correct answer?
4
Right shifting an operand 1bit is equivalent to multiplying it by 2.
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? (x = 4 && y = 5) ? (a = 5) ; (b = 6);
A. the question mark should be an equal sign
B. the first semicolon should be a colon
C. there are too many variables in the statement
D. the conditional operator is only used with apstrings
What is the correct answer?
4
Which of the following keyword supports dynamic method resolution?
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
printf() is not a library function.