1.
C++ was originally developed by
Correct Answer
C. Bjarne Stroustrup
Explanation
Bjarne Stroustrup is the correct answer because he is the creator of C++. He developed the programming language in the early 1980s as an extension of the C programming language. Stroustrup's goal was to add object-oriented programming capabilities to C, resulting in the creation of C++. His work on C++ has had a significant impact on the field of computer programming and has made C++ one of the most widely used programming languages in the world.
2.
The standard C++ comment
Correct Answer
B. //
Explanation
The correct answer is "//". In C++, "//" is used to indicate a single-line comment. Anything written after "//" on the same line is considered a comment and is ignored by the compiler. This allows programmers to add notes or explanations within the code without affecting its functionality.
3.
The preprocessor directive #include is required if
Correct Answer
C. Both console input and output is used
Explanation
The preprocessor directive #include is required if both console input and output is used. This directive allows the program to include the necessary header files that contain the declarations and definitions needed for console input and output operations. Without including the necessary header files, the program would not be able to recognize and use the functions and objects related to console input and output.
4.
The operator << is called
Correct Answer
C. Either a or b
Explanation
The operator "
5.
The operator >> is called
Correct Answer
C. Either a or b
Explanation
The operator ">>" is commonly used in programming languages like C++ and is known as the extraction operator. It is used to extract data from an input stream, such as reading values from the standard input or a file. Therefore, the correct answer is either "an extraction operator" or "a get from operator."
6.
The C++ symbol <<
Correct Answer
D. All of above
Explanation
The correct answer is "All of the above". The C++ symbol "
7.
When a language has the capability to produce new data type, it is called
Correct Answer
A. Extensible
Explanation
When a language has the capability to produce new data types, it is referred to as "extensible." This means that the language allows for the creation and implementation of new data types, providing flexibility and adaptability to the programmers. This feature enables the language to evolve and meet the changing needs of the users by introducing new data structures and functionalities. It promotes code reusability and modularity, allowing developers to extend the language's capabilities beyond its predefined types.
8.
C++ name was suggested by
Correct Answer
A. Rrick Mascitti
9.
What is a reference?
Correct Answer
B. A reference is an alias for an object
Explanation
A reference is an alias for an object, meaning that it is another name or identifier that can be used to access and manipulate the object. This allows for multiple names to refer to the same object in memory, providing flexibility and convenience in programming.
10.
State the object oriented languages
Correct Answer
D. All of the above
Explanation
The correct answer is "All of the above" because C++, Java, and Eiffel are all examples of object-oriented programming languages. Object-oriented programming is a programming paradigm that organizes data and behavior into reusable structures called objects, and these languages support this paradigm by providing features such as classes, objects, inheritance, and polymorphism. Therefore, all three options listed are valid examples of object-oriented languages.