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
When is std::bad_alloc exception thrown?
A. When new operator cannot allocate memory
B. When alloc function fails
C. When type requested for new operation is considered bad< thisexception is thrown
D. When delete operator cannot delete teh allocated (corrupted) object
What is the correct answer?
4
The function fopen() on failure returns---------------------.
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
How many times the following loop will execute?
for (a = 0; a < 4; a++)
printf("hello
");
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
What is Keywords?
A. Keywords have some predefine meanings and these meanings can be changed.
B. Keywords have some unknown meanings and these meanings cannot be changed.
C. Keywords have some predefine meanings and these meanings cannot be changed.
What is the correct answer?
4
Structures within structures cannot be created.
What is the correct answer?
4
The expression "b = 3 ^ 2;" will evaluate b = 9.
What is the correct answer?
4
emp name' is a valid variable name.
What is the correct answer?
4
Which header file is essential for using strcmp() function?
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
A multidimensional array A[10][9] can store-------- number of elements
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()
{
void msg()
{
printf("HELLO WORLD");
}
}
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
Which of the following is not a preprocessor directive
What is the correct answer?
4
The printf() function retunes which value when an error occurs?
What is the correct answer?
4
What's wrong? for (int k = 2, k <=12, k++)
A. the increment should always be ++k
B. the variable must always be the letter i when using a for loop
C. there should be a semicolon at the end of the statement
D. the commas should be semicolons
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
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
All elements of a structure are allocated contiguous memory locations.
What is the correct answer?
4
Union is used to hold different data at different time.
What is the correct answer?
4
Which of the following language is predecessor to C Programming Language?
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
For 16bit compiler allowable range for integer constants is ______ ?
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
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 output of the following code is:
main()
{
int sub[50];
for(i=0; i<=48;i++)
{
sub[i]=i;
printf("
%d", sub[i]);
}
}
A. 0 to 48 will be displayed