Basic Java

A colorful and engaging illustration of a computer screen displaying Java code snippets, with various programming symbols and a person studying nearby.

Java Basics Quiz

Test your knowledge of basic Java concepts with this engaging quiz! Whether you're a student or a teacher, this quiz is designed to help you reinforce your understanding of Java programming basics.

  • 11 challenging questions
  • Multiple choice and open-ended formats
  • Instant feedback on your answers
11 Questions3 MinutesCreated by CodingWizard101
Which of the following can be operand of arithmetic operators ?
Numeric or character
Character
Numeric
Boolean
Which of these is an correct array declaration?
Int arr[] = new int[5];
Int []arr2 = new int[5];
Int []arr = new arr[5];
1+2+3
The while loop repeats a set of code while the condition is not met ?
True
False
Which of these are selection statements in java
For()
If()
Continue
Break
Suppose a,b, and c are int variables and a= 5 and b = -5. What value assigned to each variable after each statement executes ? a = (++b) +3;
A= -1 and b =-5
B= -1 and a =-4
A= -2 and b =5
A= -1 and b =-4
Suppose a,b, and c are int variables and a= 5 and b = -5. What value assigned to each variable after each statement executes ? a = (b++) +3;
A= -1 and b =-5
B= -4 and a =-2
A= -2 and b =5
A= -1 and b =-4
What should be expression1 evaluate to in using ternary operator as in this line :
Boolean
Integer
Non
Floating
A do-While loop is a post-test loop
True
False
A While loop is a post-test loop
False
True
Int a=3; b=6; c=3; System.out.println(a + b + c); the output is?
3 6 3
Error
12
363
{"name":"Basic Java", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of basic Java concepts with this engaging quiz! Whether you're a student or a teacher, this quiz is designed to help you reinforce your understanding of Java programming basics.11 challenging questionsMultiple choice and open-ended formatsInstant feedback on your answers","img":"https:/images/course8.png"}
Make your own Survey
- it's free to start.