100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSCI 1301 Exam 1 With Questions And 100% Correct Answers $9.99   Add to cart

Exam (elaborations)

CSCI 1301 Exam 1 With Questions And 100% Correct Answers

 4 views  0 purchase
  • Course
  • CSCI 1301
  • Institution
  • CSCI 1301

CSCI 1301 Exam 1 With Questions And 100% Correct Answers...

Preview 2 out of 14  pages

  • October 11, 2024
  • 14
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CSCI 1301
  • CSCI 1301
avatar-seller
Easton
CSCI 1301 Exam 1 With Questions And
100% Correct Answers

Java does not compile directly to machine code. What then? - ANSWER The Java
programs are compiled into bytecode



What do we need in order to run a Java byte code program on a given computer? -
ANSWER We must have a suitable Java virtual machine, JVM, installed



How does the JVM make Java able to run on many machines? - ANSWER The JVM
translates the byte code into the local machine of the computer. Since JVMs have been
developed for many different types of computers, and each VM can run the same byte
code, the byte code program is called architecture neutral



Which of the following provides information about the space availability to store our
data? - ANSWER Secondary Memory



Which of the following provides information about space availability to store currently
executing programs? - ANSWER Main Memory



Why does the o/s waste the time transferring a program from hard drive to RAM to run?
Why not it just keep it in the hard drive and get rid of RAM completely? - ANSWER
Because Secondary memory is slow



What type of error (Syntax, Runtime, Logical) is easiest to fix? - ANSWER Syntax
because the Java program won't run at all because of syntactical errors



Which type of error is most difficult to get rid of? - ANSWER Logical because the Java
program will run as if everything was fine but the output will not be what was anticipated

, How many different numbers can you represent with a 4-bit number? - ANSWER 16



How many different numbers can you represent with a 4-byte number? - ANSWER 2^32
or 4294967296



Give a list of the 8 primitive data types available in Java. - ANSWER Byte, short, int, long,
float, double, char, and boolean



How many bytes are used to store a boolean value? - ANSWER 1 byte



How many bytes are used to store a byte value? - ANSWER 1 byte



How many bytes are used to store a short value? - ANSWER 2 bytes



How many bytes does it take to store a char value? - ANSWER 2 bytes



How many bytes does it take to store a int value? - ANSWER 4 bytes



How many bytes does it take to store a float value? - ANSWER 4 bytes



How many bytes does it take to store a long value? - ANSWER 8 bytes



How many bytes does it take to store a double value? - ANSWER 8 bytes



If s ant t are both variables for primitive data types such as int what sorts of things do
the variables actually store? - ANSWER s and t would both hold binary representations
of the values. E.g., If s is assigned the value 10, then it will hold a binary representation
of 10.

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 Easton. 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)

75759 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