Related Questions
What is the correct answer?
4
do-while loop is useful when we want the statements within the loop must be executed
What is the correct answer?
4
Which of the following is not a standard exception built in C++.
What is the correct answer?
4
Union is used to hold different data at different time.
What is the correct answer?
4
Variables declared as register storage type gets stored in CPU registers.
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
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
What's wrong? while( (i < 10) && (i > 24))
A. the logical operator && cannot be used in a test condition
B. the while loop is an exit-condition loop
C. the test condition is always true
D. the test condition is always false
What is the correct answer?
4
The value of an enumerated datatype can be read using scanf() function.
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
/* The C language.
/* is a procedural language .*/*/
The above statement is valid.
What is the correct answer?
4
Which one of the following is not a valid reserved keyword in C++
What is the correct answer?
4
The identifier argv[] is a pointer to an array of strings.
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
# define PI = 8;' is the correct declaration of macros.
What is the correct answer?
4
What does STL stand for?
A. Simple Template Library
B. Standard Template Library
D. Single Type-based Library
What is the correct answer?
4
Which escape character can be used to beep from speaker in C?
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
All elements of a structure are allocated contiguous memory locations.
What is the correct answer?
4
fopen() function returns a pointer to the open file.
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
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
Which of the following expressions is wrong
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
A function to be called must be ended with a----------------
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
Right shifting an operand 1bit is equivalent to multiplying it by 2.
What is the correct answer?
4
There are total ------ numbers of operators in 'C'.
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 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
The statement "for (i = 0, j = 2; j <= 10; j++)" is a valid statement in 'C'.