Related Questions
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
The output of the following code is:
main()
{
unsigned int a = 10;
while (a>=10)
{
int a; a-- ;
}
printf("%i", a);
}
What is the correct answer?
4
printf("%d", sizeof('2')); will print 2.
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
Which of the following is not a preprocessor directive
What is the correct answer?
4
For 16bit compiler allowable range for integer constants is ______ ?
What is the correct answer?
4
Identify the wrong statement
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
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 = 0;
while (a<=50) for(;;) if(++a % 50==0) break;
printf("a = %d", a);
}
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
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
Which of the following language is predecessor to C Programming Language?
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
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
Only one break can be used in one loop.
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
enum helps to create user defined datatype.
What is the correct answer?
4
static variable will not always have assigned value.
What is the correct answer?
4
The expression (i + j)++ is illegal.
What is the correct answer?
4
There are total ------ numbers of operators in 'C'.
What is the correct answer?
4
Left shift operator rotates the bits on the left and places them to the right.
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
If 'str' is a string of 7 characters, the statement printf("%4s", str); will display ------characters.
What is the correct answer?
4
The identifier argv[] is a pointer to an array of strings.
What is the correct answer?
4
Which options shows the correct hierarchy of arithmetic operators
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
A pointer is an indication of the variable to be accessed next.
What is the correct answer?
4
emp name' is a valid variable name.
What is the correct answer?
4
Which escape character can be used to beep from speaker in C?