C#
8 months ago
lukacsk
Save
Edit
Host a game
Live GameLive
Homework
Solo Practice
Practice
10 QuestionsShow answers
  • Question 1
    30 seconds
    Q.

    What is the output of this code?

    int x = 8;

    // x = 3;

    Console.WriteLine(x);

    answer choices

    3

    8

    error

    24

  • Question 2
    30 seconds
    Q.

    Fill the gaps.

    ___Declaring an integer

    and printing it___

    int x = 42;

    Console.WriteLine(x);

    answer choices

    //.........//

    /*............*/

    <----...................----->

    ?-------------?

  • Question 3
    30 seconds
    Q.

    What is the type of the temp variable?

    var temp = 14.55;

    answer choices

    Double

    Boolean

    Integer

    String

  • Question 4
    30 seconds
    Q.

    What is the output of this code?

    var n1;

    n1 = true;

    Console.WriteLine(n1);

    answer choices

    1

    true

    error

    0

  • Question 5
    30 seconds
    Q.

    Fill in the blank to make the variable num a constant.


    _______int num=2;

    answer choices

    con

    constant

    const

    constans

  • Question 6
    30 seconds
    Q.

    Fill in the blanks to display the result of the multiplication of x and y.

    int x = 42;

    int y = 7;

    int z = x __ y;

    Console.WriteLine( __ );

    answer choices

    *.....z

    mul........z

    *......y

    -.......x

  • Question 7
    30 seconds
    Q.

    What is the output of this code?

    int x = 16;

    int y = 5;

    Console.WriteLine(x/y);

    answer choices

    3.2

    3

    error

    4

  • Question 8
    30 seconds
    Q.

    Which operator is used to determine the remainder?

    answer choices

    *

    %

    +

    -

  • Question 9
    30 seconds
    Q.

    Fill in the missing parentheses to have x equal 15.

    int x =__2 + 3__* 3;

    Console.WriteLine(x);

    answer choices

    (....)

    {.....}

    <....>

    |.....|

  • Question 10
    30 seconds
    Q.

    What is the alternative for x = x + 5?

    answer choices

    x += 5;

    x -= 4;

    x = y + 5;

    x=+5

Report Quiz
Join a game