Java Coding

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Charles Martinez
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the output of the code segment :
out.print(45-8*2/3+-6);
34
18
-24
50
46
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the output of the code segment :
out.println("Socks");
out.print("Bubba");
out.println("Binky");
Socks
Bubba
Binky
SocksBubbaBinky
Socks
BubbaBinky
SocksBubba
Binky
Socks Bubba Binky
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the output of the code segment:
String str="abcdefgh";
out.print(str.substring(4)+ str.substring(1, 3));
defghab
efghbc
defghabc
efghbcd
fghbcd
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which of the lines shown on the right will print false?
boolean a=true,b=true,c=true;
out.println(a&&b&&c);//line #1
out.println(a&&b||c);//line #2
out.println(a&&b^c);//line #3
out.println(a||b^c);//line #4
line 1
line 2
line 3
line 4
more than one line
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which of the following represents the output of the main method shown?
125 5 50 10
125 55 50 10
275 5 50 10
275 55 50 5
0 50 5 10
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the output of the code segment above?
true true true
true false true
true false false
false true false
false true true
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is printed by the code segment above?
11.25
Total=11.25
Total=11
Total=74.25
Total=74
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
AP CSA Unit 1 & 2 Review

Quiz
•
9th - 12th Grade
10 questions
Computer Quiz(Java)(16-10-2020)

Quiz
•
9th Grade
11 questions
SK T4 : Tatasusunan

Quiz
•
11th - 12th Grade
12 questions
Java Code

Quiz
•
10th - 12th Grade
15 questions
Functions and Parameters Quiz

Quiz
•
9th - 12th Grade
15 questions
PHP - Quiz#1

Quiz
•
12th Grade
10 questions
Java Math

Quiz
•
1st - 12th Grade
8 questions
String Handling in Java

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade