
Java Programming Quiz

Quiz
•
Engineering
•
University
•
Medium
Gouthami Reddy
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Who developed Java and when?
James Gosling, 1991
Bjarne Stroustrup, 1985
Guido van Rossum, 1995
Dennis Ritchie, 1972
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is not a Java buzzword?
Robust
Secure
Platform Dependent
Object-Oriented
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of an int in Java?
2 bytes
4 bytes
8 bytes
Depends on OS
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of the code below? int a = 5, b = 2; System.out.println(a / b);
2.5
2
3
Compilation Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Correct way to declare an array in Java?
int arr[] = new int[5];
int arr = int[5];
arr[] = new int[5];
array int arr[5];
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this print? int[] nums = {1, 2, 3}; System.out.println(nums[1]);
1
2
3
Compilation Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of this code? int x = 10; x += 5 * 2; System.out.println(x);
20
30
25
15
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Loops & Operator

Quiz
•
University
15 questions
TRICODE CHALLENGE ROUND 1

Quiz
•
University
13 questions
Oops moment/1

Quiz
•
University
10 questions
Java Array Mastery

Quiz
•
University
12 questions
LinkedLists

Quiz
•
University
12 questions
Polymorphism Quiz

Quiz
•
University
10 questions
Conceptos C++

Quiz
•
University
14 questions
Preguntas sobre Punteros en C/C++

Quiz
•
University
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