Pre-Quiz - Attempt Review
Pre-Quiz - Attempt Review
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
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
c.
The value of i is 10
d.
The value of i is 20
42763
Your answer is correct.
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
When using eclipse whichever classes are needed for the present class can be imported automatically.
Select one:
True
False
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
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
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
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
{
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
◄ 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