0 of 20 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 20 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Assembly is a form of low-level programming language
What is the C# code used to print out “Hello to Myself”?
const double myValue = 23,5;
The upper statement initialisation of a constant double is correct
How do you create a variable with the numeric value 5.0?
Fill in the missing:
A boolean only has bytes of storage.
Which of the following lines of code will NOT result in an error?
Which data type is used to create a variable that should store text?
State whether the following line of code will run fine or give you an error, this is true or false.
int double number = 22;
If one wants to store/assign the name of a city to cityName, cityName is referred to as a
It is appropriate to make the value of Pi, π = 3.14, a constant
Look at the following segment of code:
int base = 7;
double perpendicularHeight = 8.51;
int areaOfTriangle = 0;
areaOfTriangle = 0.5 * base * perpendicularHeight;
Console.WriteLine(areaOfTriangle);
What will be printed out on the console?
The numerical data types (int, double) can only store positive numbers.
Fill in the blank
Which operator is used to divide variables?
The sign.
What is the value stored in ‘score’ after the code was ran?
int score = 0;
score++;
score = 2 + 2;
The operator used to compare whether 2 values are equals or not is
10 % 2 = 0. What does the operator ” % ” do?
Filling in the blank
Fill in the operator that will result in the following line of code to be ‘false’.
3 > 4 54 < 68
The equal sign (=) is an operator because it is used when the left hand side is the same as the right hand side.
How would you write the following as code:
Is A equal or less than B?
(Note: do not add a space between each character)
A B
The Logical AND operator will be ‘true’ if and only if both statements are ‘true’?