MCQOPTIONS
Saved Bookmarks
This section includes 37 Mcqs, each offering curated multiple-choice questions to sharpen your Atos knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is stderr? |
| A. | standard error |
| B. | standard error types |
| C. | standard error streams |
| D. | standard error definitions |
| Answer» D. standard error definitions | |
| 2. |
When two types are used in a function template and one is labeled T, the other |
| A. | must also be named T |
| B. | must be named U |
| C. | can be any legal C++ identfier |
| D. | it is illegal to have two types |
| Answer» B. must be named U | |
| 3. |
The function that takes arguments to set the bits of count is _____ |
| A. | setf() |
| B. | bitsef() |
| C. | ios() |
| D. | flag() |
| Answer» B. bitsef() | |
| 4. |
When a break statement is used in a loop, the control skips the rest of the statements in the loop after it and jumps |
| A. | to the last lines in the program |
| B. | to the next statement written after the body of the loop |
| C. | to the first statement in the body of the loop |
| D. | All. of the above |
| Answer» C. to the first statement in the body of the loop | |
| 5. |
Any #include files may contain |
| A. | constants |
| B. | variables |
| C. | functions |
| D. | All of the above. |
| Answer» E. | |
| 6. |
Which of the following are valid characters for a numeric literal constant? |
| A. | a decimal point |
| B. | the letter e |
| C. | a minus sign |
| D. | a plus sign |
| E. | All of the above |
| Answer» F. | |
| 7. |
In a class specifier, data or functions designated private are accessible |
| A. | to any function in the program |
| B. | only if you know the password |
| C. | to member functions of that class |
| D. | only to public members of the class |
| Answer» D. only to public members of the class | |
| 8. |
Which of the following statements is false? |
| A. | You typically use a public member function to change the value in a private data member |
| B. | Because the constructor function does not return a value, you place the keyword void before the constructors name |
| C. | The public member functions in a class can be accessed by any program that uses an object created from that class |
| D. | An instance of a class is considered an object |
| Answer» C. The public member functions in a class can be accessed by any program that uses an object created from that class | |
| 9. |
In which statements, does a 'continue' statements cause the control to go directly to the test condition and then continue the looping process? |
| A. | for and while |
| B. | while and if-else |
| C. | do-while and if-else |
| D. | while and do-while |
| Answer» E. | |
| 10. |
A function in a derived class that has the same name as a function in the parent class |
| A. | will override the base class function |
| B. | will cause an error message to display |
| C. | will be overridden by the base class function |
| D. | will execute immediately often the base class function executes |
| Answer» B. will cause an error message to display | |
| 11. |
A normal C++ operator that acts in special ways on newly defined data types is said to be |
| A. | glorified |
| B. | encapsulated |
| C. | classified |
| D. | overloaded |
| Answer» E. | |
| 12. |
A constructor always has |
| A. | communicational cohesion |
| B. | temporal cohesion |
| C. | logical cohesion |
| D. | no cohesion |
| Answer» C. logical cohesion | |
| 13. |
Evaluate the following expression: 4 >6 || 10 < 2 * 6 |
| A. | True |
| B. | False |
| Answer» B. False | |
| 14. |
When you create a derived class and instantiate an object ____ |
| A. | the parent class object must be constructed first |
| B. | the child class object must be constructed first |
| C. | the parent class object must not be constructed |
| D. | the child class object must not be constructed |
| Answer» B. the child class object must be constructed first | |
| 15. |
Using a statement at the wrong time or with an inappropriate object creates a |
| A. | logical error |
| B. | syntax error |
| C. | compiler error |
| D. | language error |
| Answer» B. syntax error | |
| 16. |
When an object-oriented program detects an error within a function, the function _________ |
| A. | throws an exception |
| B. | throws a fit |
| C. | catches a message |
| D. | catches an exception |
| Answer» B. throws a fit | |
| 17. |
The return type you code for all constructors is _____ |
| A. | void |
| B. | the class type |
| C. | the same type as the first data member defined in the class |
| D. | no type |
| Answer» E. | |
| 18. |
The compiler converts your C++ instructions into _____ |
| A. | edited code |
| B. | object code |
| C. | source code |
| D. | translated code |
| Answer» C. source code | |
| 19. |
Variables declared outside a block are called _____ |
| A. | global |
| B. | universal |
| C. | stellar |
| D. | external |
| Answer» B. universal | |
| 20. |
The first element in a string is |
| A. | the name of the string |
| B. | the first character in the string |
| C. | the length of the string |
| D. | the name of the array holding the string |
| Answer» C. the length of the string | |
| 21. |
When you omit parameters from a function call, values can be provided by |
| A. | formal parameters |
| B. | reference parameters |
| C. | overloaded parameters |
| D. | default parameters |
| Answer» E. | |
| 22. |
Which collection class allows you to grow or shrink its size and provides indexed access to its elements, but whose methods are not synchronized? |
| A. | java.util.HashSet |
| B. | java.util.LinkedHashSet |
| C. | java.util.List |
| D. | java.util.ArrayList |
| Answer» E. | |
| 23. |
Which of the following statements is correct about the .NET Framework? |
| A. | .NET Framework uses DCOM for achieving language interoperability. |
| B. | .NET Framework is built on the DCOM technology. |
| C. | .NET Framework uses DCOM for making transition between managed and unmanaged code. |
| D. | .NET Framework uses DCOM for creating unmanaged applications. E. |
| Answer» D. .NET Framework uses DCOM for creating unmanaged applications. E. | |
| 24. |
Code that targets the Common Language Runtime is known as |
| A. | Unmanaged |
| B. | Distributed |
| C. | Legacy |
| D. | Managed Code |
| Answer» E. | |
| 25. |
Which of the following .NET components can be used to remove unused references from the managed heap? |
| A. | Common Language Infrastructure |
| B. | CLR |
| C. | Garbage Collector |
| D. | Class Loader |
| Answer» D. Class Loader | |
| 26. |
Which of the following components of the .NET framework provide an extensible set of classes that can be used by any .NET compliant programming language? |
| A. | .NET class libraries |
| B. | Common Language Runtime |
| C. | Common Language Infrastructure |
| D. | Component Object Model |
| Answer» B. Common Language Runtime | |
| 27. |
Which of the following statements is correct about Managed Code? |
| A. | Managed code is the code that is compiled by the JIT compilers. |
| B. | Managed code is the code where resources are Garbage Collected. |
| C. | Managed code is the code that runs on top of Windows. |
| D. | Managed code is the code that is written to target the services of the CLR. |
| E. | Managed code is the code that can run on top of Linux. |
| Answer» E. Managed code is the code that can run on top of Linux. | |
| 28. |
Reference is like a _____. |
| A. | Pointer |
| B. | Structure |
| C. | Macro |
| D. | Enum |
| Answer» B. Structure | |
| 29. |
A reference is declared using the _____ symbol. |
| A. | && |
| B. | & |
| C. | || |
| D. | ! |
| Answer» C. || | |
| 30. |
Which of the following statement is correct about the references? |
| A. | A reference must always be initialized within functions. |
| B. | A reference must always be initialized outside all functions. |
| C. | A reference must always be initialized. |
| D. | Both A and C. |
| Answer» D. Both A and C. | |
| 31. |
Which of the following statement is correct? |
| A. | A reference is stored on heap. |
| B. | A reference is stored on stack. |
| C. | A reference is stored in a queue. |
| D. | A reference is stored in a binary tree. |
| Answer» C. A reference is stored in a queue. | |
| 32. |
The symbol |
| A. | is called the insertion operation |
| B. | is called the output operator |
| C. | is called the extraction operator |
| D. | a and b both |
| Answer» E. | |
| 33. |
What is the usually used unit of measuring the speed of data transmission ? |
| A. | Baud |
| B. | Bytes per second |
| C. | bits per second |
| D. | megabytes per second |
| Answer» B. Bytes per second | |
| 34. |
What is the first element in a sting ? |
| A. | The name of the string |
| B. | The length of the string |
| C. | The address of the string |
| D. | The first character in the string |
| Answer» B. The length of the string | |
| 35. |
Which of the following is true about overloaded functions? |
| A. | They are a group of functions with the same name |
| B. | They all have the same number and types of arguments |
| C. | They may fail unexpectedly due to stress |
| D. | All of these |
| Answer» B. They all have the same number and types of arguments | |
| 36. |
Which of the following connect different computers by LAN? |
| A. | Cable and modem |
| B. | Cable and interface card |
| C. | Modem and interface card |
| D. | Special wires and telephone lines |
| Answer» C. Modem and interface card | |
| 37. |
Which of the following is correct declaration for a pointer to a function that returns a float ? |
| A. | float f(); |
| B. | float *f(); |
| C. | float (*f) (); |
| D. | float* (*f)(); |
| Answer» D. float* (*f)(); | |