Related Questions
What is the correct answer?
4
The identifier argv[] is a pointer to an array of strings.
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
static variable will not always have assigned value.
What is the correct answer?
4
The contents of a file opened in 'r+' mode cannot be changed.
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
Which of the following is not recommended in a header file?
A. Type definitions (typedefs)
What is the correct answer?
4
The same variable names of automatic type can be used in different functions without any conflict.
What is the correct answer?
4
Which of the following is not a preprocessor directive
What is the correct answer?
4
= and = = have the same operation.
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
# define PI = 8;' is the correct declaration of macros.
What is the correct answer?
4
Which of the following expressions is wrong
What is the correct answer?
4
p++ executes faster than p + 1.
What is the correct answer?
4
A declaration float a, b; occupies ___ of memory
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
All macro substitutions in a program are done before compilation of the program.
What is the correct answer?
4
What is right way to Initialization array?
A. int num[6] = { 2, 4, 12, 5, 45, 5 } ;
B. int n{} = { 2, 4, 12, 5, 45, 5 } ;
C. int n{6} = { 2< 4< 12 } ;
D. int n(6) = { 2, 4, 12, 5, 45, 5 } ;
What is the correct answer?
4
gets() and puts() are unformatted I/O functions.
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
The function fopen() on failure returns---------------------.
What is the correct answer?
4
The expression "int i = j = k = 0;" is invalid.
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
Which one of the following is not a fundamental data type in C++
What is the correct answer?
4
The-------------------- statement helps immediate exit from any part of the loop
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
The output of the following code is:
main()
{
xyz: goto abc;
printf("Hello");
abc: printf("World");
goto xyz;
}
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
unsigned char has a range from 0 to ------------
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
Which of the following is an example of compounded assignment statement?