Home
Current Affairs January 2024

What is the correct answer?

4

p++ executes faster than p + 1.

A. True

B. False

Correct Answer :

A. True


Related Questions

What is the correct answer?

4

The output of the following code is:
main() 
{
xyz: goto abc;
printf("Hello");
abc: printf("World");
goto xyz;
}

A. Infinite loop

B. Hello World

C. World Hello

D. Compilation error

What is the correct answer?

4

Union is used to hold different data at different time.

A. True

B. False

What is the correct answer?

4

Which of the following expressions is wrong

A. float a =123.56;

B. char ch ='T' * 'A';

C. char ch ='T' *20;

D. 3 +a = b;

What is the correct answer?

4

continue statement is used

A. to go to the next iteration in a loop

B. come out of a loop

C. exit and return to the main function

D. restarts iterations from beginning of loop

What is the correct answer?

4

Which of the following is an example of compounded assignment statement?

A. a = 5

B. a += 5

C. a = b = c

D. a = b

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);
}

A. 40

B. 20

C. Compilation Error

D. Garbeg Value

What is the correct answer?

4

The default initial value of automatic storage class is 0.

A. True

B. False

What is the correct answer?

4

fopen() function returns a pointer to the open file.

A. True

B. False

What is the correct answer?

4

C programming language was developed by

A. Dennis Ritchie

B. Ken Thompson

C. Bill Gates

D. Peter Norton

What is the correct answer?

4

It is necessary to initialize the array at the time of declaration.

A. True

B. False

What is the correct answer?

4

Nested macros are allowed.

A. True

B. False

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));
}

A. 77, 121

B. 225, 121

C. 77< 144

D. Compilation error

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);
}

A. Infinite loop

B. 9

C. 0

D. None

What is the correct answer?

4

Which options shows the correct hierarchy of arithmetic operators

A. **, * or /, + or -

B. **, *, /, +, -

C. **< /< *< +<-

D. / or *, - or +

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

D. A & B Both

What is the correct answer?

4

Which one of the following is not a valid reserved keyword in C++

A. Explicit

B. Public

C. Implicit

D. Private

What is the correct answer?

4

Operation between an integer and float always yields a float result.

A. True

B. False

What is the correct answer?

4

Which of the following is invalid?

A. ''

B. " "

C. 'a'

D. abc'

What is the correct answer?

4

The-------------------- statement helps immediate exit from any part of the loop

A. break

B. continue

C. exit

D. All of the above

What is the correct answer?

4

The expression 'int j = 6 + 3 % -9;' evaluates to -1.

A. True

B. False

What is the correct answer?

4

In the expression - 'x + y + 3z =20'

A. x + y' is a keyword

B. 3 and 20 are constants

C. 3z is a constant

D. y is a variable and z is a constant

What is the correct answer?

4

The size of signed integer is ------ bytes.

A. 4

B. 2

C. 8

D. 10

What is the correct answer?

4

enum helps to create user defined datatype.

A. True

B. False

What is the correct answer?

4

No commas or blanks are allowed within an integer or a real constant.

A. True

B. False

What is the correct answer?

4

There are total ------ numbers of operators in 'C'.

A. 35

B. 45

C. 55

D. 40

What is the correct answer?

4

A multidimensional array A[10][9] can store-------- number of elements

A. 91

B. 88

C. 90

D. 89

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

printf() is not a library function.

A. True

B. False

What is the correct answer?

4

The expression "int i = j = k = 0;" is invalid.

A. True

B. False

What is the correct answer?

4

When a user defined function is defined in program, then it has to be called at least once from the main().

A. True

B. False