Click run or press F9 to get results here…Generated 6 test cases from the key solution.
Quiz#1_Pointers IAttemptsHistoryMark: 25
Q1In the main() function, perform the following tasks:25MARKS
1Declare mark and bonus 1 mk
2Declare pointers m1, m2 2 mks
3Declare int pointer ptrB 1 mk
4Point ptrB at bonus 2 mks
5Print mark and its address 2 mks
main.cppnew +
Click run or press F9 to get results here…
Test Case 1 ✓
Expected OutputMark = 80.3 , Bonus = 5
Your OutputMark = 80.3 , Bonus = 5
Test Case 2 ✓
Expected OutputMark = 80.3 , Bonus = 5
Your OutputMark = 80.3 , Bonus = 5
Test Case 3 ✓
Expected OutputMark = 80.3 , Bonus = 5
Your OutputMark = 80.3 , Bonus = 5
Test Case 4 ✓
Expected OutputMark = 80.3 , Bonus = 5
Your OutputMark = 80.3 , Bonus = 5
Test Case 5 ✓
Expected OutputMark = 80.3 , Bonus = 5
Your OutputMark = 80.3 , Bonus = 5
Mark00.8 Seconds
#
ID
Name
Section
Quiz2
Quiz1
Quiz1_v0
1
183510
Student 01
3
0
0
-
2
183511
Student 02
2
-
-
6.8
3
183512
Student 03
2
10
10
10
4
183513
Student 04
2
10
10
10
5
183514
Student 05
2
10
10
0
6
183515
Student 06
1
-
-
-
7
183516
Student 07
1
10
10
10
8
183517
Student 08
2
-
-
-
9
183518
Student 08
3
10
10
0
Piecewise Function V5AttemptsHistoryMark: 10
Write a Java program that calculates the value of the piecewise function f(x) for any given real x.
f(x) = |x + 4| − 2 if x < −2 3x − 5 if −2 ≤ x < 4 12 / (x − 4) if x ≥ 4
Read a double value x from the user.
Use a multi-way if-else structure.
Calculate using Math functions.
Print with exactly two decimal places.
main.javanew +
Test Case 1
Expected Outputf(-5.0) = -1.00
Your Outputf(-5.0) = -1.00
Test Case 2 ✓
Expected Outputf(0.0) = -5.00
Your Outputf(0.0) = -5.00
Test Case 3 ✓
Expected OutputUndefined (Division by zero)
Your OutputUndefined (Division by zero)
Test Case 4 ✓
Expected Outputf(6.0) = 6.00
Your Outputf(6.0) = 6.00
10Override
Code history diff11/17/2026, 5:34:38 PM → 5:35:38 PM
0 / 16▶✕
From 11/17/2026, 5:34:38 PMTo 11/17/2026, 5:35:38 PM
ANSWER DIFF main.java
boolean isDefined = true; if (x < -2) {- result = Math.abs(x + 4) -+ result = Math.abs(x + 4) - 2; }- else if (x >= -2 && x < 4) {+ else if (x >= -2 && x < 4) {+ result = 3 * x - 5;+ } else result = 12.0 / (x - 4); // Display result
Score distribution Share of 37 students, out of 30 marks
0–25%0%
25–50%0%
50–75%0%
75–100%0%
Mean score15.91 / 3053%
Median / SD20 / 6.47Skew / mean differs
High / Med / Low24 / 20 / 0Score range
Pass rate (≥ 50%)45.7%24 / 37 passed
Reliability0.13Below 0.7
Completion37 / 46Avg time 1:42 h
Questions Analysis
ID
Title
Type
Band
Mark
n
Mean
Success
17121
Text Analysis
<PY>
Easy
10
37
8.94
89%
17122
Student Marks Report
<PY>
Easy
10
35
7.26
71%
17130
Sensor Readings
<PY>
Easy
10
15
0.37
0% Low success for an Easy item
About iCode
A complete learning management system, built coding-first
iCode brings course management, enrolment, weekly materials, practice, exams, grading, messaging, analytics and live monitoring into one platform, with nine question types and auto-grading in 14+ programming languages. Proven at JUST with 8.5k students per semester.
Hasan AlbzoorFounder, Owner, Software Engineer & Developer
Where it started
A week of grading became a platform
In the first semester of 2023–2024, Hasan Albzoor was teaching C++ to more than 500 students. The first quiz came back through the university eLearning system, and every submission had to be downloaded and compiled. Marking it took a week. Two weeks later, the second quiz ran on the first core of iCode.
01
The first quiz
Five hundred files, one lecturer, a full week of grading.
02
Two weeks later
Every result appeared instantly, in milliseconds.
03
Within a month
C++ and Python. Colleagues started examining and auto-grading.
Master’s in Computer Science. Lecturer & developer.
Mustafa Radaideh
Marketing & Support
Master’s in Computer Information Systems. Lecturer & developer.
Rasha Ahmad
Front-end Developer
Master’s in Architecture. Entrepreneur, graphic design & front-end.
The case for iCode
Why choose iCode
iCode gives institutions one platform for the whole semester, with the programming depth a generic LMS lacks.
One platform instead of many
Materials, practice, exams, grading, messaging, announcements, analytics and monitoring share one login, one course workspace and one permission model. Students never switch between a notes site, a compiler lab and a quiz tool.
Coding-native assessment
Multi-language compile-and-run, weighted test cases and multi-file answers across 14 languages. Practice and high-stakes exams use the same compilers and grading rules.
Faster, fairer grading
Results appear in milliseconds instead of a week of manual compiling. Instructors keep override and bulk regrading, so automation never removes academic judgment.
Integrity and evidence built in
Paste, navigation, password and IP controls, one exam session per student, auto-saved code history with diff review, and stored similarity pairs.
Complete LMS capabilities
Nine question types, bulk Excel enrolment, six roles, CLO tagging, reusable question banks, two announcement channels and a staff-learner Inbox.
Full visibility
The Analytics dashboard and Live Monitor show platform KPIs, exam analytics, online users, running exams and compiler queues before load becomes a problem.
Institutional control
Self-hosted on campus infrastructure, so submissions and student data stay with the institution. Soft-delete Trash and audit trails protect against accidental loss.
Proven at scale
In production at the IT College of JUST, with 8.5k enrolled students, 1.5k exams and 3k+ coding questions per semester.
Built by the person who grades
Created by a lecturer who needed it for a 500-student C++ course, and shaped by real exam-day needs rather than a demo.
Next step
Bring iCode to your campus
A complete LMS built coding-first—materials, practice, exams, grading, messaging and live monitoring in one platform.