MCQOPTIONS
Saved Bookmarks
This section includes 565 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.
| 351. |
Automatic variable also referred to as |
| A. | Internal variable |
| B. | Global variable |
| C. | Local variable |
| D. | External variable |
| Answer» B. Global variable | |
| 352. |
Which of the following is not a storage class specifier? |
| A. | auto |
| B. | register |
| C. | extern |
| D. | volatile |
| Answer» B. register | |
| 353. |
The scope of a macro definition |
| A. | cannot be beyond the file in which it is defined |
| B. | may be part of a file |
| C. | is the entire program |
| D. | excludes string of characters within double quotes |
| Answer» E. | |
| 354. |
The use of macro in the place of functions |
| A. | reduces execution time |
| B. | increases code size |
| C. | increases execution time |
| D. | both (a) & (b) |
| Answer» E. | |
| 355. |
In a passage of text individual words and punctuation marks are called |
| A. | Tokens |
| B. | Strings |
| C. | Operator |
| D. | Identifier |
| Answer» B. Strings | |
| 356. |
The ascending order of precedence of the bit-wise operators &, ^, | is |
| A. | &, ^, | |
| B. | ^, &, I |
| C. | |, ^, & |
| D. | &, |, ^ |
| Answer» D. &, |, ^ | |
| 357. |
A string that is a formal parameter can be declared |
| A. | an array with empty bracket |
| B. | a pointer to character |
| C. | a pointerto a character |
| D. | both (a) & (b) |
| Answer» E. | |
| 358. |
C programming language is |
| A. | Procedural language |
| B. | Object Oriented language |
| C. | Scripting languages |
| D. | None of these |
| Answer» B. Object Oriented language | |
| 359. |
Which of the following function gives the current position in the file |
| A. | putw() |
| B. | ftell() |
| C. | fseek() |
| D. | getw() |
| Answer» C. fseek() | |
| 360. |
cb is a |
| A. | C code beautifying tool |
| B. | C interpreter |
| C. | C compiler |
| D. | none of the above |
| Answer» B. C interpreter | |
| 361. |
Which of the following statements is not true? |
| A. | FORTRAN is a high-level language |
| B. | A FORTRAN program written for the IBM-PC, is totally different from a FORTRAN program written for the execution of SUN machine. |
| C. | FORTRAN is extensively used write program for performing scientific computations |
| D. | None of the above |
| Answer» C. FORTRAN is extensively used write program for performing scientific computations | |
| 362. |
Which of the following comments about EOF are true? |
| A. | its value is defined within stdio.h |
| B. | its value is implementation dependent and cant be negative |
| C. | its value should not equal the integer equivalent of any character |
| D. | All of the above |
| Answer» E. | |
| 363. |
What is the scope of static class specifier? |
| A. | Within block |
| B. | Within Program |
| C. | Global Multiple files |
| D. | None of the above |
| Answer» B. Within Program | |
| 364. |
Which of the following features of C is meant to provide reliable access to special memory locations? |
| A. | static_const |
| B. | pragma |
| C. | volatile |
| D. | immutable |
| Answer» D. immutable | |
| 365. |
C was initially used for |
| A. | General purpose |
| B. | System development work |
| C. | Data processing |
| D. | None of these |
| Answer» C. Data processing | |
| 366. |
Most suitable option for “C” literal is: |
| A. | a string |
| B. | a string constant |
| C. | a character |
| D. | an alphabet |
| Answer» C. a character | |
| 367. |
Which of the following comments are correct when macro definition includes arguments? |
| A. | The opening parenthesis should immediately follow the macro name |
| B. | There should be at least one blank between the macro name and the opening parenthesis |
| C. | There should be only one blank between the macro name and the opening parenthesis |
| D. | All the above comments are correct |
| Answer» B. There should be at least one blank between the macro name and the opening parenthesis | |
| 368. |
The declaration int x : 4; means |
| A. | x is a four digit integer |
| B. | x cannot be greater than a four digit integer |
| C. | x is a four-bit integer |
| D. | none of the above |
| Answer» D. none of the above | |
| 369. |
If m=5, y=m++ then value of y and m would be _____ and _______ |
| A. | 2 and 4 |
| B. | 3 and 5 |
| C. | 4 and 6 |
| D. | 5 and 6 |
| Answer» E. | |
| 370. |
C compiler traps |
| A. | logical errors |
| B. | syntax errors |
| C. | both a and b |
| D. | none of the above |
| Answer» C. both a and b | |
| 371. |
Pick the operator that associate from the left |
| A. | + |
| B. | , |
| C. | < |
| D. | All of the above |
| Answer» E. | |
| 372. |
We cannot use String in the Switch case as label ! |
| A. | False |
| B. | True |
| C. | Depends on compiler |
| D. | None of the above |
| Answer» C. Depends on compiler | |
| 373. |
A char variable storing either an ASCII character or a Unicode character is allowed inside switch case. |
| A. | True |
| B. | False |
| C. | Depends on compiler |
| D. | None of the above |
| Answer» B. False | |
| 374. |
What will be the valid value of X by which we can print "DEF". |
| A. | 0 |
| B. | -9 |
| C. | '0' |
| D. | 'A' |
| Answer» B. -9 | |
| 375. |
For loop is _________. |
| A. | Function Controlled Loop |
| B. | Entry Controlled Loop |
| C. | None of these |
| D. | Exit Controlled Loop |
| Answer» C. None of these | |
| 376. |
Nesting of if-else statements is allowed in C Programming. |
| A. | Yes |
| B. | No |
| C. | Depends on compiler |
| D. | None of the above |
| Answer» B. No | |
| 377. |
Which of the following is not an example of looping statement ? |
| A. | for |
| B. | do-while |
| C. | while |
| D. | switch |
| Answer» E. | |
| 378. |
Which of the statement we need to write , in order to check any condition. |
| A. | If |
| B. | Break |
| C. | Continue |
| D. | exit |
| Answer» B. Break | |
| 379. |
What will be the output of the program in TurboC? |
| A. | i= FFE2 ptr=12 j=FFE4 ptr=24 |
| B. | i= FFE4 ptr=10 j=FFE2 ptr=20 |
| C. | i= FFE0 ptr=20 j=FFE1 ptr=30 |
| D. | Garbage value |
| Answer» C. i= FFE0 ptr=20 j=FFE1 ptr=30 | |
| 380. |
What will be the output of the program (in Turbo C)? |
| A. | Before modification arr[3] = 4 After modification arr[3] = 10 |
| B. | Error: cannot convert parameter 1 from const int * to int * |
| C. | Error: Invalid parameter |
| D. | Before modification arr[3] = 4 After modification arr[3] = 4 |
| Answer» B. Error: cannot convert parameter 1 from const int * to int * | |
| 381. |
Which of the following is not one of the processes that a high level language program must go through before it is ready to be executed |
| A. | Translation |
| B. | Controlling |
| C. | Loading |
| D. | Linking |
| Answer» C. Loading | |
| 382. |
Choose the correct statement form given options: |
| A. | Constant expressions are evaluated at compile time |
| B. | String constants can be concatenated at compile time |
| C. | Size of array must be known at compile time |
| D. | All of the above |
| Answer» E. | |
| 383. |
Which one is a special function in C system to tell the computer where the program start |
| A. | go() |
| B. | sub() |
| C. | main() |
| D. | event() |
| Answer» D. event() | |
| 384. |
A bit field is a set of adjacent bits whose size can be from _________ bits in length |
| A. | 1 to 8 |
| B. | 1 to 12 |
| C. | 1 to 14 |
| D. | 1 to 16 |
| Answer» E. | |
| 385. |
In standard C, trigraphs in the source program are translated |
| A. | before the lexical analysis |
| B. | before the recognition of escape characters in strings |
| C. | both (a) & (b) |
| D. | during the intermediate code generation phase |
| Answer» D. during the intermediate code generation phase | |
| 386. |
Preprocessing is typically done |
| A. | either before or at the beginning of the compilation process |
| B. | after compilation but before execution |
| C. | after loading |
| D. | none of the above |
| Answer» B. after compilation but before execution | |
| 387. |
The precedence of member operator is _________ than all arithmatic and relational operator |
| A. | lower |
| B. | higher |
| C. | equal |
| D. | None of the above |
| Answer» C. equal | |
| 388. |
Consider the following statement.# define hypotenuse(a, b) sqrt (a * a + b * b ) ; The macro-call hypotenuse ( a + 2, b + 3) ; |
| A. | finds the hypotenuse of a triangle with sides a + 2 and b + 3 |
| B. | finds the square root of (a + 2)2 + (b + 3)2 |
| C. | is invalid |
| D. | finds the square root of 3 * a + 4 * b + 5 |
| Answer» E. | |
| 389. |
Let f : {a, b}* (a, b}* be given by f (n) = ax for every value of n ε {a, b} then f is |
| A. | One to one not onto |
| B. | One to one and onto |
| C. | Not one to one and not onto |
| D. | Not one-to one and onto |
| Answer» B. One to one and onto | |
| 390. |
Which of the following comments regarding the reading of a string using scanf( with %s option and gets, is true ?) |
| A. | both can be used interchangebly |
| B. | scanf is delimited by end of line, while gets is not |
| C. | scanf is delimited by blank space, while gets is not |
| D. | none of above |
| Answer» D. none of above | |
| 391. |
puts(argv[0]); |
| A. | prints the name of the source code file |
| B. | prints argv |
| C. | prints the number of command line arguments |
| D. | prints the name of executable code file |
| Answer» E. | |
| 392. |
If 7 bits are used to store a character, the percentage reduction of needed storage will be |
| A. | 22.5 |
| B. | 2.5 |
| C. | 8 |
| D. | 12.5 |
| Answer» E. | |
| 393. |
Assume an unsigned integer occupies 1 byte. Let myVar be an unsigned integer. Then myVar « 1 multiplies myVar by 2 if it is not greater than |
| A. | 127 |
| B. | 255 |
| C. | 256 |
| D. | 128 |
| Answer» B. 255 | |
| 394. |
Which of the following comments about the preprocessor directive # are correct? |
| A. | It converts the formal argument in the macro definition into a string |
| B. | It strips out redundant blanks |
| C. | It concatenates adjacent strings, if any. |
| D. | All of the above |
| Answer» E. | |
| 395. |
C was primarily developed as a |
| A. | systems programming language |
| B. | general purpose language |
| C. | data processing language |
| D. | none of above |
| Answer» B. general purpose language | |
| 396. |
How many storage classes are there in C? |
| A. | 2 |
| B. | 3 |
| C. | 4 |
| D. | 5 |
| Answer» D. 5 | |
| 397. |
Many features of C were derived from which language ? |
| A. | PASCAL |
| B. | B |
| C. | BASIC |
| D. | FORTRAN |
| Answer» C. BASIC | |
| 398. |
"C"was primarily developed as a |
| A. | Systems Programing Language |
| B. | General Purpose Language |
| C. | Data Processing Language |
| D. | None of the above |
| Answer» B. General Purpose Language | |
| 399. |
Which of the following cannot be checked in a switch case statement ? |
| A. | Character |
| B. | Integer |
| C. | Enum |
| D. | Float |
| Answer» E. | |
| 400. |
An escape sequence commence with |
| A. | \ |
| B. | / |
| C. | ? |
| D. | # |
| Answer» B. / | |