Skip to document

Computer science paper 1 HL

awdawdad
Course

International Business Accounting

60 Documents
Students shared 60 documents in this course
Academic year: 2020/2021
Uploaded by:
Anonymous Student
This document has been uploaded by a student, just like you, who decided to remain anonymous.
Universitas Kristen Petra

Comments

Please sign in or register to post comments.

Preview text

© International Baccalaureate Organization 2021

All rights reserved. No part of this product may be reproduced in any form or by any electronic or mechanical means, including information storage and retrieval systems, without the prior written permission from the IB. Additionally, the license tied with this product prohibits use of any selected files or extracts from this product. Use by third parties, including but not limited to publishers, private teachers, tutoring or study services, preparatory schools, vendors operating curriculum mapping services or teacher resource digital platforms and app developers, whether fee-covered or not, is prohibited and is a criminal offense.

More information on how to request written permission in the form of a license can be obtained from ibo/become-an-ib-school/ib-publishing/licensing/applying-for-a- license/.

© Organisation du Baccalauréat International 2021

Tous droits réservés. Aucune partie de ce produit ne peut être reproduite sous quelque forme ni par quelque moyen que ce soit, électronique ou mécanique, y compris des systèmes de stockage et de récupération d’informations, sans l’autorisation écrite préalable de l’IB. De plus, la licence associée à ce produit interdit toute utilisation de tout fichier ou extrait sélectionné dans ce produit. L’utilisation par des tiers, y compris, sans toutefois s’y limiter, des éditeurs, des professeurs particuliers, des services de tutorat ou d’aide aux études, des établissements de préparation à l’enseignement supérieur, des fournisseurs de services de planification des programmes d’études, des gestionnaires de plateformes pédagogiques en ligne, et des développeurs d’applications, moyennant paiement ou non, est interdite et constitue une infraction pénale.

Pour plus d’informations sur la procédure à suivre pour obtenir une autorisation écrite sous la forme d’une licence, rendez-vous à l’adresse ibo/become-an-ib-school/ ib-publishing/licensing/applying-for-a-license/.

© Organización del Bachillerato Internacional, 2021

Todos los derechos reservados. No se podrá reproducir ninguna parte de este producto de ninguna forma ni por ningún medio electrónico o mecánico, incluidos los sistemas de almacenamiento y recuperación de información, sin la previa autorización por escrito del IB. Además, la licencia vinculada a este producto prohíbe el uso de todo archivo o fragmento seleccionado de este producto. El uso por parte de terceros —lo que incluye, a título enunciativo, editoriales, profesores particulares, servicios de apoyo académico o ayuda para el estudio, colegios preparatorios, desarrolladores de aplicaciones y entidades que presten servicios de planificación curricular u ofrezcan recursos para docentes mediante plataformas digitales—, ya sea incluido en tasas o no, está prohibido y constituye un delito.

En este enlace encontrará más información sobre cómo solicitar una autorización por escrito en forma de licencia: ibo/become-an-ib-school/ib-publishing/licensing/ applying-for-a-license/.

Computer science

Higher level

Paper 1

8 pages

Tuesday 11 May 2021 (afternoon)

2 hours 10 minutes

Instructions to candidates

y Do not open this examination paper until instructed to do so. y Section A: answer all questions. y Section B: answer all questions. y The maximum mark for this examination paper is [100 marks].

© International Baccalaureate Organization 2021

2221 – 7011

  1. List the output from the given algorithm for the following input. [3]

2, 6, 8, 9, 12, 15, 18, 20

loop for Count from 0 to 7 input NUMBER if NUMBER div 2 = NUMBER / 2 then if NUMBER div 3 = NUMBER / 3 then output NUMBER end if end if end loop

  1. Identify one advantage of using a dedicated operating system on a mobile phone. [1]

  2. Identify two characteristics of a dynamic data structure. [2]

  3. Sketch a balanced binary tree that would allow the following output when traversed using inorder traversal:

Zebra, Tango, Hotel, Foxtrot, Delta, Bravo, Alpha. [3]

Turn over

Blank page

  1. The following flowchart is intended to represent an algorithm in which numbers that are input cannot be negative.

The flowchart contains a logic error that will affect the algorithm’s functionality.

HIGHEST = 0

START

END

LOWEST = 0

COUNTER = 0

INPUT

NUMBER

OUTPUT

HIGHEST

OUTPUT

LOWEST

COUNTER =

COUNTER + 1

HIGHEST =

NUMBER

LOWEST =

NUMBER

Is COUNTER > 999?

Is NUMBER > HIGHEST?

Is NUMBER < LOWEST?

Yes

Yes

Yes

No

No

No

