
IT A OOPs Lab Quiz1
Authored by Varalaxmi P N V
Computers
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java code?
class increment {
public static void main(String args[])
{
int g = 3;
System.out.print(++g * 8);
}
}
32
33
24
25
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not an OOPS concept in Java?
Polymorphism
Inheritance
Compilation
Encapsulation
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class Output
{
public static void main(String args[])
{
int arr[] = {1, 2, 3, 4, 5};
for ( int i = 0; i < arr.length - 2; ++i)
System.out.println(arr[i] + " ");
}
}
1 2 3 4 5
1 2 3 4
1 2
1 2 3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the extension of compiled java classes?
.txt
.js
.class
.java
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
class recursion
{
int func (int n)
{
int result;
if (n == 1)
return 1;
result = func (n - 1);
return result;
}
}
class Output
{
public static void main(String args[])
{
recursion obj = new recursion() ;
System.out.print(obj.func(5));
}
}
1
120
0
) None of the mentioned
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java code?
class output
{
public static void main(String args[])
{
String c = "Hello i love java";
boolean var;
var = c.startsWith("hello");
System.out.println(var);
}
}
0
true
1
false
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
class output
{
public static void main(String args[])
{
StringBuffer s1 = new StringBuffer("Quiz");
StringBuffer s2 = s1.reverse();
System.out.println(s2);
}
}
QuizziuQ
ziuQQuiz
Quiz
ziuQ
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
Presentador EMAZE
Quiz
•
Professional Development
13 questions
Functions
Quiz
•
5th Grade - Professio...
10 questions
Kuis Array
Quiz
•
Professional Development
10 questions
Structure Data Review
Quiz
•
University - Professi...
15 questions
Security+ Study Guide-01 Mastering Security Basics
Quiz
•
Professional Development
9 questions
Sains Komputer Tingkatan 4 - 1.5.1 Jenis Ralat
Quiz
•
KG - Professional Dev...
15 questions
IP Addressing
Quiz
•
10th Grade - Professi...
15 questions
Intro to Transformation
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development