• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 3 pages
Exam (elaborations)

MODULE 2: REPRESENTING INFORMATIONCOMPUTER SCIENCE. Trusted by students across multiple disciplines!

Document preview thumbnail
Preview 1 out of 3 pages

MODULE 2: REPRESENTING INFORMATIONCOMPUTER SCIENCE. Trusted by students across multiple disciplines!

Content preview

MODULE 2: REPRESENTING INFORMATION-
COMPUTER SCIENCE.
Trusted by students across multiple disciplines!
What is a print statement? - Answer: A print statement is how we get a command to
print to our console.


What is a variable? - Answer: Something that represents a piece of data. The value
may or may not be known at the time of declaration (creation) and can be changed.


What are the two types of variables? - Answer: Reference and Primitives'


What is a Primitive? - Answer: A primitive is for storing simple values...
Int, float, double, long, boolean, char, byte, and short


What is a Reference variable? - Answer: A reference variable stores the memory
address of an object. We say that the variable "refers" to the object.


System.out.println(); - Answer: Java method that lets us print out a line of output
followed by a newline to the user


System.out.print(); - Answer: prints output without a newline


What is a data type? - Answer: Indicates the type of data a memory location (variable
or named constant) can store.


What are the different data types in Java? - Answer: int, float, double, short, byte,
boolean, long, and char...
String in Java is actually a non-primitive data type


Boolean - Answer: A single value of either TRUE or FALSE

1
APPHIA - Crafted with Care and Precision for Academic Excellence.

Document information

Uploaded on
December 23, 2025
Number of pages
3
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$8.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Apphia
3.0
(2)
Sold
7
Followers
0
Items
4542
Last sold
2 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions