Game Preview

Week 7 Review

  •  English    20     Public
    Review of CP
  •   Study   Slideshow
  • How is A in hex represented in binary?
    1010
  •  5
  • Convert the following binary number to hex: 1010 1111 1000 0101
    AF85
  •  15
  • How many bytes float data type can store?
    4
  •  5
  • What is 2 in the power of 0?
    1024
  •  5
  • How to convert binary number 11001 with size 8 Two's complement number??
    11100111
  •  20
  • How to put multiple lines comment in c++?
    /* */
  •  10
  • What does "cin" stand for?
    extracts from stream; (i.e: gets input from console)
  •  15
  • What is result of this operation TRUE || FALSE?
    TRUE
  •  10
  • What does "break" stand for?
    It is used to terminate the loop
  •  15
  • What does "continue" stand for?
    The continue statement breaks one iteration (in the loop),
  •  15
  • What is the output?
    "Looking forward to the Weekend"
  •  15
  • What is the index number of the last element of an array with 9 elements?
    8
  •  15
  • What is this operator called "(....)?... : ..." ?
    conditional
  •  20
  • How many types of comments are there in c++?
    2 - Single line comments uses double slash //. Multiple line comments uses /* comment inside */.
  •  20
  • How do you create a variable with the floating number 2.8?
    float num=2.8;
  •  20
  • Which operator is used to multiply numbers?
    *
  •  5