
Apex Session 2
Quiz
•
Professional Development
•
1st Grade
•
Practice Problem
•
Hard
M Salman
Used 2+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
Integer number = 0;
if (number > 0){ system.debug(The number is positive.);}
else if (number < 0) { system.debug('The number is negative.');}
else { system.debug('The number is 0.');}
The number is positive.
The number is negative.
The number is 0.
None of them.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
Integer num = 5;
if(num = 5){
system.debug(num);
}
5
6
error
0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to know the size of list?
size()
isEmpty()
isLength
isSize()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Remove one element from the list where element value is 2
List<Integer> numList = new List<Integer>{1 , 2};
numList.remove(0);
numList.remove(1);
numList.remove(2);
numList.remove(3);
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
List<String> days = new List<string>{'a','b','c','d'};
for(Integer j = 1; j < days.size(); j++ ){
system.debug(days.get(j));
}
a to d
a to c
b to d
c to d
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times this loop will run:
Integer num = 10;
while(num < 20 ){
system.debug(num);
}
1 time
10 times
20 times
infinite times (Apex CPU time limit exceeded)
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
boolean flag = false;
if(flag){ system.debug('The output is false');
else if(!flag){ system.debug('The output is true');}
else{system.debug('I do not know the output');}
The output is false
The output is true
I do not know the output
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
17 questions
KONWENCJE W TRANSPORCIE
Quiz
•
1st Grade
10 questions
Ôn tập Giữa học kì 2. Toán 6
Quiz
•
1st - 3rd Grade
20 questions
QUIZ 1 : TOPIC 8 [PROCESS COSTING]
Quiz
•
1st Grade - University
12 questions
Ch-8 Manfaat Informasi Akuntansi bagi Investor
Quiz
•
1st Grade - Professio...
20 questions
Give kids a hand | Scratch Round1
Quiz
•
1st - 7th Grade
16 questions
Google Classroom
Quiz
•
KG - 12th Grade
19 questions
ch 7 Kerangka Kerja Konseptual
Quiz
•
KG - Professional Dev...
20 questions
Technology
Quiz
•
KG - 12th Grade
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 Professional Development
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Life Cycle of a Frog
Quiz
•
1st - 2nd Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
100th Day of School 1st/2nd
Quiz
•
1st - 2nd Grade
15 questions
Reading Comprehension
Quiz
•
1st - 5th Grade
10 questions
Identifying Physical and Chemical Changes
Interactive video
•
1st - 5th Grade
10 questions
Exploring the American Revolution
Interactive video
•
1st - 5th Grade
