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 Exam With 100% Correct And Verified Answers 2024 computer - Correct Answer-a device that receives, processes, and represents data Moore's Law - Correct Answer-the complexity for minimum component cost has increased at a rate of roughlt a factor of two per year... Certainly over the short term this rate can be expected to continue, if not increase. Over the longer term, the rate of increase is a bit more uncertain, although there is no reason to believe it will not remain nearly constant for atleast 10 years. computer science - Correct Answer-study of computatio and computer technology, hardware, and software. diverse, problem solving interface Dining Philosophers Problem - Correct Answer-dealing with race conditions/deadlock software engineering - Correct Answer-adopting from previous models will ease future expansions Lossy Compression - Correct Answer-data is thrown away to make image smaller
Typology: Exams
1 / 5
computer - Correct Answer-a device that receives, processes, and represents data Moore's Law - Correct Answer-the complexity for minimum component cost has increased at a rate of roughlt a factor of two per year... Certainly over the short term this rate can be expected to continue, if not increase. Over the longer term, the rate of increase is a bit more uncertain, although there is no reason to believe it will not remain nearly constant for atleast 10 years. computer science - Correct Answer-study of computatio and computer technology, hardware, and software. diverse, problem solving interface Dining Philosophers Problem - Correct Answer-dealing with race conditions/deadlock software engineering - Correct Answer-adopting from previous models will ease future expansions Lossy Compression - Correct Answer-data is thrown away to make image smaller artificial intelligence - Correct Answer-studies and develops intelligent machines and pieces of software Difference Engine - Correct Answer-charles babbage (1847-1849) evaluated a degree 7 polynomial to 31 digits ENIAC (Electronic Numerical Integrator and Computer) - Correct Answer-completed in
programming - Correct Answer-translating algorithms into a computer language programming language - Correct Answer-allows users to control the behaviour of a computer levels of abstraction - Correct Answer-human languages > high level programming language > low level programming language > machine language comments - Correct Answer-provide information to someone reading the code syntax error - Correct Answer-identified as code is loaded, no statement executed runtime error - Correct Answer-identified as the program runs, program does not complete successfully logic error - Correct Answer-program runs to completion but generates incorrect results magic numbers - Correct Answer-an unnamed and/or poorly documented numeric constant without obvious meaning UTF-8 - Correct Answer-A coding system for storing characters in bits, extending the 8- bit ASCII coding system to include international characters by sometimes using more than 8 bits. ASCII (American Standard Code for Information Interchange) - Correct Answer-a code for representing English characters as numbers, with each letter assigned a number from 0 to 127 Boolean logic - Correct Answer-the basis for computation in modern computers Blackbox testing - Correct Answer-test program without looking at the source code, functional/behavioural Whitebox testing - Correct Answer-design test cases for the program by looking at its source code, structural condition coverage - Correct Answer-every decision point in the program is executed statement coverage - Correct Answer-every statement in the program is executed path coverage - Correct Answer-every possible path through the program is executed while loops - Correct Answer-allow a statement that only appear in the program once to execute several times, executes as long as (while) a condition executes to true
for loops - Correct Answer-allow a statement that only appears in the program once to execute several times, executes once for each value in a collection pre-tested loop - Correct Answer-loop condition is tested before the loop executes the first time, runs 0 or more times post-tested loop - Correct Answer-any loop where the condition is not checked until the loop has executed once, runs 1 or more times infinite loop - Correct Answer-a loop that never terminates, this is typically a bug initialization errors - Correct Answer-forget to initialize a value, initialize a variable to the wrong place termination error - Correct Answer-forget n = n-1, infinite loop off by one error - Correct Answer-loop body runs one time too many or one time too few tracing code - Correct Answer-examine each statement in sequence, perform whatever tasks the statement requires, recording values of interest (usually requires that the value of each variable is recorded), result of this could be the value of one or more variables or the output generated nested loops - Correct Answer-the body of the loop can contain another loop break - Correct Answer-entire loop ends immediately, execution continues at the first statement after the body continue - Correct Answer-current iteration ends immediately, execution returns to the top of the loop function - Correct Answer-a named set of statements, perform some tasks, may require parameters, or may return values parameter - Correct Answer-allow us to provide data to a function, the name of the parameter variable in the function definition argument - Correct Answer-the value placed in brackets after the dunction name when the function named argument - Correct Answer-allow users to assign arguments to parameters in any order global variables - Correct Answer-defined outside the function, can be read anywhere in the program after it is assigned a value
scope - Correct Answer-determines the portion of a program where a name can be used preconditions - Correct Answer-conditions that must be true before the function executes, if any precondition is not met, the function may not behave correctly postcondition - Correct Answer-consitions that are guaranteed to be true after the dunction executes, if the function doesnt make a post condition true then the function contains a bug that must be fixed list - Correct Answer-a collection of values selection sort - Correct Answer-while there are still elements in the unsorted list, find the smallest element, remove it, append it to the sorted list insertion sort - Correct Answer-while there are still elements in the unsorted list, remove an element from the unsorted list, find the correct location for that element in the sorted list, insert the element at the correct location bubble sort - Correct Answer-set done to false, while done is false, set done to true, for each pair of adjacent elements, if they are out of order, set done to false, swap the elements sorted method - Correct Answer-takes one parameter which is an unsorted list, return a new list sorted into increasing order sort method - Correct Answer-invoked on a list using dot notation, does not require any parameters, modifies the list, sorting it into ascending order tuples - Correct Answer-length cannot be changed, items cannot be assigned individually, () empty tuple, (3) length one tuple dictionary - Correct Answer-a collection of values, where each value in the dictionary has a unique identifier associated to it mutable type - Correct Answer-A compound data type whose elements can be assigned new values. (ie, list and dictionaries) immutable type - Correct Answer-A compound data type whose elements can NOT be assigned new values. (ie, float, int, boolean, string) files - Correct Answer-provide a less volatile form of storages, values are retained after the program ends, values are retain when the computer loses power
text file - Correct Answer-encoded using ASCII or Unicode, can be viewed with editors such as Emacs and Notepad, (ie. Python source files, web pages, .txt extension, .csv extension) binary files - Correct Answer-contain arbitrary sequences of bits which do not conform to ASCII or Unicode characters (ie. images, word processor files, sounds, videos, powerpoint, programs (.exe)) sequential access - Correct Answer-start at the beginning of the file (typically used for text files), read data from the file in the order that it occurs (may also be used for a binary file) random access file - Correct Answer-jump to an arbitrary location in the file, read some data, jump to a new location, read more data, let user read the midpoint of the file generally doesn't make sense. escape sequences - Correct Answer-provide a mechanism for placing a character that controls spacing inside a string command line arguments - Correct Answer-values entered by a user when running a program from a command line exceptions - Correct Answer-are thrown when an error occurs, can be caught to recover from te error database - Correct Answer-a structured collection of records organized for ease of search and retrieval schema - Correct Answer-describes the structure of the data primary key - Correct Answer-a unique value associated with each row in a table, typically an integer foreign key - Correct Answer-a primary key value from another table residing in the current table Recursion - Correct Answer-When a function calls itself. base case - Correct Answer-does not make a recursive call, permits function to terminate recursive case - Correct Answer-function calls itself, generally must be a call to a small or simpler version of the problem Fibonacci numbers - Correct Answer-A pattern of numbers. It is found in galaxies, shells, flowers, humans, and other things.