NYSTCE Computer Science (194)
NYSTCE Computer Science (194) is a trademark of its owner, which is not affiliated with and does not endorse Test Treasure Publication or TTP Prep.
NYSTCE Computer Science (194) is a trademark of its owner, which is not affiliated with and does not endorse Test Treasure Publication or TTP Prep.
10 sample questions for the NYSTCE Computer Science (194), with the correct answer and an explanation for each. No account needed. Try each one before you open the answer.
Sections covered on the exam: Impacts of Computing, Computational Thinking and Programming, Networks, the Internet, and System Design, Cybersecurity.
Question 1 · Impacts of Computing
Answer: A. Recommendation algorithms rank content by predicted engagement, so feeds keep showing videos like past ones.
Personalization algorithms optimize for engagement by recommending content similar to what a viewer already watched, which narrows exposure over time and can create a filter bubble that reinforces one viewpoint. Content delivery networks are tempting because they do shape what loads quickly, but they cache copies to reduce latency; they do not decide which viewpoints a feed recommends to a particular student.
Question 2 · Impacts of Computing
Answer: B. The district's technology acceptable use policy
An acceptable use policy states how students and staff may use district devices and networks, which activities are prohibited, such as personal commercial use, and what consequences follow. The software's license agreement is tempting because it governs the software, but it addresses the user's rights with the software maker, not what the district allows on its equipment or how it disciplines misuse.
Question 3 · Computational Thinking and Programming
Answer: B. Syntax error, runtime error, logic error
A syntax error breaks the language's grammar, so the program cannot start, as with the missing colon. A runtime error occurs while a syntactically valid program executes, such as dividing by zero when the count is 0. A logic error lets the program finish but produces wrong results, as with the fixed divisor of 30. Calling the division-by-zero crash a logic error confuses a crash with silently wrong output.
Question 4 · Networks, the Internet, and System Design
Answer: B. 9
With b bits there are 2^b distinct codes. Eight bits give 2^8 = 256 codes, fewer than 300, so some devices would have to share a code. Nine bits give 2^9 = 512 codes, enough for all 300 devices. Choosing 8 is tempting because a byte feels like a natural unit, but 256 falls short. Ten or 16 bits would work but are not the minimum.
Question 5 · Cybersecurity
Answer: B. Disconnect the infected computer from the network
The incident has just been identified, so the next phase is containment: isolating the infected machine stops the malware from encrypting more files across the network. Restoring the shared drive is tempting, but recovery before containment lets the still-active ransomware encrypt the restored files again. Wiping the computer is eradication and also destroys evidence too early, and notification decisions follow investigation of what data was actually affected.
Question 6 · Impacts of Computing
Answer: D. Habitual use driven by reinforcement, which can crowd out other activities
Streaks, notifications, and variable rewards are persuasive design techniques based on reinforcement; they are meant to build habits and maximize time spent in the app, which can displace sleep, study, or social time. Lower data usage is tempting because short sessions sound efficient, but these features aim to increase how often users return, so overall usage typically rises rather than falls.
Question 7 · Impacts of Computing
A student developer has built a room-scheduling tool for the school library. The librarian, who has no programming background, asks how the tool decides which room to assign when two requests conflict.
Answer: A. Explaining the rule in plain language with an example of two conflicting requests
Computing professionals must explain technical decisions to people who are not programmers, adjusting vocabulary to the audience and using concrete examples. A plain-language explanation with a sample conflict meets the librarian's need. Sharing the source code is tempting because it is complete and accurate, but it is not understandable to someone without programming experience, so it fails as communication with this audience.
Question 8 · Computational Thinking and Programming
Answer: C. Rerunning the full existing test suite after the change to confirm earlier features still work
A change in one part of a program can break features elsewhere, which is called a regression. Regression testing reruns the existing suite of tests after every change, so a failing timer test would have appeared immediately. Retesting only the original failing input confirms the fix but cannot detect side effects in other features. Reading code and adding comments help, but they do not execute the timer behavior.
Question 9 · Networks, the Internet, and System Design
Answer: B. 1,440,000 bytes
The image contains 800 × 600 = 480,000 pixels. Each pixel uses 24 bits, which is 24 ÷ 8 = 3 bytes, so the pixel data takes 480,000 × 3 = 1,440,000 bytes, about 1.44 MB. The figure 11,520,000 is the size in bits (480,000 × 24), which is tempting if the bits-to-bytes conversion is skipped. 480,000 counts pixels as if each used only one byte.
Question 10 · Cybersecurity
| Step | Action |
|---|---|
| P | Rebuild the server from a clean image and restore data from backup |
| Q | Delete the malicious scheduled task and patch the exploited flaw |
| R | Disconnect the infected server's network segment |
| S | Confirm that an alert about mass file renaming is real ransomware |
| T | Meet to review the response and update the incident plan |
Answer: A. S, R, Q, P, T
The phases are identification (S, confirming the alert), containment (R, isolating the segment), eradication (Q, removing the malicious task and closing the flaw), recovery (P, rebuilding and restoring), and lessons learned (T). Placing containment first is tempting, but the team must first confirm the incident is real before disrupting service. Restoring before eradicating risks reinfection, because the attacker's foothold and the unpatched flaw would still be present.
TTP Prep has 200 NYSTCE Computer Science (194) practice questions with explanations, timed and mock-exam modes, 166 flashcards, interactive lessons, a printable cheat sheet and a readiness score. Start free, no card needed.
More free questions: browse every exam.