CSCI 1301 Midterm Exam Questions 100%
Solved.
All information is stored in the computer using binary numbers. - answerTrue
Java is an object-oriented programming language. - answerTrue
S is used in a program to denote that a documentation comment follows. -
answerFalse
The Java compiler is ab...
Inheritance is a form of software reuse. - answer✔True
Polymorphism is the idea that we can refer to multiple types of related objects in consistent
ways. - answer✔True
The Java compiler translates Java source code into a special representation called -
answer✔bytecode
A double is wider than a float and a float is wider than an int. - answer✔True
The values of (double) and (double) () are identical. - answer✔False
What value will z have if we execute the following assignment statement?
int z = .00; - answer✔non of the above, a run-time error arises because z is an int and 50 /
10.00 is not.
What is output with the statement System.out.println(""+x+y); if x and y are int values where x =
10 and y = 5? - answer✔105
What is output with the statement System.out.println(x+y); if x and y are int values where x = 10
and y = 5? - answer✔15
Assume that x, y, and z are all integers (int) equal to 50, 20, and 6 respectively. What is the result
of x / y / z? - answer✔0
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 sirjoel. 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.