Package deal
CMSC 202 Exam 1 Review(100% Errorless answers)
PSU cmpsc 201 exam 1(100% Everfree Answers) CMSC 201 MPL Test1(100% Guaranteed) MC/CMSC 110-201/TechnologyInAction—Chapter 1(A+ Guaranteed answers)
[Show more]PSU cmpsc 201 exam 1(100% Everfree Answers) CMSC 201 MPL Test1(100% Guaranteed) MC/CMSC 110-201/TechnologyInAction—Chapter 1(A+ Guaranteed answers)
[Show more]sequential control correct answers an implicit form of control in which instructions are executed in the order that they are written 
 
conditional control correct answers one or more expressions that trigger a choice between different logical branches. Each branch causes a different sequence of ins...
Preview 1 out of 4 pages
Add to cartsequential control correct answers an implicit form of control in which instructions are executed in the order that they are written 
 
conditional control correct answers one or more expressions that trigger a choice between different logical branches. Each branch causes a different sequence of ins...
Which of the following statement is incorrect? 
 b = 40; 
 s = 200; 
 i = 200; 
 j = 200L; correct answers j = 200L; 
 
What is item after the following loop terminates? ( line numbers are not a feature of a code) 
1: int sum = 0; 
2: int item = 0; 
3: do { 
4: item += 1; 
5: sum += item; 
6: if (s...
Preview 4 out of 34 pages
Add to cartWhich of the following statement is incorrect? 
 b = 40; 
 s = 200; 
 i = 200; 
 j = 200L; correct answers j = 200L; 
 
What is item after the following loop terminates? ( line numbers are not a feature of a code) 
1: int sum = 0; 
2: int item = 0; 
3: do { 
4: item += 1; 
5: sum += item; 
6: if (s...
What does a recursive call look like? correct answers smaller_area = triangle_area(smaller_length) 
 
Which list represents the partially sorted list [19, 1, 9, 7, 3, 10, 13, 15, 8, 12] after three complete passes of Bubble Sort? correct answers [1, 3, 7, 9, 10, 8, 12, 13, 15, 19] 
 
Which of the fo...
Preview 1 out of 4 pages
Add to cartWhat does a recursive call look like? correct answers smaller_area = triangle_area(smaller_length) 
 
Which list represents the partially sorted list [19, 1, 9, 7, 3, 10, 13, 15, 8, 12] after three complete passes of Bubble Sort? correct answers [1, 3, 7, 9, 10, 8, 12, 13, 15, 19] 
 
Which of the fo...
integer (int value) correct answers a whole number, ranging from positive to negative 
example: yards = 202 
 
double correct answers a double-precision real number in a floating point representation 
example: mole = 1.2336483 
 
float correct answers a real number in a floating point representatio...
Preview 1 out of 1 pages
Add to cartinteger (int value) correct answers a whole number, ranging from positive to negative 
example: yards = 202 
 
double correct answers a double-precision real number in a floating point representation 
example: mole = 1.2336483 
 
float correct answers a real number in a floating point representatio...
Which of the following is the correct statement to return JAVA? 
toUpperCase("Java") 
"Java".toUpperCase("Java") 
"Java".toUpperCase() 
SUpperCase("Java") correct answers "Java".toUpperCase() 
 
Which of the following statement is incorrect? 
 b = 40; 
 s = 200; 
 i = 200; 
 j = 200L; co...
Preview 2 out of 10 pages
Add to cartWhich of the following is the correct statement to return JAVA? 
toUpperCase("Java") 
"Java".toUpperCase("Java") 
"Java".toUpperCase() 
SUpperCase("Java") correct answers "Java".toUpperCase() 
 
Which of the following statement is incorrect? 
 b = 40; 
 s = 200; 
 i = 200; 
 j = 200L; co...
alignment options correct answers < left, > right, ^ center 
 
< puts the word to the left of the 'padding' 
 
"myFunc" in 
 
def myFunc(par1, par2): 
 ... 
 ... lines of code 
 
def main() 
 myFunc(arg1, arg2) 
 
main() correct answers function name 
 
"(par1, par2)" in 
 
def myFunc...
Preview 2 out of 5 pages
Add to cartalignment options correct answers < left, > right, ^ center 
 
< puts the word to the left of the 'padding' 
 
"myFunc" in 
 
def myFunc(par1, par2): 
 ... 
 ... lines of code 
 
def main() 
 myFunc(arg1, arg2) 
 
main() correct answers function name 
 
"(par1, par2)" in 
 
def myFunc...
string correct answers a sequence of characters enclosed within double quotes ( " ) or single quotes ( ' ) 
 
.lower() correct answers makes all characters in a string lowercase 
 
.upper() correct answers makes all characters in a string uppercase 
 
concatenation correct answers glues strings to...
Preview 2 out of 5 pages
Add to cartstring correct answers a sequence of characters enclosed within double quotes ( " ) or single quotes ( ' ) 
 
.lower() correct answers makes all characters in a string lowercase 
 
.upper() correct answers makes all characters in a string uppercase 
 
concatenation correct answers glues strings to...
variable correct answers a place to store value 
 
initialize correct answers assign a value to a variable 
 
instantiation correct answers to create a variable, give it a value (done once) 
 
assignment correct answers give a variable a value (any time in program) 
 
legal variable names correct an...
Preview 1 out of 2 pages
Add to cartvariable correct answers a place to store value 
 
initialize correct answers assign a value to a variable 
 
instantiation correct answers to create a variable, give it a value (done once) 
 
assignment correct answers give a variable a value (any time in program) 
 
legal variable names correct an...
Class correct answers a data type containing attributes (state) and operations (behaviors) 
 
Object correct answers a particular instance of a class 
 
Interpreted Languages (e.g. JavaScript, Perl, Ruby) correct answers translates source into binary and executes it 
 
Small, easy to write 
 is uniq...
Preview 2 out of 8 pages
Add to cartClass correct answers a data type containing attributes (state) and operations (behaviors) 
 
Object correct answers a particular instance of a class 
 
Interpreted Languages (e.g. JavaScript, Perl, Ruby) correct answers translates source into binary and executes it 
 
Small, easy to write 
 is uniq...
When a list is passed into a function: correct answers A reference is made as the local variable so that you can modify the original variable, even if it has a new local name. 
 
A variable defined within a function.... correct answers ...is only accessible inside that function 
 
When a dictionary ...
Preview 1 out of 3 pages
Add to cartWhen a list is passed into a function: correct answers A reference is made as the local variable so that you can modify the original variable, even if it has a new local name. 
 
A variable defined within a function.... correct answers ...is only accessible inside that function 
 
When a dictionary ...
How many elif statements can be in an if-elif-else block? 
 
A. 1 
B. There is no maximum 
C. 100 
D. None correct answers B. There is no maximum 
 
When the two following lines are run: 
 
the_string = 'hello i am a string' 
the_string[3] = 'a' 
 
A. the_string is now 'helao i am a string'. 
...
Preview 2 out of 6 pages
Add to cartHow many elif statements can be in an if-elif-else block? 
 
A. 1 
B. There is no maximum 
C. 100 
D. None correct answers B. There is no maximum 
 
When the two following lines are run: 
 
the_string = 'hello i am a string' 
the_string[3] = 'a' 
 
A. the_string is now 'helao i am a string'. 
...
What is a Data Structure correct answers a way of collecting data, of organizing. 
 
What is main? correct answers the method that runs when you hit run 
 
Name the 8 Primitive Types correct answers byte, short, int, long, float, double, char, boolean 
 
How to Declare a Variable correct answers sta...
Preview 2 out of 11 pages
Add to cartWhat is a Data Structure correct answers a way of collecting data, of organizing. 
 
What is main? correct answers the method that runs when you hit run 
 
Name the 8 Primitive Types correct answers byte, short, int, long, float, double, char, boolean 
 
How to Declare a Variable correct answers sta...
Decimal: 0 correct answers Binary: 0000 
Hexadecimal: 0 
 
Decimal: 1 correct answers Binary: 0001 
Hexadecimal: 1 
 
Decimal: 2 correct answers Binary: 0010 
Hexadecimal: 2 
 
Decimal: 3 correct answers Binary: 0011 
Hexadecimal: 3 
 
Decimal: 4 correct answers Binary: 0100 
Hexadecimal: 4 
 
Decim...
Preview 1 out of 3 pages
Add to cartDecimal: 0 correct answers Binary: 0000 
Hexadecimal: 0 
 
Decimal: 1 correct answers Binary: 0001 
Hexadecimal: 1 
 
Decimal: 2 correct answers Binary: 0010 
Hexadecimal: 2 
 
Decimal: 3 correct answers Binary: 0011 
Hexadecimal: 3 
 
Decimal: 4 correct answers Binary: 0100 
Hexadecimal: 4 
 
Decim...
Write the definition of a class Simple. The class has no constructors, methods or instance variables. correct answers public class Simple 
{ 
} 
 
Write the definitions of two classes Day and Night. Both classes have no constructors, methods or instance variables. 
 
Note: For this exercise, please ...
Preview 3 out of 18 pages
Add to cartWrite the definition of a class Simple. The class has no constructors, methods or instance variables. correct answers public class Simple 
{ 
} 
 
Write the definitions of two classes Day and Night. Both classes have no constructors, methods or instance variables. 
 
Note: For this exercise, please ...
Social media correct answers platforms like Twitter, Facebook, and Instagram that enable people to connect and exchange ideas 
 
Bot accounts correct answers automated programs that retweet news stories and quotes 
 
crisis-mapping tool correct answers A tool that collects information from e-mails, ...
Preview 2 out of 5 pages
Add to cartSocial media correct answers platforms like Twitter, Facebook, and Instagram that enable people to connect and exchange ideas 
 
Bot accounts correct answers automated programs that retweet news stories and quotes 
 
crisis-mapping tool correct answers A tool that collects information from e-mails, ...
what is a computer correct answers Programable electronic device that can store, retrieve and process data 
 
Advantages of computer correct answers reliable 
fast 
does not tire 
follows instructions 
 
disadvantages of computer correct answers Not "smart" 
follows instructions 
 
what can a com...
Preview 2 out of 10 pages
Add to cartwhat is a computer correct answers Programable electronic device that can store, retrieve and process data 
 
Advantages of computer correct answers reliable 
fast 
does not tire 
follows instructions 
 
disadvantages of computer correct answers Not "smart" 
follows instructions 
 
what can a com...
What situations are stacks used for? correct answers When operands and operators are used, backtracking. 
 
What situations are priority queues used for? correct answers When selecting the next process to run in OS. 
 
What situations are hash tables used for ? correct answers When retrieving/storin...
Preview 1 out of 1 pages
Add to cartWhat situations are stacks used for? correct answers When operands and operators are used, backtracking. 
 
What situations are priority queues used for? correct answers When selecting the next process to run in OS. 
 
What situations are hash tables used for ? correct answers When retrieving/storin...
What is an algorithm, as defined in our class? correct answers An algorithm is a finite set of instructions that can be executed and direct a terminating activity. 
 
Since when have algorithms been studied? correct answers They've been studied for ages. 
 
What are some examples of algorithms as d...
Preview 2 out of 13 pages
Add to cartWhat is an algorithm, as defined in our class? correct answers An algorithm is a finite set of instructions that can be executed and direct a terminating activity. 
 
Since when have algorithms been studied? correct answers They've been studied for ages. 
 
What are some examples of algorithms as d...
The word ____________________ is used before the array declaration in a function heading to prevent the function from modifying the array. correct answers const 
 
In C++, the ___________ symbol is an operator, called the member access operator. correct answers dot operator 
 
You can use the functi...
Preview 1 out of 2 pages
Add to cartThe word ____________________ is used before the array declaration in a function heading to prevent the function from modifying the array. correct answers const 
 
In C++, the ___________ symbol is an operator, called the member access operator. correct answers dot operator 
 
You can use the functi...
Extraction correct answers >> 
 
Insertion correct answers << 
 
The _______ operator always follows the cin object correct answers extraction 
 
The _______ operator always follows the cout object correct answers insertion 
 
C++ Operators that change their operands by 1 correct answers...
Preview 1 out of 2 pages
Add to cartExtraction correct answers >> 
 
Insertion correct answers << 
 
The _______ operator always follows the cin object correct answers extraction 
 
The _______ operator always follows the cout object correct answers insertion 
 
C++ Operators that change their operands by 1 correct answers...
Main Memory correct answers Consists of a long list of numbered memory locations 
 
RAM correct answers numbers memory locations 
 
Memory Location correct answers Contains binary digits 
 
Byte correct answers each memory location 
 
Address correct answers identifies a byte 
 
Secondary Memory cor...
Preview 1 out of 4 pages
Add to cartMain Memory correct answers Consists of a long list of numbered memory locations 
 
RAM correct answers numbers memory locations 
 
Memory Location correct answers Contains binary digits 
 
Byte correct answers each memory location 
 
Address correct answers identifies a byte 
 
Secondary Memory cor...
The term ________ means the ability to take many forms. correct answers polymorphism 
 
An iterator is a generalization of a ________, commonly used for a container classes. correct answers pointer 
 
If no exception is thrown, then the ______ _______ is ignored. correct answers catch 
 
A recursive...
Preview 1 out of 3 pages
Add to cartThe term ________ means the ability to take many forms. correct answers polymorphism 
 
An iterator is a generalization of a ________, commonly used for a container classes. correct answers pointer 
 
If no exception is thrown, then the ______ _______ is ignored. correct answers catch 
 
A recursive...
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Stuvia is a marketplace, so you are not buying this document from us, but from seller sh3rrymagdah. Stuvia facilitates payment to the seller.
No, you only buy these notes for $38.49. You're not tied to anything after your purchase.
4.6 stars on Google & Trustpilot (+1000 reviews)
81298 documents were sold in the last 30 days
Founded in 2010, the go-to place to buy study notes for 14 years now