Test Your Cs Knowledge

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Urujjamal
U
Urujjamal
Community Contributor
Quizzes Created: 1 | Total Attempts: 601
Questions: 10 | Attempts: 612

SettingsSettingsSettings
Programmer Quizzes & Trivia

Questions and Answers
  • 1. 

    What does C++ stand for ?

    • A.

      C plus plus

    • B.

      C with classes

    • C.

      C without classes

    • D.

      None of above

    Correct Answer
    B. C with classes
    Explanation
    C++ stands for "C with classes". This is because C++ is an extension of the C programming language that introduced the concept of classes and object-oriented programming. The addition of classes allowed for the implementation of encapsulation, inheritance, and polymorphism, making C++ a powerful and versatile programming language.

    Rate this question:

  • 2. 

    Printf("%a"); will give what?

    • A.

      Beep

    • B.

      Substitution

    • C.

      Asterisk

    • D.

      None of the above

    Correct Answer
    A. Beep
    Explanation
    The printf("%a") function is used to print a floating-point number in hexadecimal notation. However, in this case, there is no floating-point number provided as an argument. Therefore, the function will not be able to perform the conversion and will produce an error sound or "beep" instead of printing any output.

    Rate this question:

  • 3. 

    JDK means

    • A.

      Java Designed Kit

    • B.

      Jelly Developed Kit

    • C.

      Java Development Kit

    • D.

      None of above

    Correct Answer
    C. Java Development Kit
    Explanation
    JDK stands for Java Development Kit, which is a set of tools and libraries used for developing Java applications. It includes the necessary components such as the Java compiler, debugger, and runtime environment. The JDK provides developers with the tools they need to write, compile, and run Java programs. Therefore, the correct answer is Java Development Kit.

    Rate this question:

  • 4. 

    Printf("%s is a good programmer" ,"John","Parker"); gives what output?

    • A.

      %s is a good programmer John Parker

    • B.

      John Parker is a good programmer

    • C.

      John is a good programmer

    • D.

      Error

    Correct Answer
    C. John is a good programmer
    Explanation
    The correct answer is "John is a good programmer." This is because the printf function is used to print formatted output, and in this case, the format string "%s is a good programmer" is provided. The "%s" is a placeholder for a string argument, and the first argument provided is "John." Therefore, the output will be "John is a good programmer." The second argument "Parker" is not used in the format string and will be ignored.

    Rate this question:

  • 5. 

    We can't write a variable starting from....

    • A.

      Upper case letter

    • B.

      Lower Case Letter

    • C.

      Number

    • D.

      All of above

    Correct Answer
    C. Number
    Explanation
    In most programming languages, it is not allowed to start a variable name with a number. Variable names must start with either an uppercase letter, lowercase letter, or an underscore. Starting a variable name with a number would result in a syntax error.

    Rate this question:

  • 6. 

    ADK stands for what?

    • A.

      Android Development Kit

    • B.

      Application Development Kit

    • C.

      Android Developer Kit

    • D.

      Application Developer Kit

    Correct Answer
    A. Android Development Kit
    Explanation
    The correct answer is Android Development Kit. The ADK acronym stands for Android Development Kit, which is a set of tools and resources provided by Google to developers for creating applications for the Android platform. It includes libraries, debugging tools, emulator, and documentation that help developers in building and testing Android apps. The term "Android Developer Kit" or "Application Developer Kit" are not the commonly used acronyms for ADK.

    Rate this question:

  • 7. 

    Android 6.0 version is called what?

    • A.

      Kitkat

    • B.

      Jelly Bean

    • C.

      Honeycomb

    • D.

      Marshmallow

    Correct Answer
    D. Marshmallow
    Explanation
    The correct answer is Marshmallow because Android 6.0 version was officially named Marshmallow.

    Rate this question:

  • 8. 

     Which symbol is used to create multiple inheritance in C++?

    • A.

      Dot

    • B.

      Comma

    • C.

      Dollar

    • D.

      None of the mentioned

    Correct Answer
    B. Comma
    Explanation
    In C++, the comma symbol is used to create multiple inheritance. Multiple inheritance allows a class to inherit from more than one base class. By using the comma symbol, multiple base classes can be listed in the inheritance list of a derived class, indicating that the derived class inherits from all of those base classes.

    Rate this question:

  • 9. 

     What are the things are inherited from the base class? 

    • A.

      Constructor and its destructor

    • B.

      Operator=() members

    • C.

      Friends

    • D.

      All of the mentioned

    Correct Answer
    D. All of the mentioned
    Explanation
    In object-oriented programming, when a class is derived from a base class, it inherits all the members of the base class, including its constructor and destructor, operator=() members, and friends. Therefore, all of the mentioned options are correct.

    Rate this question:

  • 10. 

    Android is 

    • A.

      An OS

    • B.

      An IS

    • C.

      A device

    • D.

      An IC

    Correct Answer
    A. An OS
    Explanation
    The given correct answer is "an OS" which stands for "operating system." An operating system is a software that manages computer hardware and software resources and provides common services for computer programs. In the context of the question, Android is specifically referred to as an operating system for mobile devices such as smartphones and tablets. It is developed by Google and is known for its user-friendly interface and wide range of applications.

    Rate this question:

Quiz Review Timeline +

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

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Aug 03, 2016
    Quiz Created by
    Urujjamal
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.