Related Questions
What is the correct answer?
4
If 'str' is a string of 7 characters, the statement printf("%4s", str); will display ------characters.
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 expression "b = 3 ^ 2;" will evaluate b = 9.
What is the correct answer?
4
unsigned char has a range from 0 to ------------
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
Which of the following correctly describes C++ language?
A. Statically typed language
B. Dynamically typed language
C. Both Statically and dynamically typed language
What is the correct answer?
4
Which of the following expressions is wrong
What is the correct answer?
4
The-------------------- statement helps immediate exit from any part of the loop
What is the correct answer?
4
------ is the ternary operator
What is the correct answer?
4
gets() and puts() are unformatted I/O functions.
What is the correct answer?
4
A pointer is an indication of the variable to be accessed next.
What is the correct answer?
4
The identifier argv[] is a pointer to an array of strings.
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
When a user defined function is defined in program, then it has to be called at least once from the main().
What is the correct answer?
4
An array elements are always stored in _________ memory locations.
What is the correct answer?
4
Structures within structures cannot be created.
What is the correct answer?
4
The expression "int i = j = k = 0;" is invalid.
What is the correct answer?
4
What will be output if you will compile and execute the following c code?
#include
#define x 5+2
int main(){
int i;
i=x*x*x;
printf("%d",i);
return 0;
}
What is the correct answer?
4
Which of the following keyword supports dynamic method resolution?
What is the correct answer?
4
Nested macros are allowed.
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
fprintf()function can be used to write into console.
What is the correct answer?
4
The main() function can be called from any other function.
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
What is an array?
A. An array is a collection of variables that are of the dissimilar data type.
B. An array is a collection of variables that are of the same data type.
C. An array is not a collection of variables that are of the same data type.
What is the correct answer?
4
perror( ) function used to ?
B. prints the error message specified by the compiler
C. prints the garbage value assigned by the compiler
What is the correct answer?
4
Each pass through a loop is called a/an
What is the correct answer?
4
Which of the following is allowed in a C Arithmetic instruction
What is the correct answer?
4
What will be output if you will compile and execute the following c code?
#include
int main()
{
float a=5.2;
if(a==5.2)
printf("Equal");
else if(a<5.2)
printf("Less than");
else
printf("Greater than");
return 0;
}
What is the correct answer?
4
Which among the following is a unconditional control structure