100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE 1321 Midterm UPDATED Questions and CORRECT Answers $9.99   Add to cart

Exam (elaborations)

CSE 1321 Midterm UPDATED Questions and CORRECT Answers

 4 views  0 purchase
  • Course
  • CSE 1321
  • Institution
  • CSE 1321

CSE 1321 Midterm UPDATED Questions and CORRECT Answers An assignment operation means giving the computer a value to store at a particular variable - CORRECT ANSWER- True If the expression xyz % 3 == 0 is true and xyz is a positive integer, then the value stored in the variable xyz is evenly ...

[Show more]

Preview 2 out of 10  pages

  • November 18, 2024
  • 10
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CSE 1321
  • CSE 1321
avatar-seller
MGRADES
CSE 1321 Midterm UPDATED Questions
and CORRECT Answers
An assignment operation means giving the computer a value to store at a particular variable -
CORRECT ANSWER✔✔- True


If the expression xyz % 3 == 0 is true and xyz is a positive integer, then the value stored in
the variable xyz is evenly divisible by 3. - CORRECT ANSWER✔✔- True


A flowchart is a type of diagram that represents an algorithm, workflow or process. -
CORRECT ANSWER✔✔- True


Once a string is initialized, its contents in memory can be changed (i.e.: strings are mutable in
memory). - CORRECT ANSWER✔✔- False


Sort the concepts below according to the order they are evaluated in a Python expression,
where the lowest number means "evaluated first" and the highest number means "evaluated
last".
Arithmetic Operators
Parenthesis
Logical Operators

Comparison Operators - CORRECT ANSWER✔✔- 1. Parenthesis
2. Arithmetic Operators
3. Comparison Operators
4. Logical Operators


Skeletons are the smallest amount of code which is necessary for a program to be able to run.
- CORRECT ANSWER✔✔- True


What is the result of the following expression in Python?

4 * 7 - 3 * 4 % 1 - 6 - CORRECT ANSWER✔✔- 22

, "Declaring a variable" means:
- Telling the computer to reserve some space in memory for storage and immediately give it a
value
- Giving the computer a value to store at a particular location in memory for the first time
- Telling the computer to reserve some space in memory for storage

- Telling the computer to remember a specific value - CORRECT ANSWER✔✔- Telling the
computer to reserve some space in memory for storage


Input is sending messages to the console/user. - CORRECT ANSWER✔✔- False


When it comes specifically to Computing, the concept of Abstraction means:
- General characteristics apart from the concrete
- An impractical idea
- A logical grouping of concepts

- A general idea or term - CORRECT ANSWER✔✔- A logical grouping of concepts


Consider two variables x and y. If the values of x=5 and y=10
if __name__ == "__main__":
if x < 0:
print("Message A")
else:
if x > y:
print("Message B")
else:
print("Message C")


What is displayed as the result of the code being executed?
- Nothing will be printed/displayed
- Message A
- Message B

- Message C - CORRECT ANSWER✔✔- Message C

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

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

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.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67866 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.99
  • (0)
  Add to cart