Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

there are some multiple choices in the picture with Java language Remaining Time: 24 minutes, 50 seconds. Question Completion Status: Question 1 Predict the output

there are some multiple choices in the picture with Java language
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Remaining Time: 24 minutes, 50 seconds. Question Completion Status: Question 1 Predict the output of the following program. class Test { int i=10; } public class Main { public static void main(String args[]) { Test t; System.out.println(t.i); 3 10 error null Moving to another question will save this response A Moving to another question will save this response. Question 2 Which of the following statement(s) are true for java? O JVM is responsible for converting Byte code to the machine specific code We only need JRE to run Java programs O JDK is required to compile java programs O All A Moving to another question will save this response. Question 3 What is output of the following program? 40; class T { int t = 20; T() { t } } class Main { public static void main(String args[]) { Tt1 System.out.println(ti.t); } } "O 20 040 error A Moving to another question will save this response. Question Completion Status: A Moving to another question will save this respons Question 4 In OOP, an object is an instance of a class? o True False A Moving to another question will save this response. Question 5 Constructor name can be different than its class name. True False A Moving to another question will save this response. * Question Completion Status: L Moving to another question will save this response. Question 6 What will be the output of the following program? public class Counter { int count = 0; Counter() { count++; } public static void main(String srt[]) { Counter c1 = new Counter(); Counter c3 = new Counter(); Counter c2 = new Counter(); System.out.print(c1.count + System.out.print(c2.count + "); System.out.print(c3.count); } } "); 0,0,0 0,1,2 1.1.1 1,2,3 Create a Visme Youtube Multi Dow... S Misk Academy, Gen... SCORM play page Remaining Time: 22 minutes, 42 seconds. * Question Completion Status: A Moving to another question will save this response. Question 7 Is there any error in the code? class Count{ private int count=10; } public class Main { public static void main(String srt[]) { Count c1 = new Count(); System.out.print(c1.count); } } True False Remaining Time: 22 Question Completion Status: A Moving to another question will save this response. Question 8 What is the output of the following program? public class Main public Main(String name) { System.out.println(name); } public static void main(String[] args) { Main myRose = new Main("red"); myRose = new Main("white"); } 31 O red white red, white error Remaining Time: 22 minutes, 08 seconds. * Question Completion Status: 4 A Moving to another question will save this response. Question 9 Select all the core concepts of OOPS. Abstraction Inheritance Polymorphism Functional 4 A Click Submit to complete this assessment. Question 10 Is there any Error in the following program? class Point { int m_x, my: public Point(int x, int y) { m_x = x; A m_y = y; } public static void main(String args[]) { Point p = new Point(); } } True False

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions