MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Company QA knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Identify the type of variables. |
| A. | char* |
| B. | char |
| C. | CHAR |
| D. | unknownView Answer |
| Answer» B. char | |
| 2. |
Identify the incorrect statements. |
| A. | Statement 1 and 2 are wrong |
| B. | Statement 2 and 3 are wrong |
| C. | Statement 1 and 3 are wrong |
| D. | Statement 1, 2 and 3 are wrongView Answer |
| Answer» D. Statement 1, 2 and 3 are wrongView Answer | |
| 3. |
Which of the given statements are false? |
| A. | iii and iv only |
| B. | ii and iii only |
| C. | only iv |
| D. | ii, iii and ivView Answer |
| Answer» D. ii, iii and ivView Answer | |
| 4. |
Pick the right option. |
| A. | Statement 1 is true, Statement 2 is false |
| B. | Statement 2 is true, Statement 1 is false |
| C. | Both are false |
| D. | Both are trueView Answer |
| Answer» C. Both are false | |
| 5. |
Choose the correct option. |
| A. | both 1 and 2 declare i |
| B. | 1 declares the variable i and 2 defines i |
| C. | 1 declares and defines i, 2 declares i |
| D. | 1 declares i,2 declares and defines iView Answer |
| Answer» E. | |
| 6. |
Can two functions declare variables(non static) with the same name? |
| A. | No |
| B. | Yes |
| C. | Yes, but not a very efficient way to write programs |
| D. | No, it gives a runtime error |
| Answer» D. No, it gives a runtime error | |
| 7. |
Statement 1 is true, Statement 2 is false |
| A. | Statement 2 is true, Statement 1 is false |
| B. | Both are false |
| C. | Both are true |
| Answer» D. | |