Related Questions
What is the correct answer?
4
gets() and puts() are unformatted I/O functions.
What is the correct answer?
4
The statement "for (i = 0, j = 2; j <= 10; j++)" is a valid statement in 'C'.
What is the correct answer?
4
Only one break can be used in one loop.
What is the correct answer?
4
Which of the following is not recommended in a header file?
A. Type definitions (typedefs)
What is the correct answer?
4
The output of the following code is:
void main()
{
int a = 0;
while (a<=50) for(;;) if(++a % 50==0) break;
printf("a = %d", a);
}
What is the correct answer?
4
fprintf()function can be used to write into console.
What is the correct answer?
4
The value of an enumerated datatype can be read using scanf() function.
What is the correct answer?
4
Each pass through a loop is called a/an
What is the correct answer?
4
printf() is not a library function.
What is the correct answer?
4
The expression (i + j)++ is illegal.
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;
int &b = a;
a=100;
printf("b=%d\ta=%d
", b,a);
}
What is the correct answer?
4
struct stud
{
int roll;
char name[20];
float marks;
} *p;
What will be the byte size of p?
What is the correct answer?
4
The expression "int i = j = k = 0;" is invalid.
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
The main() function can be called from any other function.
What is the correct answer?
4
------ is the ternary operator
What is the correct answer?
4
In the expression - 'x + y + 3z =20'
B. 3 and 20 are constants
D. y is a variable and z is a constant
What is the correct answer?
4
Which of the following is not a standard exception built in C++.
What is the correct answer?
4
Every if statement can be converted into an equivalent switch statement.
What is the correct answer?
4
The expression "b = 3 ^ 2;" will evaluate b = 9.
What is the correct answer?
4
What will be output if you will compile and execute the following c code?
#include
int main(){
int i=320;
char *ptr=(char *)&i;
printf("%d",*ptr);
return 0;
}
What is the correct answer?
4
The contents of a file opened in 'r+' mode cannot be changed.
What is the correct answer?
4
The -------------------------- loop executes at least once.
What is the correct answer?
4
The expression 'int j = 6 + 3 % -9;' evaluates to -1.
What is the correct answer?
4
Character data types cannot be declared as unsigned.
What is the correct answer?
4
The output of the following code is:
main()
{
int a = 5, b = 6;
(a == b? printf("%d", a));
}
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
A function to be called must be ended with a----------------
What is the correct answer?
4
Which of the following keyword supports dynamic method resolution?