C/C++ Programming Language - Set 1

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Mcqquestions
M
Mcqquestions
Community Contributor
Quizzes Created: 23 | Total Attempts: 626,917
| Attempts: 15,763 | Questions: 10
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. The preprocessor directive #include is required if

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.

Submit
Please wait...
About This Quiz
C/C++ Programming Language - Set 1 - Quiz

Online MCQ Quiz on C/C++ Programming - Set 1 No. Of Questions:- 10 Time:- 10 Minutes Full Mark:- 100 Pass Mark:- 70 This Quiz is for those user who wants to test their knowledge/skill in C/C++ Programming Language. For more MCQ Questions and Online Quizzes please visit https://mcqQuestions. Com

Personalize your quiz and earn a certificate with your name on it!
2. What is a reference?

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.

Submit
3. State the object oriented languages

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.

Submit
4. C++ was originally developed by

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.

Submit
5. The standard C++ comment

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.

Submit
6. When a language has the capability to produce new data type, it is called

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.

Submit
7. The C++ symbol <<

Explanation

The correct answer is "All of the above". The C++ symbol "

Submit
8. The operator >> is called

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."

Submit
9. The operator << is called

Explanation

The operator "

Submit
10. C++ name was suggested by

Explanation

not-available-via-ai

Submit
View My Results

Quiz Review Timeline (Updated): Jun 17, 2024 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jun 17, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Jul 12, 2012
    Quiz Created by
    Mcqquestions
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
The preprocessor directive #include is required if
What is a reference?
State the object oriented languages
C++ was originally developed by
The standard C++ comment
When a language has the capability to produce new data type, it is...
The C++ symbol <<
The operator >> is called
The operator << is called
C++ name was suggested by
Alert!

Advertisement