JAVA FUNDAMENTALS

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Hicabi Yeniay
Used 107+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following can be operands of arithmetic operators?
Numeric
Boolean
Both Numeric & Characters
Characters
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of the following Java program?
class Output {
public static void main(String args[]) {
int a = 1;
int b = 2;
int c;
int d;
c = ++b;
d = a++;
c++;
b++;
++a;
System.out.println(a + " " + b + " " + c); }
}
324
323
244
234
344
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following Java code?
class operators {
public static void main(String args[]) {
int x = 8;
System.out.println(++x * 3 + " " + x); }
24 8
27 9
24 9
27 8
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Java code?
class Relational_operator {
public static void main(String args[]) {
int var1 = 5;
int var2 = 6;
System.out.print(var1 > var2); }
}
5
6
FALSE
TRUE
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these is not an Assignment Operator?
&=
|=
+=
<=
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Java program?
class booloperators {
public static void main(String args[]) {
boolean var1 = true;
boolean var2 = false;
System.out.println((var1 & var2));
}
}
True
False
1
0
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of the following Java program?
public static void main(String args[]) {
char a = 65;
char b = 66;
char d = 68;
d--;
char c = --b;
a++;
System.out.println(b);
System.out.println(d);
System.out.println(b);
System.out.println(a);
}
}
A
C
A
B
B
A
B
A
B
A
C
A
A
D
A
B
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Java Chapter 1 CS2

Quiz
•
9th - 12th Grade
25 questions
Global 3r ESO

Quiz
•
12th Grade
20 questions
Computer Application Practice Quiz Class 10

Quiz
•
10th Grade
20 questions
แบบทดสอบความรู้เบื้องต้น, ตัวแปรและชนิดข้อมูล ม.4/1

Quiz
•
9th Grade
15 questions
Quiz on String

Quiz
•
12th Grade
20 questions
SKT4-1.3: PEMBOLEH UBAH, PEMALAR DAN JENIS DATA

Quiz
•
10th - 11th Grade
16 questions
Java Conditional Statements

Quiz
•
9th Grade
15 questions
Class X - Java 1

Quiz
•
10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade