100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE 1321 Midterm (Modules 1-4) UPDATED ACTUAL Questions and CORRECT Answers $10.49   Add to cart

Exam (elaborations)

CSE 1321 Midterm (Modules 1-4) UPDATED ACTUAL Questions and CORRECT Answers

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

CSE 1321 Midterm (Modules 1-4) UPDATED ACTUAL Questions and CORRECT Answers Program design consists of: A) the ability to solve problems. B) steps a programmer should do before they start coding a program in a specific language. C) writing the code for a program. D) writing the documentatio...

[Show more]

Preview 4 out of 31  pages

  • November 18, 2024
  • 31
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CSE 1321
  • CSE 1321
avatar-seller
MGRADES
CSE 1321 Midterm (Modules 1-4)
UPDATED ACTUAL Questions and
CORRECT Answers
Program design consists of:


A) the ability to solve problems.
B) steps a programmer should do before they start coding a program in a specific language.
C) writing the code for a program.

D) writing the documentation for a program. - CORRECT ANSWER✔✔- B) steps a
programmer should do before they start coding a program in a specific language.


Software testing involves the execution of a software component or system component to
evaluate one or more properties of interest.


True or False - CORRECT ANSWER✔✔- true


Programming starts with:


a) looking online for the answers.
b) writing code until it works.

c) developing an algorithm. - CORRECT ANSWER✔✔- c) developing an algorithm.


Input is sending messages to the console/user.


true or false - CORRECT ANSWER✔✔- false



input is actually: - CORRECT ANSWER✔✔- reading and taking in information from the
user


Output is process of reading information from user, usually via keyboard or mouse.

,true or false - CORRECT ANSWER✔✔- false



output is actually: - CORRECT ANSWER✔✔- messages/ what is being displayed to the user
based off of the input information


A flowchart is a type of diagram that represents an algorithm, workflow or process.


true or false - CORRECT ANSWER✔✔- true


Pseudocode is


A) a formal programming language.
B) a machine.
C) an informal high-level description of the operating principle of a computer program or
algorithm. - CORRECT ANSWER✔✔- C) an informal high-level description of the
operating principle of a computer program or algorithm.


Debugging is the process of


a) compiling the source code.
b) publishing the source code to the client.
c) writing source code.

d) solving errors in the source code. - CORRECT ANSWER✔✔- d) solving errors in the
source code.


The MAIN method tells the program where to begin running code as it is the entry or starting
point for the program.


true or false - CORRECT ANSWER✔✔- true


IDE stands for

,a) Initial Degree Expectations
b) Integrated Development Environment

c) Intramural Department Executive - CORRECT ANSWER✔✔- b) Integrated Development
Environment


What is the output of the following code?


BEGIN MAIN
int u = 3;
int v = 5;
u += v;
v += u;
u -= v;
v -= u;
PRINT (u + ", " + v);
END MAIN


a) 5, 3
b) -5,-3
c) 3, 5

d) -5, 18 - CORRECT ANSWER✔✔- d) -5, 18


EXPLANATION
3 += 5 = 8(u) (3 + 5)
5 += 8 = 13(v) (5 + 8)
8 -= 13 = -5(u) (8 - 13)
13 -= -5 = 18(v) (13 - (-5))
so = -5, 18 is the final outcome

, What would be the best datatype to represent product? A variable that stores information
about the number of items currently in stock in a grocery store.


a) double
b) int
c) float

d) String - CORRECT ANSWER✔✔- b) int
(number of items in the store is going to be a whole number)


What is the value of j after this code is executed?


BEGIN MAIN
int i = 6, int j=10;
j+=i;
END MAIN


a) 10
b) 6
c) 4

d) 16 - CORRECT ANSWER✔✔- d) 16


A String (or string) object is a primitive data type.


true or false - CORRECT ANSWER✔✔- false



a string is actually: - CORRECT ANSWER✔✔- - composite of other data types
- Strings are immutable which means once a String object is created its contents cannot be
changed. (cant change in memory)
- complex: can be broken down into characters


What is the output of the following code?

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 $10.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

62890 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
$10.49
  • (0)
  Add to cart