Coding Midterm Pre-test
A source editor is basically an enhanced text editor that is tailored towards writing computer code. A) True B) False
A
Based on current projections, there's a 30 percent chance that an American teenager will one day meet their future spouse online. A) True B) False
A
By default, Python stores code files with a detailed history of every modification to that code. A) True B) False
A
Calculating the remainder as an arithmetic expression in most languages looks similar to what? A) rem(3/2) B) 3div2 = C) div(3/2) D) split(3*2)
A
Emir is a cartographer (a person who makes maps). On each map he names individual lakes, mountains, valleys, and forests. Which OOP principle is he following? A) classes and instances B) inheritance C) overriding D) encapsulation
A
Expanding technological sectors causes other sectors of the economy, such as food, construction, and manufacturing, to contract, limiting economic growth. A) True B) False
A
Hearing aids rely on tiny computers that filter out irrelevant background noise and amplify the remaining signal. A) True B) False
A
If consoles or shells can be used to write and run code, why is there a need for source editors? A) Source editors allow code to be saved in files for future use, and they provide helpful text editing features. B) Consoles and shells are limited to 100 lines of code, whereas source editors can hold unlimited lines of code. C) Consoles and shells should only be used by more advanced programmers. D) Source editors are mainly useful for testing programs.
A
Jiro is working on a research project. His topic is a programming language that was designed to teach programming and was very popular in the 1980s and 1990s. Which of these is MOST likely his topic? A) Pascal B) FORTRAN C) Hexadecimal D) Procedural
A
Jiun is typing code onto a black screen that has a prompt. It allows him to interact directly with the computer rather than running a separate file. What is the term for the tool he is using? A) the shell B) the kernel C) the window D) the basement
A
Krupa's mother works two part-time jobs at a grocery store and gas station to pay the rent in a small apartment. Krupa herself went to college and graduated with a Master's in Business and now works as a manager for a large company earning over $100,000 a year. Her successes are an example of: A) economic mobility. B) the caste system. C) institutional barriers. D) educational inequality.
A
LeQuan has just written a program for class. After he has saved his program, he notices that there is an extra file in the folder that he did not create. What is the most likely explanation for this extra file? A) He wrote a program using a compiled language, and the extra file is the executable program. B) He wrote a program using an interpreted language, and the extra file is the executable program. C) He used a debugger while writing his program, and the extra file is the debugged program. D) He used a test generator while writing his program, and the extra file contains the test scripts.
A
Lorenzo's code isn't working because he forgot to include a period at the end of his line of code, as is required with the language he is using. What type of error has he made? A) syntax B) runtime C) debugging D) exception
A
One of the best ways to reduce inequality and improve the economy in a country is to improve education and support free and equal access to information. A) True B) False
A
One side effect of companies employing more and more international workers is that, globally, countries are becoming more interdependent and grow a shared interest in maintaining peace. A) True B) False
A
Playing a popular video game on a modern console uses as much computing power as it takes to run a small business. A) True B) False
A
Programming languages create codes that represent binary numbers so that programmers can write in a language closer to natural speech. A) True B) False
A
Python and Apache are free to use software to encourage people to study and modify the code. These are examples of: A) open source software (OSS). B) malware. C) automation. D) graphical user interfaces.
A
Shanice is concerned that the programmers she manages are straying from the original software requirements specification (SRS). She worries that their software will not meet the needs and expectations of the client. What should she do? A) Have a meeting with the programmers to remind them that the software needs to include all of the requirements in the SRS. B) Ignore her concerns and relax—the programmers are the experts and they know what they're doing. C) Have a meeting with the programmers and ask them their opinion about which requirements they would like to leave out. D) Have a meeting with the client and tell them that the software will not include all the requirements they originally agreed upon.
A
Virtual reality today consists of headsets that enable people to move around in a virtual 3D space. A) True B) False
A
What determines whether a number is a floating number? A) If it has a decimal point. B) If it can be divided evenly, with no remainder. C) If it's not dividable by 0. D) If it is represented by a range of variables.
A
What is the BEST analogy for describing the idea of a function in OOP? A) the sun rising and setting depending on the time of day B) telling a child to throw a ball to you C) saying that "all birds fly; this is a bird, so it can fly" D) drawing a treasure map
A
Which of the following constructs does NOT require a colon at the end of the statement? A) a print statement B) a while loop C) a function definition D) an if statement
A
Which of the following statements is true? A) Freelancers often charge high hourly rates to make up for the fact that their employers don't provide health care and other benefits. B) Freelancers automatically receive free health insurance. C) Freelancers are not reliable because there is no way to rate their work ethic or job performance. D) Freelancers must hire an accountant to handle their billing and payments.
A
Yolonda is working on the software requirements specification (SRS), and she has been tasked with including a budget. The company is a small startup and only has limited funds available. Which of the following lists correctly prioritizes the areas in the budget, in order of most important to least important? A) development, marketing, advertising, PR B) development, PR, advertising, marketing C) marketing, development, PR, advertising D) advertising, development, marketing, PR
A
______ refers to powerful tools that optimize the flow of information in a large organization, including things like paying salaries and automatic re-ordering of inventory. A) Enterprise management systems (EMS) B) Crisis management equipment (CME) C) Customer management software (CMS) D) Chief technology suites (CTS)
A
Adalene is in charge of testing a program that she developed with some of her peers at school. She says that all tests should be run during the development phase as the code is written. Why is she incorrect? A) All testing should happen at the end of the development phase, after the code is written. B) Certain tests such as unit tests should happen during development, while other tests such as stress tests need to happen after development. C) All testing should happen during the deployment phase. D) It would be too expensive to bring in users to perform usability testing during the development phase.
B
Akinari was a programmer in the 1950s, and he used the language FORTRAN to develop programs. Which of the following programs might Akinari have written? A) a program that models vehicles by using classes such as Car, Truck, and Motorcycle B) a program that analyzes scientific data through the use of mathematical formulas C) an operating system that can control a computer D) a web application that uses dynamic scripting
B
Alicia says that binary coding is limited because it can only represent numbers. Is she correct? A) Yes. Binary consists only of 1s and 0s so it cannot represent words. B) No. Words can be translated into binary equivalent. C) Yes. Binary can only represent numbers from 0 to 100. D) No. Binary is limited because it can only represent decimal and hexadecimal numbers.
B
Bianca is attending a protest to support fair and equal access to the internet. What legislation is she MOST likely supporting? A) The 2001 Telecommunications Act B) Net Neutrality C) The Fair Communications Convention D) The Right to Compete clause
B
Carrie wants to know how many times her program has repeated. What should she include in her code? A) a repetition variable B) an iteration variable C) a version number D) a tracking number
B
Clive wants to print the numbers 1 through 10, so he uses the following code. for x in range(10): print(x) Why will he not get the output he wants? A) Only the number 10 will print because he has only put 10 inside the parenthesis. B) Python begins counting at 0, so the numbers 0 through 9 will print. C) He will get a syntax error because he did not capitalize 'For.' D) Python begins counting at 0, so the numbers 0 through 10 will print
B
Colin runs a statement in Python and the word "False" is printed. Which of the following statements could have given that output? A) print("It is Saturday today.") B) print("I am 105 years old.") C) print(x > y)) D) print("false")
B
Ellen's dream job is to work at Microsoft on Windows programs. Which computer language should she include on her resume to help her get the job? A) Objective-C B) C# C) LISP D) Pascal
B
Ethan is coding in Python and trying to add a set of numbers including both floats and integers. What should he do to make sure he doesn't lose the information after the decimal point? A) stereotype B) type cast C) regiment D) variable set
B
Exception handlers are programs that detect possible exceptions in code before they cause a system crash. A) True B) False
B
Hugo has an idea for a new app that would allow students from around the world to gather together online and share ideas to solve global problems. This app is an example of: A) geolocation. B) a social network. C) globalization. D) can open-source enterprise.
B
In recent years, modern classrooms are beginning to focus more on developing ______ and ______ skills. A) math; grammar B) communication; collaboration C) math; physics D) communication; grammar
B
Jose has developed a nutrition app for people to log their food intake. His app's servers occasionally go down, and when he totals the amount of downtime, it is one day out of every 100 days. Should he be concerned? A) Yes, because any amount of downtime is unacceptable. B) Yes, because his downtime is more than 0.01 percent. C) No, because it is normal for an app to be down 1 percent of the time. D) No, because the downtimes are usually at night, so users won't be affected.
B
Juan wrote a loop to print all the prime numbers between 1 and 100. But instead of stopping at 100, it continues on and on forever until Juan forces the program to stop running. What has Juan unintentionally written? A) a for loop B) an infinity loop C) a repetition statement D) an if/then statement
B
Julia is deciding what language she should use to write a program. She is a beginner so she would like to choose a language that is relatively simple and easy to debug. Which language should she choose? A) a compiled language B) an interpreted language C) assembly language D) machine language
B
Leilani's computer is acting sluggish and is having a hard time executing simple tasks. Which specific computer part is most likely the problem? A) hard drive B) CPU C) motherboard D) UMD
B
Marco manages a website for a streaming movie service. Marco is concerned that a hacker might break in to the back end of the website to steal customers' credit card numbers. What kind of testing would help prevent this? A) stress testing B) security testing C) agile testing D) usability testing
B
Python's keywords are NOT case sensitive. A) True B) False
B
Sarah has been hired as a consultant to a software development company that is frustrated by the number of errors in their code. Which of these is MOST likely to help their situation? A) a Gantt chart B) peer programming C) using different flowcharts D) a UML diagram
B
Shonda just wrote an If statement, but it does not work. Which of the following changes should she make to fix her code? A) Add a colon to the end of the first line of her if statement B) Add a period to the end of the first line of her if statement. C) Make sure that the word "if" is capitalized. D) Add parenthesis around the condition of the if statement.
B
Since it exists only in cyberspace, the internet has developed at consistent rates throughout the world. A) True B) False
B
Sophia is developing an iPhone app. Which object-oriented language is she MOST likely to use? A) Python B) Objective-C C) C# D) Ruby
B
The limits of computer programming mean that, for all their power, we haven't invented programs that can beat world masters at chess. A) True B) False
B
The rise in online advertising makes it easy to reach more people, but harder to customize your advertisements to specific groups of people. A) True B) False
B
Which of the following pieces of data is a string? A) 53 B) "53" C) 53.5 D) True
B
Which of the following programming paradigms gives the computer a command but lets the computer itself 'work out' how to achieve that end based on other provided definitions and description? A) procedural B) object-oriented C) descriptive D) definitional
B
Which of the following statements about JavaScript is true? A) It is the object-oriented offshoot of Java. B) It is one of the most popular languages used for web applications. C) It is designed to develop powerful standalone pieces of software. D) It is a static programming language.
B
Which of the following statements about debugging is true? A) Once a programmer is advanced and experienced, they no longer need to debug their code. B) Debugging involves identifying mistakes, fixing the code, and running the program again. C) The debugging process focuses mainly on removing syntax errors. D) Debugging requires the use of a manual to look up error codes.
B
Which of these lines is a comment in Python? A) print("Find the area") B) #Find the area C) 'Find the area' D) "Find the area"
B
Working as a professional at a big company like Google requires a college degree. A) True B) False
B
You are part of a software development team, and you have noticed that your team frequently has problems during the development phase when you are trying to identify a problem or need. Which of these webinars would be MOST helpful to your team? A) Making the Most of the Design Phase B) Better Analysis C) Development for Dummies D) Making Deployment Work
B
Alicia believes real-world feedback is more important to development than long cycles of documentation and planning. Which approach to developing BEST suits her perspective? A) waterfall B) spiral C) rapid prototyping D) absolute zero
C
Candace is legally blind. She points her phone at an orange on a table, presses a button, and the phone then says "orange." She is MOST likely using the application: A) Dragon Dictation. B) Waze. C) Aipoly Vision. D) TelFaire.
C
Compared to previous generations, how have education costs changed due to technology? A) Technology has had little effect on educational costs. B) To get a good education, students must take on huge debts. C) Quality education is affordable to more and more people. D) For-profit universities have become free for all.
C
Dana has a system for keeping herself organized. She uses sticky notes on her desk where she works to write down tasks she needs to do immediately. For tasks that need to be done sometime this week, she uses a small whiteboard on the wall in her room. For tasks that don't need to be done until next month, she uses a notepad that she keeps downstairs in the living room. In this scenario, which type of storage would be equivalent to the sticky notes? A) main memory B) secondary memory C) register D) processor
C
Dylan is working on software that he wants to run on a laptop, a smartphone, and a video game console. Which programming language would be the BEST choice for this software? A) C++ B) C# C) Java D) Pascal
C
One drawback of innovative, new technologies includes the: A) creation of new industries. B) increase in global customers. C) elimination of low-skill jobs. D) increase in resources for businesses.
C
The following code has which kind of error? total = 0 x = 0 while x < 10: total = total + x x = x + 1 A) syntax B) runtime C) logic D) fatal
C
What is the main difference between machine code and assembly code? A) Assembly language is a low-level language while machine code is a high-level language. B) Assembly code uses only numbers while machine code uses letters and numbers. C) Assembly code uses short words to represent machine code, while machine code uses numbers. D) Programmers can write programs using assembly code but they cannot write programs in machine code.
C
What term describes the inequalities between those who have access to modern computers and those who do not? A) the smartphone effect B) liminal intercession C) the digital divide D) the LAN Canyon
C
Which OOP principle would be represented by talking about a duckbilled-platypus as a mammal but one that has a beak and lays eggs? A) classes and instances B) inheritance C) overriding D) encapsulation
C
Which of the following statements contains a syntax error? A) if x > 5: B) print(x) C) if x = 5: D) print(x > 5)
C
Which of the following statements is true? A) In Python, every line must end with a semicolon. B) In Python, every line must be indented. C) In Python, keywords are case sensitive. D) In Python, a print statement must contain quotes.
C
Which of these is an assignment statement in Python? A) #year is 2020 B) year @ 2020 C) year = 2020 D) year[2020]
C
Which of these statements demonstrates a correct function call to the following function? def sleep(hours): if hours < 9: return "That's not enough sleep!" else: return "You are well-rested!" A) sleep() B) sleep: C) sleep(10) D) input = sleep(10)
C
Why is the software development life cycle significant? A) It guarantees that error-free software will be produced. B) It ensures that the team will complete the software within the projected time and budget. C) It provides a framework for planning the phases of production that software needs to go through. D) It provides the specifications for a prospective app or program.
C
Worldwide, what percentage of people do NOT use a smartphone? A) 10 B) 30 C) 50 D) 75
C
______ are "customer support experts" who are really just advanced computer programs. A) Mary Sues B) Pollyannas C) Chatbots D) Catfish
C
A friend wants to design an app but has never done so before and isn't sure how to begin. What would you suggest they do first? A) research B) STAIR C) iterative processing D) analysis
D
Alonso says that it doesn't matter whether he uses the word "print," "display," "run," or "save" in his Python code—the interpreter will know what he means and will output the data. Is Alonso correct? A) No, because Python only recognizes the word "print" and "run" in a program. B) Yes, all of those words will accomplish the goal of outputting data. C) No, he needs to capitalize all of those words in order for the interpreter to recognize them. D) No, Alonso is most likely thinking about pseudocode, where the exact syntax does not matter.
D
Amani says that the decimal number system contains the numbers 0 through 10. Is he correct? A) Yes, because "decimal" means "ten." B) Yes, because the decimal system is modelled after the human body which as ten fingers and ten toes. C) No, because the decimal system contains the numbers 1 through 10. D) No, because the decimal system contains the numbers 0 through 9, which is exactly 10 digits.
D
Kelli is a computer programmer. After writing a program, Kelli enjoys a break while the entire program is read by the computer and a set of machine instructions is generated. What kind of language is Kelli using to program? A) alphabetical B) delayed-action C) interpreted D) compiled
D
Maribel wants to learn more about the language that IBM developed in the middle of the last century that was designed to help computers perform calculations. Which of these should she research? A) Python B) binary C) Babbage D) FORTRAN
D
Marisol wants to learn how to write instructions for computer programs. Which of these Google searches would be MOST useful for her? A) how to use Moore's Law B) how to outsource C) how to make a bot D) how to code
D
Marta is the president of her school's debate club. Each person has assignments to prepare for the next debate tournament. What is the BEST way to keep track of them? A) flowchart B) module C) agile chart D) Gantt chart
D
Molly claims that she doesn't have to proofread her code for typos because the interpreter will catch her mistakes for her. Is she correct? A) Yes, the compiler will catch any syntax errors. B) No, she is responsible for finding all errors herself. C) Yes, the testing tool will find all errors. D) Yes, the interpreter will catch any syntax errors.
D
Suzi is looking for an application she can use to video chat with her mother in Indonesia. What application would you recommend to her? A) Waze B) Spotify C) Faceblock D) Skype
D
What happened to China and India after they modernized their workforces by providing more training and education? A) Their economies collapsed as they were unable to pay for their public services. B) They experienced civil wars between the haves and have-nots. C) People refused to take advantage of these programs due to anti-Western biases. D) Millions of people were lifted out of poverty.
D
What is the key driver in the modern American economy? A) manufacturing B) importing raw resources C) exporting service industries D) access to information
D
When you perform a Google search that uses the word 'and' (for example: 'Restaurant AND Houston'), which kind of logic are you using? A) hexadecimal B) ordered pairing C) binary D) Boolean
D
Which of the following best explains why algorithms are written in the design phase? A) Algorithms must be tested before they are deployed. B) It is best for the overall budget if algorithms are written early in the SDLC. C) The team that writes algorithms usually needs to move on to other projects, so they write algorithms early in the SDLC process. D) Algorithms need to be written in the design phase so they can be translated into code in the development phase.
D
Which of the following could be a method for an object-oriented class called Student? A) startCar B) pages C) teacher D) printGrades
D
Which of the following is an OOP principle that is represented by putting medicine inside a pill capsule to make it easier to swallow? A) classes and instances B) inheritance C) overriding D) encapsulation
D
Which of the following statements about registers is false? A) They are small stores of memory. B) They deliver data quickly. C) They cannot store large amounts of data. D) They can store large amounts of data.
D
Which of these checks to see if a variable called age is equal or not equal to 16? A) when age = 16: B) if age = 16: C) when age == 16: D) if age == 16:
D
Which of these represents a string variable? A) Ran B) -50 C) 3/2 D) "100 words"
D
Which of these should you use if you want a program to continue to ask the user for input until the user guesses the correct number? A) a comment loop B) a for loop C) a binary loop D) a while loop
D
Why do computers need both a binary number system and a Boolean logic system? A) Both systems are necessary to allow computers to connect to the internet. B) The binary number system only contains two numbers so it needs the Boolean logic system to provide additional numbers. C) The Boolean logic system is only used by the operating system, so the binary number system is needed for the rest of the computer to function. D) Both systems are necessary to store numbers that represent data and perform calculations and decisions on that data.
D
Why does binary only consist of 1s and 0s? A) Binary is designed to be simple so that the computer can understand it. B) Binary can only have two values because computer processors can only work with two numbers at a time. C) If binary had more than two values, computers would run out of memory. D) Binary represents the two possible states for a switch on a computer chip - on or off.
D
You are tutoring a student who is struggling in math. She says that her homework is to watch YouTube videos that the teacher has selected to explain new concepts, but the student does not have high-speed internet access at home. This is an example of: A) the Internet of Things. B) adaptive learning. C) globalization. D) the digital divide.
D
Your teacher asks you to put on goggles. With them on, it looks as if you are walking around the British Museum. This is an example of: A) adaptive learning. B) globalization. C) adaptive technology. D) virtual reality.
D
Zohan uses the following analogy to describe a concept of object-oriented programming. A button can have many uses. When it is pressed, it can cause a variety of different outcomes, such as opening a door or changing the volume. But you don't need to know what the button is going to do in order to operate it—you just push it. Which concept is he most likely talking about? A) encapsulation B) overriding C) inheritance D) polymorphism
D
_______ is a wearable robotic exoskeleton that uses powered hip and knee motion to enable individuals with spinal cord injuries to stand upright, walk, turn, and even climb and descend stairs. A) T-1000 B) Stairmaster C) ChairLift D) ReWalk
D