Coding Semester A
In the binary system, what is the number 9 in the decimal system equal to? 1000 1001 1110 1111
1001
The binary number 1111 is equal to what number in the decimal system? 4 11 15 22
15
Why are computers better than humans at solving a problem like finding the shortest route between ten different cities? Computers use code instead of plain English. Computers are not distracted by social media. Computers can test thousands of possible routes in seconds. Computers have access to more precise maps.
Computers can test thousands of possible routes in seconds.
Which of the following is most useful for doing research? word processing software presentation software a web browser a messaging app
a web browser
Block-based programs can have syntax errors. True False
false
Jaime wants to create a program that will make a cat repeat the same dance five times. Which word describes Jaime's program? sequential selective iterative absolute
iterative
Brandon realized that his program wasn't running properly because he used a colon instead of a semi-colon. What kind of error did Brandon make? syntax error logic error Boolean error iteration error
syntax error
Which of the following is an input device on a toaster? the heating element the tray the start button the electrical outlet
the start button
The binary number 0101 is equal to what number in the decimal system? 1 3 5 7
5
Which of these symbols is the assignment operator? {} () # =
=
Which of the following statements is TRUE? A dictionary associates items together. A list is an inefficient way to store items. If a list needs to be updated, the entire program must be rewritten. A dictionary can hold a maximum of 30 items.
A dictionary associates items together.
Which of the following could be part of an algorithm? Add two cups of flour. The cookies are delicious. The cookies each have five chocolate chips. Oatmeal cookies are better than chocolate chip cookies.
Add two cups of flour.
Amaya is curious how her computer actually boots up. Which of the following should Amaya research to find out more? RAM hard drive CPU ROM
ROM
Corinne is taking a chemistry class in college. A lab assignment asks students to track the melting point of 10 different substances. For each one, they have to test it five different times. Which of the following kinds of software would be most useful for recording that data? a spreadsheet word processing software presentation software a messaging app
a spreadsheet
Emma plans on building a dog house using an algorithm. What will be the final step of the process? creating a blueprint building the roof thinking about what went wrong applying her algorithm to building a deck
applying her algorithm to building a deck
Which of the following scenarios should use a while loop? telling the user what format their phone number should be entered in displaying an error message if the user enters their phone number in the wrong format asking the user to enter a phone number until it's in the right format giving the user one try to enter their phone number in the right format
asking the user to enter a phone number until it's in the right format
. Lee can hold a smartphone up to a museum exhibit and more information is overlaid on top of a picture of the exhibit on his screen. What is this program called? systems software presentation software virtual reality augmented reality
augmented reality
A teacher assigns the class a project to create an app. The app will overlay historic photos on a smartphone screen when the phone is pointed at certain locations. Which of the following terms describes this kind of technology? virtual reality augmented reality MP4 application software
augmented reality
Which of the following is NOT a responsibility of an operating system? control input and output devices manage the resources an open application can use automatically upgrade the computer's RAM provide an interface for interacting with the hardware
automatically upgrade the computer's RAM
Mrs. Gonzalez decides to write an algorithm that her employees can follow when they open her store each day. What should be the first step of Mrs. Gonzalez' process? check for errors write a list of steps be sure that she understands every part of the situation think about what other situations could use an algorithm
be sure that she understands every part of the situation
Why is the print statement considered a function? because it has to be defined by the user because it functions to make the printer work because it is a reusable piece of code that accomplishes a task because it functions to engage the hardware
because it is a reusable piece of code that accomplishes a task
Why is it important to recognize the proper boundaries or limits of algorithms? because otherwise the algorithm might contain logic errors or might not work properly because otherwise the algorithm might not be competitive enough in today's economy because algorithms are so complex that they need built-in boundaries to keep them understandable because algorithms are so powerful that they need built-in boundaries to keep them from taking over the world
because otherwise the algorithm might contain logic errors or might not work properly
Scott wants to meet his friend downtown to go to the movies, and he plans on using the bus system. There are four different bus lines that run near his house and have drop-offs downtown. If Scott were using an algorithmic approach to finding a solution to his problem, what would his first step be? being sure that he understands the bus routes thinking about what he might do differently on his next trip planning out which bus route he will take riding the bus
being sure that he understands the bus routes
Janice has decided that the best approach to programming a new social media app is to start with a small portion of it by writing the smallest module, and then reuse and combine that with other modules to build it up. What approach is this? binary translation bottom-up programming float and decimal variables algorithm management
bottom-up programming
River designs a program that will make a cartoon baby jump up and down. But when it is run, the baby appears but doesn't move. What should River do? create a Boolean question move code to the editor run the program check for bugs
check for bugs
Simon takes apart a computer and looks at the thin green boards inside. What are these? binary boards database boards input devices circuit boards
circuit boards
The statement "If we are late, we won't be able to see the movie previews" is an example of which of these? alternative iterative sequence conditional
conditional
Luca has a piece of paper with the number 144 on it but doesn't know what it refers to. What does Luca have? data information knowledge input
data
Carmen thinks she has a logic error in her program. She wants to go line-by-line through her code and watch the variables carefully to see if she can find her mistake. What IDE tool would be most helpful to Carmen? debugger flowchart generator algorithm creator database manager
debugger
Which of the following would be the best option for a primary key in a database table that stores data about dogs? name dogID date of birth breed
dogID
Which of the following scenarios falls into the category of computer theft? reading someone's private messages listening to someone's online phone call downloading music or movies without paying spreading malware
downloading music or movies without paying
Which of the following actions is unethical? downloading music without paying for it making a mistake while writing an algorithm designing a smartphone fitness app that keeps track of someone's health watching a movie on a laptop
downloading music without paying for it
Which word should a programmer use to describe what should happen when the condition of an if statement is NOT met? iterative when else also
else
Shondra is almost finished writing her algorithm. She is trying to change her algorithm so that it works for a more complex problem. Which of the following steps in the algorithm process is Shondra most likely working on? making a plan carrying out the plan extending the problem understanding the problem
extending the problem
Daiki is creating a database for a paint store. Each color of paint will have its own record, which will include the color name, price, and size. Which term best fits how color name, price, and size will be represented in the database? table file field format
field
Rupert wants to write a program where an archer will shoot an arrow six times. Which of the following coding terms should be used? Boolean while for forever
for
What structure should be used to create an infinite loop in a block-based program? if statement for loop while loop forever loop
forever loop
Which of the following would most likely be followed by an algorithm? how to cook the perfect chicken why you should visit New York what happened at the awards ceremony why I love the beach
how to cook the perfect chicken
Ming wants to store photos in a way that won't use up a lot of memory on her devices and will be accessible from any device. How should they be stored? in the cloud on a USB stick on the hard drive on systems software
in the cloud
Which of the following lists contains the five essential elements of a computer? inputs, returns, programs, processes, and storage language, software, hardware, code, and development inputs, outputs, programs, processes, and storage binary, code, inputs, processes, and storage
inputs, outputs, programs, processes, and storage
Shawn thought that the screen of the block-based program he was using was arranged in a logical way that was easy to use and understand. Shawn said, "The _____ is really nice on this program." editor code interface database
interface
Tynker has a particular layout, with the blocks on the left, editor in the middle, and output on the right. Which word best describes this screen layout? block-based interface editor player
interface
Which of the following scenarios falls into the category of network crimes? listening in on someone's private online conversation downloading movies without paying for them knowingly sending an email with malware sending a hurtful message to a friend
listening in on someone's private online conversation
Marcel is programming a game that is supposed to add 10 points to the score every time a character completes a level, but instead the game freezes until the actor walks forward and no points are added. What kind of error does Marcel need to fix? logic error database error debugging error syntax error
logic error
Which line of code will allow the user to enter their current temperature to the nearest tenth of a degree? num1 = input("What is your temperature?") num1 = int(input("What is your temperature?") num1 =float(input("What is your temperature?")) 1num = print("What is your temperature?)
num1 =float(input("What is your temperature?"))
Ahmed is developing a new smartphone model. It only includes apps, a processor, a memory card, and a microphone. What is it lacking? a program input output memory
output
Cora is writing a program to make a motorcycle racing game. If Cora wants the speed of the motorcycle to appear on the screen when the game is played, then Cora needs to add something to the code that will make the speed a(n) _____. input output Boolean value conditional statement
output
Ricky suspects that he has a logic error in his program. What should he do to find the error? keep running his program over and over pinpoint the general location of the error and brainstorm ways to fix it ask a friend to find his error wait for the editor to show him where his error is
pinpoint the general location of the error and brainstorm ways to fix it
Which of the following is NOT an example of cyberbullying? pretending to be someone else on social media in order to publicly humiliate them posting a message on social media threatening to kill someone repeatedly posting negative comments on someone's photos posting a message saying that you disagree with someone
posting a message saying that you disagree with someone
Ji-Woo is helping a supervisor create a database of all employees. The supervisor points out that there is more than one person with the same name, and there are concerns about their records getting confused. Ji-Woo explains that every database record will have a unique ____ to identify it. primary key query table field
primary key
Jorge is using Python 3 as a calculator. Jorge wants to find the product of 321 and 408. What should Jorge type? print 321 x 408 print (321 times 408) print 321(408) print (321 * 408)
print (321 * 408)
If you want the words "My puppy is a poodle" to appear in the output box, what Python code should you use? create "My puppy is a poodle" execute ("My puppy is a poodle") print("My puppy is a poodle") print "My puppy is a poodle"
print("My puppy is a poodle")
Jean has created a database to track all of this month's family meals. To find the entry for lasagna, what should Jean do? edit the data filter the data query the data sort the data
query the data
What does input allow a computer to do? create an algorithm complex math problems quick calculations receive information
receive information
To program a digital turtle to go forward 50 pixels 3 times, what code should be used? forward 50 repeated 3 times repeat 3 [forward 50] 50 pixels x 3 times forward 50 [repeat 3]
repeat 3 [forward 50]
What does output allow a computer to do? send information out receive information do complex math problems store information
send information out
Erin's classmate said that the program that they were working on is not running properly because they accidentally put in commas where semi-colons should be. What kinds of errors does Erin need to fix? logic errors database errors debugging errors syntax errors
syntax errors
One of the functions of an IDE is to check for which of the following? flowchart errors syntax errors control structures input and output
syntax errors
Rowan bought a new laptop. What will protect the computer from viruses? application software up-to-date hardware a new camera system software
system software
Robin wants to make a list of all of the software on a laptop. Which of the following should be left off of the list? a program that edits photos the camera on the laptop an app for sharing photos a program that organizes photos
the camera on the laptop
Rickie gets a message from the school's tech support department. His computer is supposed to be running the latest system software to protect the network from hacking. Which of the following should Rickie update? the web browser the operating system the social media platform the music editing software
the operating system
Which of the following is an example of system software? photo editing software the operating system a messaging app a web browser
the operating system
Which of the following is an output of an alarm clock? the button used to set an alarm the button used to change the time the time display the power cord
the time display
What is the goal of technical writing? to impress management or clients to advertise a new product in an appealing way to clearly communicate specialized information in a way that most people can understand to publish a book or journal article
to clearly communicate specialized information in a way that most people can understand
When should else be used in programming? if something should be repeated several times in a non-conditional statement to describe what should happen when the condition of an if statement isn't met to begin an infinite loop
to describe what should happen when the condition of an if statement isn't met
What is the purpose of an assignment statement? to assign a programming language to assign an editor to a program to store a value in a variable to assign a debugging routine
to store a value in a variable
A computer would do a better job than a human at solving lengthy, complex math problems. True False
true
Janelle is going to write an algorithm. Which of the following should she do first? make a plan carry out the plan extend the problem understand the problem
understand the problem
How many times will an infinite loop repeat? 100 the number of minutes in the variable the number of times in the variable until someone stops the program
until someone stops the program
A gamer typing their name into the computer is an example of which of the following? defined output user input conditional looping debugging
user input
Which of the following scenarios falls into the category of computer manipulation crimes? cyberbullying stealing an office computer reading someone's private emails using a computer to steal someone's identity
using a computer to steal someone's identity
Which of these is a NOT function in Python? input variable print round
variable
In French class, Blue puts on a visor and the environment changes to that of a café in Paris. Which of the following terms describes this kind of technology? docx augmented reality virtual reality systems software
virtual reality
Schuyler is making a list of the parts of a computer that are software. Which of the following will be on the list? the speakers a thumb drive the keyboard web browser
web browser
Sam is conducting research for a school project on the American Revolution. Which of the following kinds of software will help with research notes? music editing software word processing software presentation software spreadsheets
word processing software
The extension on the end of a file name will tell you what format the file is. True False
True
The purpose of a flowchart is similar to the purpose of pseudo code. True False
True
Jean put several modules of code together in a certain order to make an actor walk through different rooms of a house in a video game. What type of programming was used? a bottom-up approach a float variable a logic gate a top-down approach
a bottom-up approach
What does it mean when a computer is processing? a computer is doing a task a user is thinking the computer is recharging software is engaging
a computer is doing a task
Aisha's supervisor asks her to create an aspect of a program that will hold data and make it easy to access. What does Aisha need to create? a flowchart a variable a data structure a syntax algorithm
a data structure
Harini works for a clothing company; her job is to maintain a database of each item of clothing that they sell. Her supervisor asked her to add new information about the laundry instructions for each item of clothing. What will Harini need to add to the database? a table a record a field a file
a field
Ashley works for a company that helps hospitals hire new doctors. They have written a list of strategies that can be used to interview doctors. Ashley wants to give a digital copy of this list to her supervisor to review. Which of the following should be given to the supervisor? application software systems software a file hardware
a file
Reggie is writing a paper on his school laptop for history class. What does Reggie need to create in order to save the document and work on it later? a file a spreadsheet an app systems software
a file
Alik is taking apart her computer. She pulls out the computer memory to inspect it further. Which of the following did she just pull out? a motherboard a speaker a hard drive a mouse
a hard drive
Iman manages a database for a website that reviews movies. If a new movie is going to be added to the database, what else will need to be added? a file a record a table a PDF
a record
It is better to know the main components of all computer programming languages than to memorize the rules for all of the languages. True False
True
A megabyte has 1000 bytes. True False
False
The person running a program is called the editor. True False
False
You can always trust information that comes from websites ending in .com. True False
False
Joshi wants to create a document that he and his classmate can edit at the same time. Which of the following applications should Joshi use? Trello Google Docs Python Microsoft PowerPoint
Google Docs
Which of these is an example of a conditional statement? I eat lunch at noon. If I am hungry, I will eat lunch. I eat a sandwich and an apple. After I got hungry, I ate lunch.
If I am hungry, I will eat lunch.
What is one of the advantages of using an algorithm to solve a puzzle like Kriss-Kross or Sudoku? It gives you an overall strategy. It makes the numbers easier to add. It reduces the size of the problem. It adds an element of surprise.
It gives you an overall strategy.
Evan is borrowing a friend's laptop to check out some music that he has downloaded. What file extension can Evan look for to quickly identify music files? DOC GIF MP3 MP4
MP3
Pedro is at a conference for computer programmers and wants to attend a session on new features in software that help write code. Which of these conference sessions is most likely to meet Pedro's needs? Variable Management for Beginners New Tools Circuit Boards Dictionary Management
New Tools
Marco has just written an algorithm for how to solve a Sudoku puzzle. He says that he just written a computer program. Is Marco correct? Yes, because an algorithm is a computer program No, because Marco's algorithm is most likely incorrect No, because an algorithm for a Sudoku puzzle cannot be run by a computer No, because a program must be written in computer code, and algorithms are not code
No, because a program must be written in computer code, and algorithms are not code
Ahmad created a poster for his favorite band. In which format should it be saved so that the graphics will be preserved? mp3 mp4 PDF ext
How do computers store music? Sound waves are given binary values according to their pitch. The music is decomposed into individual notes and stored in binary. The sound waves are sped up to save space. The music is split up into two-second chunks and stored in binary.
Sound waves are given binary values according to their pitch.
With the statement, "If the dragon is hit by an arrow, the player gains 20 points; else, the player loses one life," what happens if the arrow misses the dragon? The player loses one life. The player gains 20 points. The player loses 20 points. There is no effect in the game.
The player loses one life.
Which of the following statements describes circuit boards? They have billions of tiny switches. They operate according to the decimal system. They have been replaced in modern computers by hard drives. They make the keyboard function properly.
They have billions of tiny switches.
Iteration refers to a set of repeated steps. True False
True