Top 150+ Solved Programming for Problem Solving MCQ Questions Answer

From 61 to 75 of 105

Q. Which gcc flag is used to enable all Compiler warnings?

a. gcc -W

b. gcc -w

c. gcc -Wall

d. gcc -wall

  • c. gcc -Wall

Q. Which gcc flag is used to generate maximum debug information?

a. gcc -g0

b. gcc –g1

c. gcc -g

d. gcc –g3

  • d. gcc –g3

Q. Which macro is used to insert assembly code in C program (VC++compiler)?

a. __asm__

b. _asm_

c. __asm

d. asm

  • c. __asm

Q. Which macro is used to insert assembly code in C program (GCCcompiler)?

a. __asm__

b. _asm_

c. __asm

d. asm

  • a. __asm__

Q. What should be the output of below program?#define # @@include "stdio.h"int main(){printf("C.com");return 0;}

a. C.com

b. Nothing

c. Compilation Error

d. Depends on Complier

  • c. Compilation Error

Q. Which one of the following is invalid macro in C programming?

a. #pragma

b. #error

c. #ifndef

d. #elseif

  • d. #elseif

Q. Set of consecutive memory locations is called as ________.

a. Function

b. Array

c. Loop

d. Pointer

  • b. Array

Q. Array can be considered as set of elements stored in consecutive memorylocations but having __________.

a. Same Data Type

b. Same Scope

c. None of these

d. Different Data Type

  • a. Same Data Type

Q. In Array, There is one to one correspondence between set of ________and set of values.

a. Indices

b. Variables

c. Constants

d. Memory Locations

  • a. Indices

Q. Smallest element of an array is called as _______.

a. Middle Bound

b. Range

c. Upper Bound

d. Lower Bound

  • d. Lower Bound
Subscribe Now

Get All Updates & News