Coding Final Exam | UPDATED 2024 | RATED A+
Coding Final Exam | UPDATED 2024 | RATED A+ Which of the following is NOT an output device? - Camera What is the CPU? - The central processing unit, it acts as the brain of the computer and carries out commands. Instructions written in code that a computer follows are called: - Program The programs that run on a computer are called: - Software A name given to a spot in memory is called: - Variable Which of the following is NOT a legal variable name? - %information What is output by the following? print ("she sells nseashells") print ("by the seashore") - she sells seashells by the seashore What is output by the following? print ("/") print ("/") - / / ___________ is what we use to communicate day to day. - Natural Language What is output by the following? Assume the user enters Sally and John. x = input ("What is your name? ") y = input ("What is your friend's name? ") print ("Hi " + x + " and " + y) - Hi Sally and John Which of the following terms means "storing a value in a variable"? - Assignment Consider the following code: x = 17 y = 5 print (x % y) What is output? - 2 Which variable name is the best to hold the area of a rectangle? - area What is output? x = 2 y = 3 print (x * y + 2) - 8 Which of the following calculations would evaluate to 12? - 3 * ((6 + 2) /2) What is the output for the following? x = 7 print ("The number is: " + str(x * 2)) - The number is: 14 Which of the following correctly stores 45 squared in the variable x? - x = 45 x = x ** 2 Consider the following code: x = 9 y = -3 z = 2 print ((x + y) * z) What is output? - 12 What is output? print (3 % 15) - 3 Consider the following: calc = 3 * 5 + 4 ** 2 - 1 What is the base for the exponent? - 4 What is an IF statement used for? Select all that apply. - Make True/ False decisions Select between
Document information
- Uploaded on
- December 21, 2023
- Number of pages
- 3
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers