KSU Cse 1321 Test 1 UPDATED ACTUAL Questions and CORRECT Answers
2 views 0 purchase
Course
KSU Cse 1321
Institution
KSU Cse 1321
KSU Cse 1321 Test 1 UPDATED ACTUAL
Questions and CORRECT Answers
Which of the following variables could hold the literal numeric value 3.141 without losing
any information?
float x
int y
char z
string w - CORRECT ANSWER- float
KSU Cse 1321 Test 1 UPDATED ACTUAL
Questions and CORRECT Answers
Which of the following variables could hold the literal numeric value 3.141 without losing
any information?
float x
int y
char z
string w - CORRECT ANSWER✔✔- float
What is the value of the variable divisor in the following equation?
Int divisor = 3/6;
0.5
1
0
2 - CORRECT ANSWER✔✔- 0
What is the value of the variable remainder in the following equation?
long remainder = 3%6;
6
3
0
0.5 - CORRECT ANSWER✔✔- 3
When assigning a value to a variable, the variable must be on the left of the assignment
operator (=).
True
False - CORRECT ANSWER✔✔- True
, Constants are used to make program maintenance easier.
True
False - CORRECT ANSWER✔✔- True
A DEFAULT CASE is required as part of a SWITCH statement.
True
False - CORRECT ANSWER✔✔- False
An IF statement must always have an ELSE statement after it.
True
False - CORRECT ANSWER✔✔- False
True or False: The following is an example of a valid program in Pseudocode:
END MAIN - CORRECT ANSWER✔✔- False
You must declare and initialize a variable in two separate steps.
True
False - CORRECT ANSWER✔✔- False
Evaluate 10-(40+(20/(10-5)*2)/4)+50
18
22
4
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.