Basic Programming skills quiz

Which of the following is NOT a valid variable name?
Test_2
Num1
25_char
K
Which of the following is not a valid array declaration
Int[] array = new int[5]
Int[] array = {3, 6, 1, 6 , 2, 6}
String[] array = new String[3 + 6]
String[] array = new String{20}
Which of the following values cannot be assigned to a double variable
5 * 3
2 + 7.9
10
"50"
Which of the following makes the String value of "Hello world!"
"Hello" + "world!"
"Hello + world!"
"Hello " + "world!"
"Hell + oworld!"
Which of the following is would result in an error
For(int I = 0; I < 4)
For(String str : stringArray)
While(num != 5);
Do{ }while(num > 4);
Which of the following is not a valid value for a boolean variable in java
True
False
Null
Nothing
Assume int j = 5, which of the following makes k as 10
Int k = j + ++j - 1
Int k = j + j++ - 2
Int k = j + j - 2
Int k = j + j * 0 + 6
Which of the following would be suitable to assign grade to a mark
Switch statements
Multiple if...else
Nested multiple if...else
While loop
{"name":"Basic Programming skills quiz", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Which of the following is NOT a valid variable name?, Which of the following is not a valid array declaration, Which of the following values cannot be assigned to a double variable","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker