MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Bachelor of Business Administration in Computer Applications (BBA [CA]) knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Variable name resolution (number of significant characters for the uniqueness of variable) depends on ___________ |
| A. | Compiler and linker implementations |
| B. | Assemblers and loaders implementations |
| C. | C language |
| D. | None of the mentioned |
| Answer» B. Assemblers and loaders implementations | |
| 2. |
The syntax of printf() function is printf( control string , variable list) ;what is the prototype of the control string? |
| A. | %[flags][.precision][width][length]specifier |
| B. | %[flags][length][width][.precision]specifier |
| C. | %[flags][width][.precision][length]specifier |
| D. | %[flags][.precision][length][width]specifier |
| Answer» D. %[flags][.precision][length][width]specifier | |
| 3. |
For floating point numbers, the precision flag specifies the number of decimal places to be printed. When no precision modifier is specified, printf() prints _______ |
| A. | six decimal positions |
| B. | five decimal positions |
| C. | four decimal positions |
| D. | three decimal positions |
| Answer» B. five decimal positions | |
| 4. |
The syntax of the scanf() is scanf( control string , arg1,arg2,arg3, .,argn); the prototype of control string is ____________ |
| A. | [=%[width][modifiers]type=] |
| B. | [=%[modifiers][width]type=] |
| C. | [=%[width] [modifiers]] |
| D. | [width][modifiers] |
| Answer» B. [=%[modifiers][width]type=] | |
| 5. |
What does the following command line signify? prog1 prog2 |
| A. | It runs prog1 first, prog2 second |
| B. | It runs prog2 first, prog1 second |
| C. | It runs both the programs, pipes output of prog1 to input of prog2 |
| D. | It runs both the programs, pipes output of prog2 to input of prog1 |
| Answer» D. It runs both the programs, pipes output of prog2 to input of prog1 | |
| 6. |
In the standard library of C programming language, which of the following header file is designed for basic mathematical operations? |
| A. | math.h |
| B. | conio.h |
| C. | dos.h |
| D. | stdio.h |
| Answer» B. conio.h | |
| 7. |
What will be the value of the following assignment expression? (x = foo())!= 1 considering foo() returns 2 |
| A. | 2 |
| B. | True |
| C. | 1 |
| D. | 0 |
| Answer» B. True | |
| 8. |
Which of the following macro extracts an argument from the variable argument list (ie ellipsis) and advance the pointer to the next argument? |
| A. | va_list |
| B. | va_arg |
| C. | va_end |
| D. | va_start |
| Answer» C. va_end | |
| 9. |
What is the type of the following assignment expression if x is of type float and y is of type int? y = x + y; |
| A. | int |
| B. | float |
| C. | there is no type for an assignment expression |
| D. | double |
| Answer» B. float | |
| 10. |
Which among the following are the fundamental arithmetic operators, i.e, performing the desired operation can be done using that operator only? |
| A. | +, |
| B. | +, -, % |
| C. | +, -, *, / |
| D. | +, -, *, /, % |
| Answer» B. +, -, % | |