Related Questions
What is the correct answer?
4
How many times the following loop will execute?
for (a = 0; a < 4; a++)
printf("hello
");
What is the correct answer?
4
Structures within structures cannot be created.
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 the most preferred way of throwing and handling exceptions?
A. Throw by value and catch by reference.
B. Throw by reference and catch by reference.
C. Throw by value and catch by value
D. Throw the pointer value and provide catch for teh pointer type.
What is the correct answer?
4
Which of the following shows the correct hierarchy of arithmetic operations in C
What is the correct answer?
4
Identify the wrong statement
What is the correct answer?
4
All elements of a structure are allocated contiguous memory locations.
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
A function to be called must be ended with a----------------
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
The output of the following code is:
main()
{
void msg()
{
printf("HELLO WORLD");
}
}
What is the correct answer?
4
There are total ------ numbers of operators in 'C'.
What is the correct answer?
4
What is C Tokens?
A. The smallest individual units of c program
B. The basic element recognized by the compiler
C. The largest individual units of program
What is the correct answer?
4
The identifier argv[] is a pointer to an array of strings.
What is the correct answer?
4
fopen() function returns a pointer to the open file.
What is the correct answer?
4
No commas or blanks are allowed within an integer or a real constant.
What is the correct answer?
4
The expression 'int j = 6 + 3 % -9;' evaluates to -1.
What is the correct answer?
4
Expression 4**3 evaluates to 64.
What is the correct answer?
4
Which of the following is allowed in a C Arithmetic instruction
What is the correct answer?
4
# define PI = 8;' is the correct declaration of macros.
What is the correct answer?
4
A recursive function calls itself again and again.
What is the correct answer?
4
Single operations involving entire arrays are permitted in C.
What is the correct answer?
4
The output of the following code is:
void main()
{
int a = 1, b=2;
int *ip;
ip=&a;
b=*ip;
printf("%d", b);
}
What is the correct answer?
4
p++ executes faster than p + 1.
What is the correct answer?
4
Operation between an integer and float always yields a float result.
What is the correct answer?
4
The output of the following code is:
main()
{
int k, num = 30;
k = (num > 5 ? (num <= 10 ? 100 : 200) : 500);
printf("
%d", num);
}
What is the correct answer?
4
The output of the following code is:
int f(int a, int b);
void main()
{
int a = 12, b=154;
printf("%d", f(a, b));
}
int f(int a, int b)
{
if (a<b) return(f(b, a));
if(b==0) return(a);
return (f(b, a % b));
}
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 among the following is a unconditional control structure
What is the correct answer?
4
Which of the following language is predecessor to C Programming Language?