Professional Documents
Culture Documents
(Download PDF) 5 Steps To A 5 Ap Computer Science Principles 2024 Julie Schacht Sway Full Chapter PDF
(Download PDF) 5 Steps To A 5 Ap Computer Science Principles 2024 Julie Schacht Sway Full Chapter PDF
https://ebookmass.com/product/5-steps-to-a-5-ap-computer-science-
principles-2023-julie-schacht-sway/
https://ebookmass.com/product/5-steps-to-a-5-ap-computer-science-
principles-2022-julie-schacht-sway/
https://ebookmass.com/product/5-steps-to-a-5-ap-computer-science-
principles-2023-5-steps-to-a-5-julie-schacht-sway/
https://ebookmass.com/product/5-steps-to-a-5-ap-computer-science-
principles-2023-5-steps-to-a-5-elite-student-edition-julie-
schacht-sway/
5 Steps to a 5: AP Computer Science Principles, 2nd
Edition Julie Schacht Sway
https://ebookmass.com/product/5-steps-to-a-5-ap-computer-science-
principles-2nd-edition-julie-schacht-sway/
https://ebookmass.com/product/5-steps-to-a-5-ap-computer-
science-a-2024-deborah-b-klipp/
https://ebookmass.com/product/5-steps-to-a-5-ap-environmental-
science-2024-courtney-mayer/
https://ebookmass.com/product/5-steps-to-a-5-ap-computer-
science-a-2021-dean-r-johnson-2/
https://ebookmass.com/product/5-steps-to-a-5-ap-computer-
science-a-2021-dean-r-johnson/
Copyright © 2024, 2022, 2021, 2018 by McGraw Hill. All rights
reserved. Except as permitted under the Copyright Act of 1976, no
part of this publication may be reproduced or distributed in any form
or by any means, or stored in a database or retrieval system,
without the prior written permission of publisher.
ISBN: 978-1-26-528640-8
MHID: 1-26-528640-X
The material in this eBook also appears in the print version of this
title: ISBN: 978-1-26-528422-0, MHID: 1-26-528422-9.
McGraw Hill, the McGraw Hill logo, 5 Steps to a 5, and related trade
dress are trademarks or registered trademarks of McGraw Hill and/or
its affiliates in the United States and other countries and may not be
used without written permission. All other trademarks are the
property of their respective owners. McGraw Hill is not associated
with any product or vendor mentioned in this book.
TERMS OF USE
This is a copyrighted work and McGraw Hill (“McGraw Hill”) and its
licensors reserve all rights in and to the work. Use of this work is
subject to these terms. Except as permitted under the Copyright Act
of 1976 and the right to store and retrieve one copy of the work,
you may not decompile, disassemble, reverse engineer, reproduce,
modify, create derivative works based upon, transmit, distribute,
disseminate, sell, publish or sublicense the work or any part of it
without McGraw Hill’s prior consent. You may use the work for your
own noncommercial and personal use; any other use of the work is
strictly prohibited. Your right to use the work may be terminated if
you fail to comply with these terms.
McGraw Hill and its licensors do not warrant or guarantee that the
functions contained in the work will meet your requirements or that
its operation will be uninterrupted or error free. Neither McGraw Hill
nor its licensors shall be liable to you or anyone else for any
inaccuracy, error or omission, regardless of cause, in the work or for
any damages resulting therefrom. McGraw Hill has no responsibility
for the content of any information accessed through the work. Under
no circumstances shall McGraw Hill and/or its licensors be liable for
any indirect, incidental, special, punitive, consequential or similar
damages that result from the use of or inability to use the work,
even if any of them has been advised of the possibility of such
damages. This limitation of liability shall apply to any claim or cause
whatsoever whether such claim or cause arises in contract, tort or
otherwise.
Online Course
Single User License Terms and Conditions
Preface
About the Author
Introduction: The Five-Step Preparation Program
Appendix
AP Computer Science Principles Exam Reference Sheet
Glossary
PREFACE
Welcome to the future! Your future, that is. It will be filled with
technology because technology is well integrated into many aspects
of our lives. The good news is that computer science is not that
hard! You’ve just had little, if any, experience with it and this course
exposes you to several key aspects in the field. Even if you do not
become a programmer, data analyst, or network engineer, the more
you understand about how these skills work, the more valuable you
will be to a future employer or the more prepared you will be as a
future business owner.
This review book is designed to help you prepare for the AP
Computer Science Principles exam and performance task. Reviewing
the concepts helps you confirm those you are confident about and
identifies those you need to better understand before the exam. This
book also guides you through preparing your project and written
response for the performance task to earn as many points as
possible. Let’s get started!
ABOUT THE AUTHOR
This icon points out a very important concept that you should not
pass over.
This icon calls your attention to a strategy that you may want to try.
IN THIS CHAPTER
Summary: This chapter provides basic information on the AP
Computer Science Principles assessment. You will learn about the
exam, the topics covered, and the types of questions asked. You will
also learn about the in-class performance task (30% of your final AP
score), which must be completed and submitted to the College
Board by the published deadline before you take the exam later in
May.
Key Ideas
The multiple-choice exam, contains 70 questions and is two hours
long without a break.
In addition to the multiple-choice exam, you must submit a Create
performance task by the deadline specified by the College Board.
Your total score (on a scale of 1–5) is determined by your scores
on the component parts:
70% of your total score is based on the multiple-choice exam
30% of your total score is based on the Create performance
task
Most colleges and universities award credit for earning a score of
4 or 5. Some award credit for a score of 3. A list of individual
college policies can be found on the College Board site, and you
should always check with the colleges and universities you are
applying to for their current AP policy.
The Basics
The AP Computer Science Principles exam was first offered in spring
2017. More than 45,000 students took the first multiple-choice exam
and submitted their performance task projects. The following year,
enrollment grew to 76,000—a 55% increase! In 2018–2019, over
100,000 students took the exam. In 2019–2020, 150,000 students
were registered and 110,000 submitted their performance tasks,
even with the pandemic! One key goal of this course, according to
the College Board, is to make computer science more inclusive and
accessible to all students. This course is an introductory course,
equivalent to a one-semester course in college. No prior computer
science coursework or knowledge is required to take it. Students
should have successfully completed high school algebra prior to
taking the course. It’s the computer science for non-computer
science majors course. For computer science majors, it may fulfill
another requirement, such as an ethics in computer science
requirement.
The Format
The AP Computer Science Principles assessment consists of a
multiple-choice exam (70% of your score) and a Create performance
task (30% of your score). You’ll want to focus more time preparing
for the exam since it counts more. However, you cannot ignore or do
minimal effort on the Create performance task and still expect to
earn a good score.
Your AP Score
The multiple-choice exam is graded automatically by a computer.
The Create performance task is graded by college professors and
high school AP teachers who are teaching the course. They are
trained and each project is evaluated and reviewed to ensure
projects are graded consistently and fairly.
In the end you will be given a score that ranges from 1–5. The
following table shows the meanings of the scores:
Most colleges and universities award one-semester course credit
if you earn a score of 4 or 5. Some colleges award credit for a score
of 3. You should check with the colleges and universities you are
applying to for their current policy regarding this AP exam. The
College Board website has a list of the AP policies of individual
colleges and universities, but to be sure, check directly with the
school.
Being awarded college credit while you are still in high school has
its advantages. You may be able to skip an introductory course and
jump right into the elective courses you want to take in college. If
you earn enough AP credits, you may be able to graduate early.
Even if you don’t want to graduate early, earning AP credit will give
you more flexibility, making it easier to obtain a double major or to
study abroad. Another benefit is that you’ll probably save money by
not having to pay college tuition for course credits you’ve earned in
high school. Perhaps most important, doing well on AP exams will
help you stand out in the college admissions process, showing
colleges that you’re serious about studying and that you’re able to
handle college-level courses.
2. Data
3. Algorithms and Programming
Step 4 in this book, where you’ll review the content you need to
know, is organized around these “big ideas.”
The following table shows the percentage of multiple-choice
questions you can expect from each of the Big Ideas in the AP
exam:
The Dates
You should plan to complete the AP Computer Science Principles
performance task by mid-April. The project for the performance task
must be submitted via an online submission process by the due date
and time posted on the College Board website. The date ranges from
the last day or so in April to the first day or two in May. Check with
your AP teacher or the College Board website for the instructions for
submitting your project.
The AP Computer Science Principles multiple-choice exam date
varies each year. You may view this information at the College
Board’s website: https://apcentral.collegeboard.org/exam-
administration-ordering-scores/exam-dates.
Test-Day Policies
On test day, you need to bring the following items:
• Several pencils and an eraser that doesn’t leave smudges
• A school-issued or government-issued photo identification
• A standard non-internet connected watch so you can easily keep
track of test time in case there is no clock in the testing room
Items you are NOT to bring into the test room include:
IN THIS CHAPTER
Summary: Preparing for the exam is important. The right
preparation plan for you depends on your study habits, your own
strengths and weaknesses, and the amount of time you have to
prepare for the test. This chapter will help you get off to a good
start by developing a personalized plan to prepare for the multiple-
choice exam and the performance task of the AP Computer Science
Principles assessment.
Key Ideas
Do not wait until the last minute to begin preparing. Develop a
study plan and stick with it.
Your study plan should be tailored to your needs, your study
habits, and the amount of time you have available.
Prioritize your review based on your strengths and weaknesses.
Take the diagnostic exam in the next chapter to identify the areas
you most need to review and practice.
IN THIS CHAPTER
Summary: Taking the diagnostic exam will help you identify the
areas that you need to review as well as give you an idea of what
the questions on the actual multiple-choice exam will be like. After
you’ve completed the test, use the evaluation tool at the end of this
chapter to identify specifically what chapters you most need to
review and adjust your study plan accordingly. This diagnostic exam
includes questions from all of the “big ideas” covered in the AP
Computer Science Principles course.
Key Ideas
Taking the Diagnostic Exam will allow you to familiarize yourself
with the AP Computer Science Principles exam.
Evaluate your performance on this test to identify your own
strengths and weaknesses and then modify your study plan to
prioritize the types of skills or areas of content you most need to
work on.
As you take the test, mark all the questions you were not sure
about so you check the answer explanations for them as well as
those you miss. But do not check an answer until you have
finished all the questions after the two-hour testing period.
In the next section of this book, you’ll find helpful strategies for
attacking both the multiple-choice exam and the Create performance
task. The strategies were developed to help you prepare in the most
effective and efficient way. Then in Step 4, you’ll begin the review of
the concepts and skills tested. After taking this diagnostic exam, you
will know which of these chapters you need to review the most.
AP Computer Science Principles
Diagnostic Test
Multiple-Choice Questions
ANSWER SHEET
AP Computer Science Principles
Diagnostic Test
Multiple-Choice Questions
Time: 2 hours
Number of questions: 70
The multiple-choice questions represent 70% of your total score.
Directions: Choose the one best answer for each question. The last
eight questions have two correct answers; for these, you will be
instructed to choose two answer choices.
Tear out the answer sheet on the previous page and grid in your
answers using a pencil.
10. You are writing a program to help the school assign lockers
each year. You have a list of student names and a separate list
of locker numbers. The locker numbers match the index position
for the list. Assume the lists are correctly initialized. What can
replace <missing code> to assign the student to the next
available locker?
12. What is the process where algorithms are used with historical
data to attempt to predict human needs or requests for
information?
(A) Data excavation
(B) Trend prediction
(C) Social analysis
(D) Machine learning
13. What would be the starting and ending index positions for the
substring function to extract everything up to but not including
the “@” if you are given the following string: person@apcsp.org?
(A) 0, 5
(B) 0, 6
(C) 1, 6
(D) 1, 7
14. How is analog data converted to digital data?
(A) The analog curve is extrapolated and converted into x, y
coordinate values.
(B) The analog data values are converted precisely to digital
data.
(C) Samples of the analog data are taken and converted to
bits.
(D) Samples of the analog data are approximated to mimic the
smooth curve.
19. What is the most common way computer viruses are spread?
(A) By people clicking on an infected file
(B) From phishing attacks
(C) Through a rogue access point
(D) From random botnet attacks
20. Different levels of access to technological devices and the
Internet due to economic or geographic reasons is referred to
as:
(A) Binary split
(B) Demographic division
(C) Digital divide
(D) Technology rift
21. How does creating program components help with program
development?
(A) Individual components can be added without additional
testing.
(B) Adding tested components incrementally to working code
helps create program functionality that is correct.
(C) Multiple people can write the components and still ensure
compatibility.
Another random document with
no related content on Scribd:
would have served to strengthen and rest him. But how to come by
so much now? How?
The character of the places frequented by the coolies, bhisties
(water-carriers), hadjis and even beggars like Ibn, while without any
of the so-called luxuries of these others, and to the frequenters of
which the frequenters of these were less than the dust under their
feet, were still, to these latter, excellent enough. Yea, despised as
they were, they contained charpoys on which each could sit with his
little water-chatty beside him, and in the centre of the circle one such
as even the lowly Ibn, a beggar, singing his loudest or reciting some
tale—for such as they. It was in such places as these, before his
voice had wholly deserted him, that Ibn had told his tales. Here,
then, for the price of a few anna, they could munch the leavings of
the khat market, drink kishr and discuss the state of the world and
their respective fortunes. Compared to Ibn in his present state, they
were indeed as lords, even princes.
But, by Allah, although having been a carrier and a vendor himself
in his day, and although born above them, yet having now no voice
nor any tales worth the telling, he was not even now looked upon as
one who could stand up and tell of the wonders of the Jinn and
demons and the great kings and queens who had reigned of old.
Indeed, so low had he fallen that he could not even interest this
despised caste. His only gift now was listening, or to make a pathetic
picture, or recite the ills that were his.
Nevertheless necessity, a stern master, compelled him to think
better of his quondam tale-telling art. Only, being, as he knew, wholly
unsuited to recite any tale now, he also knew that the best he could
do would be to make the effort, a pretense, in the hope that those
present, realizing his age and unfitness, would spare him the
spectacle he would make of himself and give him a few anna
wherewith to ease himself then and there. Accordingly, the hour
having come when the proffered services of a singer or story-teller
would be welcomed in any mabraz, he made his way to this region of
many of them and where beggars were so common. Only, glancing
through the door of the first one, he discovered that there were far
too few patrons for his mood. They would be in nowise gay, hence
neither kind nor generous as yet, and the keeper would be cold. In a
second, a little farther on, a tom-tom was beginning, but the guests
were only seven in number and but newly settled in their pleasure. In
a third, when the diaphanous sky without was beginning to pale to a
deep steel and the evening star was hanging like a solitaire from the
pure breast of the western firmament, he pushed aside the veiling
cords of beads of one and entered, for here was a large company
resting upon their pillows and charpoys, their chatties and hubbuks
beside them, but no singer or beater of a tom-tom or teller of tales as
yet before them.
“O friends,” he began with some diffidence and imaginings, for well
he knew how harsh were the moods and cynical the judgments of
some of these lowest of life’s offerings, “be generous and hearken to
the tale of one whose life has been long and full of many unfortunate
adventures, one who although he is known to you—”
“What!” called Hussein, the peddler of firewood, reclining at his
ease in his corner, a spray of all but wilted khat in his hand. “Is it not
even Ibn Abdullah? And has he turned tale-teller once more? By
Allah, a great teller of tales—one of rare voice! The camels and
jackals will be singing in Hodeidah next!”
“An my eyes deceive me not,” cried Waidi, the water-carrier, at his
ease also, a cup of kishr in his hands, “this is not Ibn Abdullah, but
Sindbad, fresh from a voyage!”
“Or Ali Baba himself,” cried Yussuf, the carrier, hoarsely. “Thou
hast a bag of jewels somewhere about thee? Now indeed we shall
hear things!”
“And in what a voice!” added Haifa the tobacco-tramp, noting the
husky, wheezy tones with which Ibn opened his plea. “This is to be a
treat, truly. And now we may rest and have wonders upon wonders.
Ibn of Mecca and Jiddah, and even of marvelous Hodeidah itself, will
now tell us much. A cup of kishr, ho! This must be listened to!”
But now Bab-al Oman, the keeper, a stout and cumbrous soul,
coming forth from his storeroom, gazed upon Ibn with mingled
astonishment and no little disfavor, for it was not customary to permit
any of his customers of the past to beg in here, and as for a singer or
story-teller he had never thought of Ibn in that light these many
years. He was too old, without the slightest power to do aught but
begin in a wheezy voice.
“Hearken,” he called, coming over and laying a hand on him, the
while the audience gazed and grinned, “hast thou either anna or
rupee wherewith to fulfill thy account in case thou hast either khat or
kishr?” The rags and the mummy-like pallor of the old man offended
him.
“Do but let him speak,” insisted Hussein the peddler gaily, “or
sing,” for he was already feeling the effects of his ease and the
restorative power of the plant. “This will be wonderful. By the voices
of eleven hundred elephants!”
“Yea, a story,” called Waidi, “or perhaps that of the good Cadi of
Taiz and the sacred waters of Jezer!”
“Or of the Cadi of Mecca and the tobacco that was too pure!”
Ibn heard full well and knew the spectacle he was making of
himself. The references were all too plain. Only age and want and a
depressing feebleness, which had been growing for days, caused
him to forget, or prevented, rather, his generating a natural rage and
replying in kind. These wretched enemies of his, dogs lower than
himself, had never forgiven him that he had been born out of their
caste, or, having been so, that he had permitted himself to sink to
labor and beg with them. But now his age and weakness were too
great. He was too weary to contend.
“O most generous Oman, best of keepers of a mabraz—and thou,
O comfortable and honorable guests,” he insisted wheezily, “I have
here but one pice, the reward of all my seekings this day. It is true
that I am a beggar and that my coverings are rags, yet do but
consider that I am old and feeble. This day and the day before and
the day before that—”
“Come, come!” said Oman restlessly and feeling that the custom
and trade of his mabraz were being injured, “out! Thou canst not sing
and thou canst not tell a tale, as thou well knowest. Why come here
when thou hast but a single pice wherewith to pay thy way? Beg
more, but not here! Bring but so much as half a rupee, and thou shalt
have service in plenty!”
“But the pice I have here—may not I—O good sons of the Prophet,
a spray of khat, a cup of kishr—suffer me not thus be cast forth! ‘—
and the poor and the son of the road!’ Alms—alms—in the name of
Allah!”
“Out, out!” insisted Oman gently but firmly. “So much as ten anna,
and thou mayst rest here; not otherwise.”
He turned him forth into the night.
And now, weak and fumbling, Ibn stood there for a time,
wondering where else to turn. He was so weak that at last even the
zest for search or to satisfy himself was departing. For a moment, a
part of his old rage and courage returning, he threw away the pice
that had been given him, then turned back, but not along the street
of the bazaars. He was too distrait and disconsolate. Rather, by a
path which he well knew, he circled now to the south of the town,
passing via the Bet-el-Fakin gate to the desert beyond the walls,
where, ever since his days as a pack servant with the Bedouins, he
had thought to come in such an hour. Overhead were the stars in
that glorious æther, lit with a light which never shines on other soils
or seas. The evening star had disappeared, but the moon was now
in the west, a thin feather, yet transfiguring and transforming as by
magic the homely and bare features of the sands. Out here was
something of that beauty which as a herdsman among the Bedouins
he had known, the scent of camels and of goats’ milk, the memory of
low black woolen tents, dotting the lion-tawny sands and gazelle-
brown gravels with a warm and human note, and the camp-fire that,
like a glowworm, had denoted the village centre. Now, as in a dream,
the wild weird songs of the boys and girls of the desert came back,
the bleating of their sheep and goats in the gloaming. And the
measured chant of the spearsmen, gravely stalking behind their
charges, the camels, their song mingling with the bellowing of their
humpy herds.
“It is finished,” he said, once he was free of the city and far into the
desert itself. “I have no more either the skill nor the strength
wherewith to endure or make my way. And without khat one cannot
endure. What will be will be, and I am too old. Let them find me so. I
shall not move. It is better than the other.”
Then upon the dry, warm sands he laid himself, his head toward
Mecca, while overhead the reremouse circled and cried, its tiny
shriek acknowledging its zest for life; and the rave of a jackal,
resounding through the illuminated shade beyond, bespoke its desire
to live also. Most musical of all music, the palm trees now answered
the whispers of the night breeze with the softest tones of falling
water.
“It is done,” sighed Ibn Abdullah, as he lay and wearily rested.
“Worthless I came, O Allah, and worthless I return. It is well.”
VII
TYPHOON