Related Questions
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
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 identifier argv[] is a pointer to an array of strings.
What is the correct answer?
4
The expression "b = 3 ^ 2;" will evaluate b = 9.
What is the correct answer?
4
fopen() function returns a pointer to the open file.
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
Only one break can be used in one loop.
What is the correct answer?
4
Operation between an integer and float always yields a float result.
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
Every if statement can be converted into an equivalent switch statement.
What is the correct answer?
4
The contents of a file opened in 'r+' mode cannot be changed.
What is the correct answer?
4
A recursive function calls itself again and again.
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
The output of the following code is:
void main()
{
int z, a = 5, b = 3; z = a * 2 + 26 % 3;
printf("%d", z); }
What is the correct answer?
4
Which of the following is a valid destructor of the class name "Country"
C. int ~Country(Country obj)
What is the correct answer?
4
The output of the following code is:
void main()
{
static int a = 1, b, c;
if (a>=2) b=2; c=3;
printf("%d\t%d", b,c);
}
What is the correct answer?
4
Character data types cannot be declared as unsigned.
What is the correct answer?
4
static variable will not always have assigned value.
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
Nested macros are allowed.
What is the correct answer?
4
The value of an enumerated datatype can be read using scanf() function.
What is the correct answer?
4
The array 'char name[10] can consist of a maximum of 9 characters.
What is the correct answer?
4
Which of the following language is predecessor to C Programming Language?
What is the correct answer?
4
Bitwise operators can operate upon?
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
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
Which of the following keyword supports dynamic method resolution?
What is the correct answer?
4
A declaration float a, b; occupies ___ of memory
What is the correct answer?
4
All macro substitutions in a program are done before compilation of the program.