Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
CPSC 217 Midterm Exam Review With 100% Correct And Verified Answers 2024 Compiler - Correct Answer-1. the whole file is turned into byte 2. The byte code is read by a python virtual machine, which executes the program python virtual machine - Correct Answer-executes a program interpreter - Correct Answer-1. the code is converted to byte 2. the code is executed line by line Algorithm - Correct Answer-A precise sequence of instructions for processes that can be executed by a computer Variables - Correct Answer-store data symbol to make a variable - Correct Answer-= integer - Correct Answer-positive or negative number with no decimals floating point number - Correct Answer-any number with decimals strings - Correct Answer-anything - numbers, letters, sentences, etc.
Typology: Exams
1 / 4
Compiler - Correct Answer-1. the whole file is turned into byte
exponent symbol - Correct Answer-** integer division definition - Correct Answer-gives only whole numbers integer division symbol - Correct Answer-// remainder division definition - Correct Answer-returns the remainder of a division remainder division symbol - Correct Answer-% what happens to a variable when the program ends? - Correct Answer-it ceases to exist. bye. when using an input function, how is the data stored - Correct Answer-string syntax error - Correct Answer-structure of the program is wrong, program won't run runtime error - Correct Answer-program runs, but errors are exposed when it does logic error - Correct Answer-the program is doing what you told it to do but you're wrong comment symbol - Correct Answer-# purpose of libraries - Correct Answer-import code written by other people import statement w/o changing the name - Correct Answer-import math import statement changing the name - Correct Answer-import math as mt format function - Correct Answer-easier way to put variables into a print function format function symbol - Correct Answer-"{}".format(variable) format function example - Correct Answer-print ("hello {}, your favourite colour is {}".format(name, age)) boolean - Correct Answer-a variable that is either true or false binary data type - Correct Answer-only 2 possible values True as an integer - Correct Answer- False as an integer - Correct Answer- symbol for equal to - Correct Answer-==
difference between = and == - Correct Answer-1. codes a variable
z = step define step value (range function) - Correct Answer-how much it increases by what is x in range(x) - Correct Answer-stop value what are x and y in range (x, y) - Correct Answer-x = start y = stop type of loop for continuous user input - Correct Answer-while loop type of loop that the loop control can be increased by a decimal - Correct Answer-while loop loop control is automatically updated - Correct Answer-for loop define data - Correct Answer-information without context define encoding - Correct Answer-mapping information to data