GoConqr has a new look! Let us know what you think.

Quiz

C# basics: variables, loops, arrays and classes

YouTube Channel 50 questions Updated 22 Jan 2017

Take the quiz

Questions in this quiz (50)

  1. 11. C-style languages are
    1. Aa) C, C#
    2. Bb) C, C++
    3. Cc) C, C#, C++
    4. Dd) C, C#, C++, Java
    5. Ee) C#, C++
  2. 22. Choose the incorrect statement for C style languages
    1. Aa) semicolons are not used to denote the end of a statement
    2. Bb) curly brackets are used to group statements
    3. Cc) variables are assigned using an equals sign, but compared using two consecutive equals
      sign
    4. Dd) square brackets are used with arrays
    5. Ee) a, b, c, d
  3. 33. Which aspects does variable have?
    1. Aa) type, size and memory address
    2. Bb) memory address, type and value
    3. Cc) type and value
    4. Dd) value, size and memory address
  4. 44. What declaration of variables is the correct?
    4. What declaration of variables is the correct?
    1. Aa) char c;i;
    2. Bb) int b;c;
    3. Cc) char c, char s;
    4. Dd) double a, b;
  5. 55. Declaration of variable is not a statement of C# language, but ends with semicolon.
    1. Aa) yes
    2. Bb) no
  6. 66. Declaration of variable is a statement of C# language.
    1. Aa) yes
    2. Bb) no
  7. 77. Which rule is correct when naming variables?
    1. Aa) the first character must be letters, underscore only
    2. Bb) an identifier can consist of letters, number and reserved words
    3. Cc) reserved words can be used as variable names
    4. Dd) the first character must be only letter
  8. 88. C# is case sensitive language
    1. Aa) yes
    2. Bb) no
    3. Cc) it depends on data type
  9. 99. Choose the correct statement with initializing.
    1. Aa) string c="0";
    2. Bb) int i="0";
    3. Cc) char c="0";
    4. Dd) int i='0';
  10. 1010. What method in C# is Console output?
    1. Aa) ReadLine
    2. Bb) WriteLine

Information

Description
Quiz on Untitled, created by YouTube Channel on 22/01/2017.
Language
English
Views
8
History
Created on 22 Jan 2017 · updated on 22 Jan 2017
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?