WorksheetsComputer Engineering
Total questions: 29
Worksheet time: 15mins
An algorithm is best described as:
A random guess
A list of ordered steps
A computer error
A secure password
A bug in a program is:
A new feature
A shortcut in the code
Something that makes the program behave incorrectly
A backup file
Debugging means:
Erasing code and starting over
Finding and fixing problems in code
Compressing files
Encrypting data
Lossless compression allows:
Smaller files, but with some data missing
Exact reconstruction of the original data
Faster upload speed only
Encryption of data
Encryption is used to:
Make files smaller
Hide or protect information
Speed up the computer
Fix bugs
Decryption is:
Turning plain text into secret text
Cracking the computer password
Reversing encryption to get the original message
Removing viruses
A cipher is:
A type of computer hardware
A technique used to encrypt information
A wireless signal
A program bug
A Caesar Cipher works by:
Randomly swapping letters
Deleting every other letter
Shifting letters by a set number
Using pictures instead of letters
A Random Substitution Cipher:
Maps each letter to a random different letter
Cannot be decrypted
Only uses vowels
Deletes all consonants
Cracking encryption means:
Fixing broken code
Trying to read a message without knowing the key
Storing backups
Compressing the data
Which of these is an example of an event in programming?
A file download
A user clicking a button
Compressing an image
Saving a file
Which statement is true about debugging?
Guessing is the fastest method
You only test once
You find the cause, fix it, and test again
It works best if you rewrite the entire program
An algorithm must be:
Short
Written in code
Clear and step-by-step
Encrypted
A bug causing a loop to run too many times is called:
An encryption error
An off-by-one error
A compression fault
A runtime skip
The main purpose of file compression is:
To hide the file
To make the file smaller
To debug the file
To speed up encryption
When decrypting a substitution cipher, you:
Shift the alphabet
Replace each encrypted letter with the original letter from the key
Randomly guess
Add numbers to the letters
Which action would trigger an event-based program?
A student presses the spacebar
The computer turns off
Files are stored on the desktop
The Wi-Fi router restarts
Cracking a cipher without knowing the key is usually done by:
Guessing wildly
Frequency analysis and pattern checking
Compressing the message
Copy-pasting the text
In debugging, the first step is usually:
Rewrite the code
Reproduce the problem
Delete temporary files
Encrypt the inputs
Which of these is an example of an algorithm you use in daily life?
Picking a random outfit
Following a recipe
Watching a movie
Plugging in a charger
You are designing an app to help students track homework. Before building, you create a flowchart showing each screen and action. Which concept are you using?
Cipher
Algorithm
Compression
Decryption
A team tests their prototype app and finds that pressing “Submit” crashes the app. According to the EDP, what step should they take next?
Encrypt the app
Debug the code
Add more screens
Compress the files
An engineer wants users’ personal information to remain private while the app transmits data. Which tool should they include in their design?
Algorithms
Events
Encryption
Loops
During testing, students discover that a loop inside an algorithm never stops and freezes the app. What is this an example of?
Proper compression
An off-by-one error
A random substitution
An encrypted message
If your prototype loads too slowly because the images are too large, which concept would best improve performance?
Debugging
Compression
Caesar Cipher
Event handling
You build a program that responds when a user taps a button. Which part of the EDP does testing this behavior fall under?
Define the problem
Evaluate and test
Brainstorm solutions
Communicate results
You are creating a digital lock in App Lab. The lock should open only if the message matches the correct decrypted result. What must your project do?
Store files uncompressed
Apply a cipher and key
Add more events
Delete debugging steps
A design team wants to compare three algorithm versions to choose the fastest one. Which EDP step are they focusing on?
Ask
Improve
Test
Plan
Your group encrypts a message, sends it, and asks another group to decrypt it using pattern recognition. What process are you testing?
Cracking a cipher
File compression
Event handling
Bug reproduction
