CSE 1321- Test 2 UPDATED Questions and CORRECT Answers
4 views 0 purchase
Course
CSE 1321
Institution
CSE 1321
CSE 1321- Test 2 UPDATED Questions and
CORRECT Answers
Binary/ Binary Search - CORRECT ANSWER- This type of search's advantage
increases as arrays get bigger
True/ T - CORRECT ANSWER- Arrays must be sorted to use Binary Search (T/F)
False/ F - CORRECT ANSWER- FOR EACH can be used for assignm...
CSE 1321- Test 2 UPDATED Questions and
CORRECT Answers
Binary/ Binary Search - CORRECT ANSWER✔✔- This type of search's advantage
increases as arrays get bigger
True/ T - CORRECT ANSWER✔✔- Arrays must be sorted to use Binary Search (T/F)
False/ F - CORRECT ANSWER✔✔- FOR EACH can be used for assignment (T/F)
Local Variable - CORRECT ANSWER✔✔- Variables within a method that can only be seen
by that method
True/ T - CORRECT ANSWER✔✔- Parameters in the method call and method header must
be in the same quantity, data type, and sequence (T/F)
Void - CORRECT ANSWER✔✔- Method has no return statement
True/ T - CORRECT ANSWER✔✔- Method (function) headers do NOT need to include
parameters (T/F)
False/ F - CORRECT ANSWER✔✔- The body of a method cannot be empty (T/F)
Byte - CORRECT ANSWER✔✔- Which data type would you use for householdSize
Double - CORRECT ANSWER✔✔- Which data type would you use for
elementAtomicWeight
Int - CORRECT ANSWER✔✔- Which data type would you use for cityPopulation
Character/ Char - CORRECT ANSWER✔✔- Which data type would you use for letterGrade
, Boolean/ Bool - CORRECT ANSWER✔✔- Which data type would you use for isItRaining
Long - CORRECT ANSWER✔✔- Which data type would you use for worldPopulation
Float - CORRECT ANSWER✔✔- Which data type would you use for annualPercentageRate
Short - CORRECT ANSWER✔✔- Which data type would you use for
numberOfHousesInSubdivision
Compiling/ Compile - CORRECT ANSWER✔✔- Process of turning source code into
working program
Continue - CORRECT ANSWER✔✔- This command skips an iteration of a loop
1 - CORRECT ANSWER✔✔- 3 - 6 % 5 * 2
Arithmatic - CORRECT ANSWER✔✔- What is evaluated FIRST in an expression
True/ T - CORRECT ANSWER✔✔- Do-While loops are not determinate (T/F)
count++ - CORRECT ANSWER✔✔- Another way of saying count +1
False/ F (must have END MAIN to be valid) - CORRECT ANSWER✔✔- MAIN is valid
pseudocode (T/F)
Linear/ Linear Search - CORRECT ANSWER✔✔- This type of search:
Examines every individual item in array until target is found/ not found
Searches in order of magnitude (O(n))
Uses a for nested if loop
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
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!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
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.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller MGRADES. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.99. You're not tied to anything after your purchase.