Code Junction 4
Quiz
•
Computers
•
University
•
Hard
Amit Maan
Used 4+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Number of primitive data types in Java are?
6
7
8
9
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the size of float and double in java?
32 and 64
32 and 32
64 and 64
64 and 32
3.
MULTIPLE CHOICE QUESTION
3 mins • 5 pts
Find the output of the following code:
int Integer = 24;
char String = ‘I’;
System.out.print(Integer);
System.out.print(String);
compile error
throws exception
I
24 I
4.
MULTIPLE CHOICE QUESTION
3 mins • 5 pts
Find the output of the following program:
public class Solution{
public static void main(String[] args){
short x = 10;
x = x * 5;
System.out.print(x); } }
50
10
compile error
exception
5.
MULTIPLE CHOICE QUESTION
3 mins • 5 pts
Find the output of the following program:
public class Solution{
public static void main(String[] args){
byte x = 127;
x++;
x++;
System.out.print(x); } }
-127
127
129
2
6.
MULTIPLE CHOICE QUESTION
3 mins • 5 pts
Find the output of the following program.
public class Solution{
public static void main(String[] args){
int[] x = {120, 200, 016};
for(int i = 0; i < x.length; i++){
System.out.print(x[i] + “ “); } } }
120 200 016
120 200 14
120 200 16
none
7.
MULTIPLE CHOICE QUESTION
3 mins • 5 pts
Find the value of A[1] after execution of the following program.
int[] A = {0,2,4,1,3};
for(int i = 0; i < a.length; i++){
a[i] = a[(a[i] + 3) % a.length]; }
0
1
2
3
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Quiz Inf X.B
Quiz
•
10th Grade - University
20 questions
UTS Web Lanjut
Quiz
•
University
20 questions
AI BootCamp: 2024 Edition- Session 1
Quiz
•
University
16 questions
Python Basics
Quiz
•
KG - University
19 questions
Pokemon
Quiz
•
1st Grade - Professio...
20 questions
Python Recap
Quiz
•
7th Grade - University
20 questions
IT Essential UIUX Chapter 1 & 2
Quiz
•
University
18 questions
Programming in C language
Quiz
•
12th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