(This question continues on the following page)

(Question 14 continued)

(a) (i) Identify the logic error in the algorithm. [1]

(ii) Outline how the error in the algorithm identified in part (i) can be corrected. [2]

The algorithm is to be altered to restrict the values that are input to whole numbers between 0 and 1000.

(b) State the name of the method that could be used to restrict the values that are input. [1]

A further change has been requested for the algorithm to enable it to calculate the average of all the numbers entered. The average will be output when the algorithm terminates.

(c) Based on the flowchart, construct this algorithm using pseudocode. You must include the required changes: - correction of logic error - only allow input of integers between 0 and 1000 - calculation of average of all numbers entered - output of final average. [8]

  1. A business has a range of different computers within the organization, including laptops, desktops and file servers. Wherever possible the organization uses a common operating system on its computers.

(a) Outline two resource management techniques that are likely to be carried out by the operating system of a desktop computer. [4]

(b) Outline one way the operating system hides the complexity of the hardware from the computer user. [2]

Memory requirements and processor speed will vary depending on the tasks required of the computer.

(c) (i) Contrast the memory requirements of a laptop computer and a file server. [2]

(ii) Contrast the processor speed requirements of a laptop computer and a file server. [2]

The business has decided to implement a computer-based system to switch the room lights on and off automatically. The lights will only be switched on if the level of light is below a specific reading and there are people in the room. The lights will be switched off when the room has been unoccupied for at least five minutes.

(d) State two types of sensor that are required to control the lighting to ensure it switches on when it is required. [2]

(e) Explain how the system makes use of the data it receives from the sensors to determine when to switch the lights on. [4]

(f) Outline how the system will prevent the lights from being switched off too quickly when it thinks the room is unoccupied. [2]

Turn over

Was this document helpful?

Computer science paper 1 HL

Course: International Business Accounting

60 Documents
Students shared 60 documents in this course
Was this document helpful?
© International Baccalaureate Organization 2021
All rights reserved. No part of this product may be reproduced in any form or by any
electronic or mechanical means, including information storage and retrieval systems,
without the prior written permission from the IB. Additionally, the license tied with this
product prohibits use of any selected files or extracts from this product. Use by third
parties, including but not limited to publishers, private teachers, tutoring or study services,
preparatory schools, vendors operating curriculum mapping services or teacher resource
digital platforms and app developers, whether fee-covered or not, is prohibited and is a
criminal offense.
More information on how to request written permission in the form of a license can be
obtained from https://ibo.org/become-an-ib-school/ib-publishing/licensing/applying-for-a-
license/.
© Organisation du Baccalauréat International 2021
Tous droits réservés. Aucune partie de ce produit ne peut être reproduite sous quelque
forme ni par quelque moyen que ce soit, électronique ou mécanique, y compris des
systèmes de stockage et de récupération d’informations, sans l’autorisation écrite
préalable de l’IB. De plus, la licence associée à ce produit interdit toute utilisation de tout
fichier ou extrait sélectionné dans ce produit. L’utilisation par des tiers, y compris, sans
toutefois s’y limiter, des éditeurs, des professeurs particuliers, des services de tutorat ou
d’aide aux études, des établissements de préparation à l’enseignement supérieur, des
fournisseurs de services de planification des programmes d’études, des gestionnaires de
plateformes pédagogiques en ligne, et des développeurs d’applications, moyennant
paiement ou non, est interdite et constitue une infraction pénale.
Pour plus d’informations sur la procédure à suivre pour obtenir une autorisation écrite
sous la forme d’une licence, rendez-vous à l’adresse https://ibo.org/become-an-ib-school/
ib-publishing/licensing/applying-for-a-license/.
© Organización del Bachillerato Internacional, 2021
Todos los derechos reservados. No se podrá reproducir ninguna parte de este producto
de ninguna forma ni por ningún medio electrónico o mecánico, incluidos los sistemas de
almacenamiento y recuperación de información, sin la previa autorización por escrito del
IB. Además, la licencia vinculada a este producto prohíbe el uso de todo archivo o
fragmento seleccionado de este producto. El uso por parte de terceros —lo que incluye,
a título enunciativo, editoriales, profesores particulares, servicios de apoyo académico o
ayuda para el estudio, colegios preparatorios, desarrolladores de aplicaciones y
entidades que presten servicios de planificación curricular u ofrezcan recursos para
docentes mediante plataformas digitales—, ya sea incluido en tasas o no, está prohibido
y constituye un delito.
En este enlace encontrará más información sobre cómo solicitar una autorización por
escrito en forma de licencia: https://ibo.org/become-an-ib-school/ib-publishing/licensing/
applying-for-a-license/.