Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary SL1 Computer Science Revision

Rating
-
Sold
-
Pages
3
Uploaded on
22-03-2025
Written in
2024/2025

IB Computer Science SL Resource

Content preview

1

Section B

2 Read this section of program code that should input 50 numbers and then output the average.

1 TOTAL = 0

2 loop for COUNTER = 1 TO 50

3 input NUM

4 TOTAL = TOTAL + 1

5 COUNTER = COUNTER + 1

6 AVERAGE = TOTAL / COUNTER

7 end loop

8 output AVERAGE

There are four errors in this code.

Locate these errors and suggest code corrections to remove each error.

1 .......................................................................................................................................................

..........................................................................................................................................................

2 .......................................................................................................................................................

..........................................................................................................................................................

3 .......................................................................................................................................................

..........................................................................................................................................................

4 .......................................................................................................................................................

......................................................................................................................................................[4]

Written for

Study
Unknown

Document information

Uploaded on
March 22, 2025
Number of pages
3
Written in
2024/2025
Type
SUMMARY
£3.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
BobQ2

Also available in package deal

Thumbnail
Package deal
IB SL Computer Science Resources
-
10 2025
£ 12.95 More info

Get to know the seller

Seller avatar
BobQ2 Abacus College, Oxford
View profile
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
10
Last sold
-
IB Resource Hub

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions