Professional Documents
Culture Documents
Pre-Quiz - Attempt Review7
Pre-Quiz - Attempt Review7
Pre-Quiz - Attempt Review7
Dashboard / App Dev / Stage - 1 / Java Programming / Classes and Objects, Packages
Quiz review
Started on Tuesday, 12 September 2023, 12:28 AM
State Finished
Completed on Tuesday, 12 September 2023, 12:34 AM
Time taken 6 mins 42 secs
Marks 4.00/5.00
Grade 80.00 out of 100.00
Feedback Congratulations!! You have passed by securing more than 80%
Question 1
Correct
37547
In Eclipse IDE, if we provide a workspace, it should already exist. If not, it will not open.
Select one:
True
False
37547
37547
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=57034&cmid=1201 1/4
9/12/23, 12:38 AM Pre-Quiz: Attempt review
Question 2
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
37547
5. float
6. short
Select one:
a.
3 and 4
b.
1 and 3
c. 3, 4 and 5
d.
2,3, 4 and 6
2,3, 4 and 6
37547
37547
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=57034&cmid=1201 2/4
9/12/23, 12:38 AM Pre-Quiz: Attempt review
Question 3
Incorrect
{
int a = 2, b = 0;
for ( ; b < 20; ++b) {
if (b % a == 0)
continue;
else if (b == 10)
37547
break;
else
}
}
Select one:
a.
2 4 6 8 12 14 16 18
b.
1 3 5 7 9 11 13 15 17 19
d.
13579
Question 4
Correct
37547
When using eclipse whichever classes are needed for the present class can be imported automatically.
Select one:
True
False
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=57034&cmid=1201 3/4
9/12/23, 12:38 AM Pre-Quiz: Attempt review
Question 5
Correct
int i=20;
if(i>10)
{
System.out.println( "The value of i is "+i);
i++;
if(i%2!=0)
break;
}
Select one:
37547
a. Code compiles but will not execute
b.
Compilation fails
c.
The value of i is 10
d.
The value of i is 20
◄ Additional Learning
Jump to...
37547
37547
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=57034&cmid=1201 4/4