




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





assignment - CORRECT ANSWER>>> storing a value in a variable variable - CORRECT ANSWER>>> a name for the spot in a computer's memory elif - CORRECT ANSWER>>> tests a second (or third, or fourth...) condition in an if statement escape characters - CORRECT ANSWER>>> Special characters marked with the \n - CORRECT ANSWER>>> escape character that creates a new line \t - CORRECT ANSWER>>> escape character that creates a tab " - CORRECT ANSWER>>> escape character that prints a quote \ - CORRECT ANSWER>>> escape character that prints a slash not - CORRECT ANSWER>>> takes the opposite software - CORRECT ANSWER>>> programs that run on hardware function - CORRECT ANSWER>>> collection of commands given a name; Ex: input( ) binary - CORRECT ANSWER>>> a number system based on two
compiler - CORRECT ANSWER>>> translates code to machine language max - CORRECT ANSWER>>> finds the largest in a set of values syntax - CORRECT ANSWER>>> the set of rules that guide what is correct code for the compiler to run string - CORRECT ANSWER>>> Lets the user type in letters, numbers and words. Not used for calculations. min - CORRECT ANSWER>>> finds the smallest in a set of values and - CORRECT ANSWER>>> tests if both conditions are true secondary memory - CORRECT ANSWER>>> long-term memory; storage modular division - CORRECT ANSWER>>> gives the remainder of integers which have been divided Ex: 15%7 = 1 analog - CORRECT ANSWER>>> data and information in the real world computer science - CORRECT ANSWER>>> using technology to solve human problems module - CORRECT ANSWER>>> collection of code and functions that preform similar tasks decimal - CORRECT ANSWER>>> a number system based on ten, the number system we normally use
Main memory is short term memory used by the CPU in processing commands, secondary memory is more permanent and used for storage. operating system - CORRECT ANSWER>>> What controls computer memory? B - CORRECT ANSWER>>> Which is the correct order for translating code? A. Translate commands to machine language, check for mistakes, run the commands B. Check for mistakes, translate commands to machine language, Run the commands C. Run the commands, translate the commands, check for mistakes input - CORRECT ANSWER>>> Pulling information into the computer is ______________ D - CORRECT ANSWER>>> Which is a legal variable name? A. 52 B. #data C. 1test D. temperature strings and numbers - CORRECT ANSWER>>> What are the two basic variable data types? int - CORRECT ANSWER>>> What command is used to change a string into a number? C - CORRECT ANSWER>>> What is the output of the following: print (type("95"))? A. type B. C. D. (type (str))
false - CORRECT ANSWER>>> True or False: Information is never lost when converting analog information to a digital format
true - CORRECT ANSWER>>> True or False: We use number numbers instead of strings when we want to calculate something D - CORRECT ANSWER>>> Which of the following is NOT true? A. The memory uses binary numbers B. Computing devices are electronic C. The CPU processes commands D. Computing devices translate digital to analog information in order to process the information. assignment - CORRECT ANSWER>>> Storing a value in a variable
A - CORRECT ANSWER>>> When do you use an else statement? A. to tell what will happen if an if statement is false B. to end an if statement C. to handle string valules D. to input a variable B - CORRECT ANSWER>>> Which of the following are not true about algorithms? A. have clear instructions B. do number calculations C. stop in a finite amount of time D. have an order and - CORRECT ANSWER>>> The following code could: if (x<5): if (x>3) could be written as: if (3>>** True or False: The following code can test if the variable x is equal to 78 if (x = 78) false - CORRECT ANSWER>>> True or False: algorithms can do number calculations true - CORRECT ANSWER>>> True or False:
We analyze algorithms to predict performance and make decisions on which algorithms to use if (x >= 2) - CORRECT ANSWER>>> write a code to test if x is greater than or equal to 2 C - CORRECT ANSWER>>> For if statements to work in Python you must: A. add an else on them B. make decisions about them C. indent their code block D. use them with input commands