100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE 1321 test 1 (Already Passed) Questions With Solutions!! $11.99   Add to cart

Exam (elaborations)

CSE 1321 test 1 (Already Passed) Questions With Solutions!!

 0 view  0 purchase
  • Course
  • ...
  • Institution
  • ...

CSE 1321 test 1 (Already Passed) Questions With Solutions!!

Preview 3 out of 29  pages

  • August 25, 2024
  • 29
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • ...
  • ...
avatar-seller
legitnurse
Name: Score:


68 Multiple choice questions

Term 1 of 68
Printing an -------- prints a special character in an output string.

escape sequence

higher precidence

expression

variable

Term 2 of 68
The ------- provides another way to decide which statement to execute next

if statement

break statement

while loop

switch statement

,Definition 3 of 68
- Assignment conversion
Example: assign an int to a long


-Promotion
Example: divide an int by a double


- Casting
Example: assign a double to int

Expression Evaluation Follow


Abstraction

A Variable:


Conversion Techniques

Term 4 of 68
Variables: Usually, it's two steps:

-may lose data
-may lose precision
-should be avoided
-compiler error unless specific cast done

specifying the variable's name and the type of information that it will hold.

-"Declare" the variable - tell the computer what it is (do this only once)
-Assign values to the variable


-It cannot be a boolean value or a floating-point value (float or double)
-You cannot perform relational checks with a switch statement

, Term 5 of 68
Data type tells compiler:

-How much memory to allocate
-Format in which to store data
-Types of operations you will perform on data

-safe, do not lose data
-goes to a "wider" (more bits) data type
-may lose precision (long to float)

-Widening conversion (promotion)
-Narrowing conversion (demotion)

-"Declare" the variable - tell the computer what it is (do this only once)
-Assign values to the variable

Definition 6 of 68
+ addition
- subtraction
* multiplication
/ division
% modulus (say what?)

Relational Operators

Arithmetic Operators

Widening conversion (promotion)


Shortcut Operators

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 legitnurse. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $11.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

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