0% found this document useful (0 votes)
625 views4 pages

Pre-Quiz - Attempt Review

The document is a summary of a quiz taken in Eclipse IDE on the topics of classes and objects, packages in Java programming. It shows that the user answered 5 questions correctly, receiving full marks and a grade of 100%. It then lists each question, the correct answer, and feedback. The questions covered topics like output of code snippets, importing classes in Eclipse, workspace requirements, valid data types for switch statements, and predicting output of a for loop.

Uploaded by

19K41A0 450
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
625 views4 pages

Pre-Quiz - Attempt Review

The document is a summary of a quiz taken in Eclipse IDE on the topics of classes and objects, packages in Java programming. It shows that the user answered 5 questions correctly, receiving full marks and a grade of 100%. It then lists each question, the correct answer, and feedback. The questions covered topics like output of code snippets, importing classes in Eclipse, workspace requirements, valid data types for switch statements, and predicting output of a for loop.

Uploaded by

19K41A0 450
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

11/14/23, 3:35 PM Pre-Quiz: Attempt review


 Dashboard / App Dev / Stage - 1 / Java Programming / Classes and Objects, Packages

Quiz review
Started on Sunday, 12 November 2023, 3:21 PM
State Finished
Completed on Sunday, 12 November 2023, 3:24 PM
Time taken 2 mins 40 secs
Marks 5.00/5.00
Grade 100.00 out of 100.00
Feedback Congratulations!! You have passed by securing more than 80%

Question 1
Correct

Mark 1.00 out of 1.00

42763
What will be the output of the following code?

int i=20;

if(i>10)

{
System.out.println( "The value of i is "+i);

i++;
if(i%2!=0)

}
break;
42763
Select one:
a. 
Compilation fails

b. Code compiles but will not execute

c.
The value of i is 10

d.
The value of i is 20

42763
Your answer is correct.

The correct answer is: Compilation fails

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=684527&cmid=1201 1/4
11/14/23, 3:35 PM Pre-Quiz: Attempt review

Question 2
Correct

Mark 1.00 out of 1.00

State True or False

When using eclipse whichever classes are needed for the present class can be imported automatically.

Select one:
True 

False

The correct answer is 'True'.

Question 3
Correct

42763
Mark 1.00 out of 1.00

In Eclipse IDE, if we provide a workspace, it should already exist. If not, it will not open.

Select one:
True

False 

The correct answer is 'False'.

42763

42763

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=684527&cmid=1201 2/4
11/14/23, 3:35 PM Pre-Quiz: Attempt review

Question 4
Correct

Mark 1.00 out of 1.00

switch(a)

{
default:
System.out.println("Welcome");

}
Of which data types can the variable ‘a’ be?
1. long
2. byte

3. int
4. char

42763
5. float

6. short

Select one:
a. 
2,3, 4 and 6

b. 3, 4 and 5

c.
3 and 4

d.
1 and 3

Your answer is correct.

The correct answer is:


42763
2,3, 4 and 6

42763

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=684527&cmid=1201 3/4
11/14/23, 3:35 PM Pre-Quiz: Attempt review

Question 5
Correct

Mark 1.00 out of 1.00

Predict the output.

public class Test {


public static void main(String args[])

{
int a = 2, b = 0;
for ( ; b < 20; ++b) {
if (b % a == 0)

continue;
else if (b == 10)

42763
break;

else
System.out.print(b + " ");

}
}

Select one:
a. 
1 3 5 7 9 11 13 15 17 19

b.
2 4 6 8 12 14 16 18

c. Code executes but gives no output 42763


d.
13579

Your answer is correct.

The correct answer is:


1 3 5 7 9 11 13 15 17 19

◄ Additional Learning

Jump to...
42763
Classes and Objects, Packages Intro video ►

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=684527&cmid=1201 4/4

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy