- Study guides, Class notes & Summaries
Looking for the best study guides, study notes and summaries about ? On this page you'll find 17 study documents about .
17 results
Exam (elaborations)
Cmpsc 101 Quiz 1 Correct 100%
Algorithm - ANSWERa step-by-step process which is guaranteed to produce a specific result 
 
Assembly Language - ANSWERa low-level programing language 
 
Low-level Language - ANSWERharder coding, language understood by a computer with little or no translation 
 
High-level Language - ANSWEReasier coding, A language designed to be easily understood by programmers. They use commands and instructions based on English words or phrases. 
 
Brute Force Algorithm - ANSWERa process which tries every pos...
Exam (elaborations)
Cmpsc 101 Quiz 2 Correct 100%
PopularComplier - ANSWERa program used to translate the text program into a format that your computer can understand (called machine code) 
 
Machine Code - ANSWERa few basic commands which the computer can execute directly 
 
Variable - ANSWERvalue can vary 
 
Constant - ANSWERwhere the values stay, well, constant 
 
Data Types - ANSWEReach of which is used to store specific kinds of values 
 
Integers - ANSWERwhole numbers, typically in the range of -2,147,483,648 to 2,147,483,647. (int) 
 
Real Numb...
Exam (elaborations)
Cmpsc 101 midterm Exam #1 Questions with Correct Answers
NewCmpsc 101 midterm Exam #1 Questions with Correct Answers
Exam (elaborations)
Cmpsc 101 Midterm 1 Exam 2025 Brand New Actual Exam With 100% Verified Questions And Correct Solutions| Ace Your Grades.
Cmpsc 101 Midterm 1 Exam 2025 
Brand New Actual Exam With 100% 
Verified Questions And Correct 
Solutions| Ace Your Grades.
Exam (elaborations)
Cmpsc 101 Correct Questions & Answers(Scored A+)
x = 125 
y = x/5 
print(x,y) 
 
x= 100 
print(x,y) - ANSWER125 25.0 
100 25.0 
**when x changes it doesn't change y** 
 
Global Variable - ANSWERa variable defined outside of a function or class and can be used at any point following their definition in the script 
 
how long to local variables last - ANSWERremain active during the function call and when the function comes to an end it does as well 
 
return - ANSWEREnds execution of a method and possibly returns a value of a result 
 
float ...
Exam (elaborations)
Cmpsc 101 - Quiz #1 Correct 100%
Algorithm - ANSWERa step-by-step procedure for solving a problem 
 
Mnenomics - ANSWERsymbols which are easier to read and interpret than machine code; easier to work with than machine code 
 
Assembly language - ANSWERa low-level symbolic code converted by an assembler. 
 
Low level language - ANSWERa programming language that is designed to be easy for a computer to execute; also called machine language or assembly language. 
 
High level language - ANSWERa programming language that is designe...
Exam (elaborations)
Cmpsc 101 Exam 2 Questions & Answers(Rated A+)
Branching - ANSWERdirects a program to execute either one group of statements or another 
 
Function - ANSWERPredefined set of code that takes in Input and produces some sort of Output 
 
Function Cell - ANSWERfunctionName(argument1, argument2, ...) 
 
List - ANSWERA collection of values grouped together 
 
Why use lists? - ANSWERWhen you have lots of variables that store related information 
 
List examples - ANSWERmyList = [] 
myList = [1,2,3,4] 
myList = list('Hello World') 
 
How to ac...
Exam (elaborations)
Cmpsc 101 Exam 1 Correct 100%
char lettler; - ANSWERletter = 'z'; 
 
What is the output of this statement? 
cout << 4 * (15 / (1 + 3)) <<endl; - ANSWER12 
 
An integrated development environment typically consists of: - ANSWERDebugger, text editor, compiler 
 
A _________ is a diagram that shows the logical flow of a program - ANSWERflowchart
Exam (elaborations)
Cmpsc 101 Midterm Exam 1 Questions & Answers(Rated A+)
What command should you type in the interpreter to check your Python installation? - ANSWERpython 
 
What do you call a saved file containing Python instructions? - ANSWERA module 
 
How can you write the expression "n = n * 2" using short-hand operators? - ANSWERn *= 2 
 
Which string function do you call when you want to convert the first letter in the string to uppercase? - ANSWERalize() 
 
Which function do you call to check the number of items in a list? - ANSWERlen() 
 
Which operato...
Package deal
Cmpsc 101 Exam Package Deal||Questions And Answers 100% Correct!!
Cmpsc 101 Exam Package Deal||Questions And Answers 100% Correct!!Cmpsc 101 Exam Package Deal||Questions And Answers 100% Correct!!Cmpsc 101 Exam Package Deal||Questions And Answers 100% Correct!!Cmpsc 101 Exam Package Deal||Questions And Answers 100% Correct!!Cmpsc 101 Exam Package Deal||Questions And Answers 100% Correct!!Cmpsc 101 Exam Pack
Exam (elaborations)
Cmpsc 101 Final Correct 100%
What is the output of the following program? 
v1 = 9 
v2 = 8 
v3 = 7 
print("BEGIN") 
if (v1 < 10) or (v2 > 3): 
 print("A") 
if (v1 > 10) and (v2 > v3): 
 print("B") 
print("END") - ANSWERBEGIN 
A 
END 
 
Which of the following options is guaranteed to always give you the opposite Boolean value of (v1 < v2) and (v2 > v3) ? - ANSWER(v1 >= v2) or (v2 <= v3) 
 
What is the output of the following program? 
for x in range(5): 
 print(x, end=","...
Exam (elaborations)
Cmpsc 101 Exam 1 Accurate 100%
What does the "float" function do? - ANSWERUsing float allows the input to be converted to a decimal when needed for a calculation. 
 
If you want to round your value to a certain decimal place when inside the print statement, how would you go about it? - ANSWERprint (f'{x : .2f} {y : .2f} {z : .2f}') 
 
this will print the values all rounded to 2 decimal places 
 
When you add these two lists together, what are the results? 
 
vec1 = [1, 2, 3] 
vec2 = [0, 1, -1] - ANSWER[1, 2, 3, 0,...
Exam (elaborations)
Cmpsc 101 Exam 2 (Pennstate) Correct 100%
General format of an IF statement - ANSWERif condition: 
____statement 
____statement 
____etc. 
 
Block - ANSWERset of statements that belong together as a group (generally the set of statements indented) 
 
float() vs. int() - ANSWERAn integer (int) is a number without a decimal point. A float is a floating-point number, which means it is a number that has a decimal place. Floats are used when more precision is needed. 
 
IF - ELIF - ELSE statement structure - ANSWERif condition: 
____statemen...
Exam (elaborations)
Cmpsc 101 Midterm 2 Correct 100%
The Range(1,10,3) produces the values 
 
A. 1,4,7,10 
B. 1,4,7 
C. 1,3,5,7,9 
D. 1,10,3 - ANSWERB. 1,4,7 
 
How many asterisks would be printed by these two code fragments? 
 
A. 12 in both cases 
B. 6 in both cases 
C. 12 in the one on the left; 6 in the one of the right 
D. 6 in the one on the left; 4 in the one on the right - ANSWERC. 12 in the one on the left; 6 in the one of the right 
 
If is_prime is a function that identifies whether its argument was prime, what would this short function...
Exam (elaborations)
Cmpsc 101 Final Exam Study Guide Questions & Answers(Scored A+)
________ functions may have the same name as long as their parameter lists are different. 
A) Two or more 
B) Un-prototyped 
C) None of these 
D) No 
E) Only two - ANSWERA) Two or more 
 
A ________ argument is passed to a parameter when the actual argument is left out of the function. 
A) true 
B) default 
C) None of these 
D) false 
E) null - ANSWERB) default 
 
A debugging process where you, the programmer, pretend you are a computer and step through each statement while recording the ...
Exam (elaborations)
Cmpsc 101 Exam 1 Questions With Correct Solutions!!
Computer - ANSWERA programmable electronic device that can store, retrieve and process data 
 
Secondary Storage Devices - ANSWERcan hold data for long periods of time 
 
Volatile Memory - ANSWERTemporary storage: information is lost when power is turned off (RAM) 
 
Non-volatile Memory - ANSWERPermanent Storage: information can hold data for long periods of time; even if it powers off (secondary memory) 
 
Which is faster? Volatile or non-volatile memory? - ANSWERvolatile 
 
Application softwar...
Exam (elaborations)
CMPSC 101 Midterm 1&2 Exam Questions and Answers 2024 PSU
CMPSC 101 Midterm 1&2 Exam Questions and Answers 2024 PSU/CMPSC 101 Midterm 1&2 Exam Questions and Answers 2024 PSU/CMPSC 101 Midterm 1&2 Exam Questions and Answers 2024 PSU