Multiple Choice
What has the same result as
counter++
?What is the result of
89 % 4
?What is the result of
number
afterint number = 7.0 / 2.0;
?What is a valid value for a
boolean
?Suppose you want to store the age of your dog in a variable (the years). What would be the most obvious datatype for this?
What is the result of
11 / 5
?What is the correct definition of a primitive datatype?
Which of the data types below is not a primitive datatype?
What is the result of
83 % 4
?What is the resulting value in
q
?What is the most correct and complete definition of a variable?
Why are the operators
+
,-
,*
,/
, ... called binary operators?Which of the following code blocks makes use of compound operators?
Which of the following code snippets will not result in the value of
b
incrementing with1
?
Last updated