II_III Years-Java, Python, and C Quiz

Quiz
•
Other
•
Professional Development
•
Hard
SHANMUGAPRIYA.P MCE-LECT/IT
Used 6+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a primitive data type in Java?
int
float
String
boolean
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which keyword is used to define a constant in Java?
const
final
static
constant
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of Java code System.out.println(5 + "5");?
10
55
5 + 5
Error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of the static keyword in Java?
To create a constant
To allow a method or variable to be accessed without creating an instance of the class
To prevent inheritance
To define a global variable
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is true about method overloading?
Methods must have the same name and return type
Methods must have different names
Methods must have the same name but different parameters
Methods must have the same name and parameters
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the default value of an int variable in Java?
0
1
null
undefined
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a valid access modifier in Java?
public
private
protected
global
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
Terrestrial and Coastal Navigation II

Quiz
•
Professional Development
45 questions
Seleksi TKPSDA

Quiz
•
Professional Development
50 questions
GK- Marathon 13,14 & 15

Quiz
•
8th Grade - Professio...
50 questions
I Years_Python

Quiz
•
Professional Development
46 questions
Domain 4: Web Applications

Quiz
•
Professional Development
52 questions
untitled

Quiz
•
Professional Development
45 questions
Test 3 - CCNA 2

Quiz
•
Professional Development
53 questions
Kebijakan Publik dan Analisis

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade