Related Questions
What is the correct answer?
4
A function to be called must be ended with a----------------
What is the correct answer?
4
Every if statement can be converted into an equivalent switch statement.
What is the correct answer?
4
It is necessary to initialize the array at the time of declaration.
What is the correct answer?
4
static variable will not always have assigned value.
What is the correct answer?
4
Union is used to hold different data at different time.
What is the correct answer?
4
The output of the following code is:
main()
{
xyz: goto abc;
printf("Hello");
abc: printf("World");
goto xyz;
}
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:
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
What would be the output of the following program?
int x=40;
main(){
int x=20;
printf("
%d",x);
}
What is the correct answer?
4
enum helps to create user defined datatype.
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
fprintf()function can be used to write into console.
What is the correct answer?
4
Which escape character can be used to beep from speaker in C?
What is the correct answer?
4
Which of the following is not a standard exception built in C++.
What is the correct answer?
4
The default initial value of automatic storage class is 0.
What is the correct answer?
4
= and = = have the same operation.
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
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 a[10], i;
for (i = 1; I <= 0; i++)
{
scanf("%d", a[i]);
printf("%d", a[i]);
}
}
D. 1 to 10 will be displayed
What is the correct answer?
4
/* The C language.
/* is a procedural language .*/*/
The above statement is valid.
What is the correct answer?
4
char *s[10] defines an array of ------------------------
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 (i + j)++ is illegal.
What is the correct answer?
4
An array declared as A[100][100] can hold a maximum of 100 elements.
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
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
------ is the ternary operator
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
Operation between an integer and float always yields a float result.
What is the correct answer?
4
What is the right way to access value of structure variable book{ price, page }?
A. printf("%d%d", book.price, book.page);
B. printf("%d%d", price.book, page.book);
C. printf("%d%d"< price::book< page::book);
D. printf("%d%d", price>book, page>book);