General Computer Programming Quiz

10 Questions | Total Attempts: 2230

SettingsSettingsSettings
Please wait...
General Computer Programming Quiz

There different types of programming languages in use today and we have been able to cover each of the major ones in depth. Do you feel like you understood them all, when and how to apply them? In this quiz you will get to review all you know about Java, , and C++. Give it a shot and be sure to keep revising!


Questions and Answers
  • 1. 
    What does HTML stand for?
    • A. 

      Hyper Trainer Marking Language

    • B. 

      Hyper Text Marketing Language

    • C. 

      Hyper Text Markup Language

    • D. 

      Hyper Text Markup Leveler

  • 2. 
    Does the following C++ script have errors? #include "stdafx.h" #include <iostream> using namespace std; int main() {          cout<<"Hello world"<<endl          return 0; }
    • A. 

      Yes

    • B. 

      No

  • 3. 
    In Java, a method is a container that holds classes.
    • A. 

      True

    • B. 

      False

  • 4. 
    <h1>Text</h1> is the correct way of making a header in HTML.
    • A. 

      True

    • B. 

      False

  • 5. 
    Which of the following is the correct way of making a string in Java?
    • A. 

      String "Text";

    • B. 

      String text = 'text';

    • C. 

      String text = "text"

    • D. 

      String text = "text";

  • 6. 
    Which of the following is the correct way to use the standard namespace in C++?
    • A. 

      Using namespace std;

    • B. 

      Using namespace standard;

    • C. 

      Using standard namespace;

    • D. 

      Standard namespace used;

  • 7. 
    Is this the correct way to make an object in Java? Class class = new Class();
    • A. 

      True

    • B. 

      False

  • 8. 
    Is this how you import something in C++? #include <string>
    • A. 

      No

    • B. 

      Yes

  • 9. 
    Is this HTML code correct? <html> <head> <title>Title</title> </head> <h1>Header</h1> <p>Paragraph</p> </html>
    • A. 

      Yes

    • B. 

      No

  • 10. 
    Is it less bytes to use:       long l = 100; then:       int i = 10;
    • A. 

      Yes

    • B. 

      No