C++
7 months ago
ralajazbeh
Save
Edit
Host a game
Live GameLive
Homework
Solo Practice
Practice
20 QuestionsShow answers
  • Question 1
    30 seconds
    Q. The process of creating a new variable without value
    answer choices
    declaration
    naming
    instantiation
    assigning
  • Question 2
    30 seconds
    Q.

    What does <= mean?

    answer choices

    less than

    greater than

    less than or equal to

    greater than or equal to

  • Question 3
    30 seconds
    Q.

    What is the only function all C++ programs must contain?

    answer choices

    start()

    system()

    main()

    program()

  • Question 4
    30 seconds
    Q.

    What punctuation is used to signal the beginning and end of code blocks?

    answer choices

    { }

    -> and <-

    BEGIN and END

    ( and )

  • Question 5
    30 seconds
    Q.

    Which of the following is a correct comment?

    answer choices

    */ Comments */

    ** Comment **

    /* Comment */

    { Comment }

  • Question 6
    30 seconds
    Q. The process of creating a new variable without value
    answer choices
    declaration
    naming
    instantiation
    assigning
  • Question 7
    30 seconds
    Q.

    What does <= mean?

    answer choices

    less than

    greater than

    less than or equal to

    greater than or equal to

  • Question 8
    30 seconds
    Q. A list of instructions that enable a computer to perform a specific task is a...
    answer choices
    Computer Program
    Algorithm
    Machine Code
    Binary Code
  • Question 9
    180 seconds
    Q. Which command moves the shown text to the next line?
    answer choices
    \t
    \n
    \r
    \s
  • Question 10
    45 seconds
    Q. After running the following code, what will be the value of x?
    y = 3;
    x = 5 * y;
    answer choices
    3
    5
    15
    0
  • Question 11
    30 seconds
    Q. A programmer is:
    answer choices
    person who writes code and communicates instructions to a computer
    person who types
    person who studies computers
    error or mistake in your code
  • Question 12
    45 seconds
    Q. What is the output of this program?
    Program
    int main()
    {
    cout<<"Hi everybody";
    return 0;
    }
    answer choices
    "Hi everybody"
    Hi everybody"
    Hi everybody
    "Hi everybody
  • Question 13
    20 seconds
    Q. ... variables store whole numbers (-4, 3, 51, etc). 
    answer choices
    Float
    Logical
    Character
    Integer
  • Question 14
    20 seconds
    Q. ... point variables store decimal numbers (3.5, -5,123, 4.0, etc). 
    answer choices
    Float
    Integer
    Logical
    Character
  • Question 15
    30 seconds
    Q.

    Which of the following is NOT a logical operator in C++ language?

    answer choices

    &

    &&

    ||

    !

  • Question 16
    30 seconds
    Q.

    Which of the following is NOT a comparison operator in C++ language?

    answer choices

    >

    <=

    =

    ==

  • Question 17
    120 seconds
    Q.

    Evaluate the following expressions to true or false


    3!=4-1

    answer choices

    true

    False

  • Question 18
    120 seconds
    Q.

    Evaluate the following expressions to true or false


    5 >= (1+6)-4

    answer choices

    True

    False

  • Question 19
    120 seconds
    Q.

    Evaluate the following expressions to true or false

    5+1==6 || 8-1>4

    answer choices

    True

    False

  • Question 20
    120 seconds
    Q.

    If originally x=2,y=0, and z=1, what is the value of x, y, and z after executing the following code?


    if (x>y)


    y=x;

    else

    z=x;

    answer choices

    x=2 y=2 z=1

    x=0 y=2 z=0

    x=2 y=1 z=1

    x=2 y=0 z=1

Report Quiz
Join a game