Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 6 pages
Exam (elaborations)

CS1102 Final Exam Questions and answers. 100% PROVEN PASS RATE. Grade A+

Document preview thumbnail
Preview 2 out of 6 pages

CS1102 Final Exam Questions and answers. 100% PROVEN PASS RATE. Grade A+ Document Content and Description Below Consider the following Java declaration and assignment statement. float x = y; Which one of the following types is "y" NOT allowed to be? - double Which one of the following is NOT part of the signature of a Java method? - names of formal parameters Assume "test" is a boolean variable. Which of the following expressions is equivalent to "test == true"? - test Which of the following keywords is useful for getting out of an infinite loop? - break Consider the following Java statements. int x = 3; x = x++; What is the value x is holding? - !test Which of the following can a class NOT be used for? - a primitive type Consider the following Java method. Which term best describes what this method computes? static int doSomething(int[] a) {int b = 0; for (int c : a) b += c; return b;} - sum Which one of the following values can a Java variable NOT have? - an object Consider the following Java program, which one of the following best describes "count"? - a class variable A subclass will _____ one superclass. - extend A class that implements a listener interface does which of the following? - It handles events Consider the following Java program. What is the superclass of "Clicker"? - JFrame What does a Java compiler do? - Translates source code in ".java" files into Java byte code in ".class" files Consider the following Java method, which term best describes "String[] args"? - formal parameter Consider the following first line from a Java method definition. public static boolean compute(int n, float x) { Which one of the following lines could begin a method that legally overloads the above method? - public static boolean compute(float n, int x) { Consider the following line of Java code. Sln("Hello, World!"); Which one of the following does NOT describe '"Hello, World!"'? - a declaration Which of the following is NOT a valid identifier in Java? - public Consider the following line of Java code. Sln("Hello, World!"); "System" is which of the following? - a class Consider the following Java program. Which object registers event listeners? - this Consider the following Java program. Which statement registers an object to receive events? - ActionListener(this); In a while loop, how many times does the continuation condition run? - At least once, at the beginning of each iteration. Which one of the following claims about Java is INCORRECT? - An object is a type Consider the following Java program. Which statement updates the appearance of a button? - Text(SOf(count)); Consider the following line of Java code. Sln("Hello, World!"); The full line of code is which of the following? - a statement Consider the following Java program. Which statement displays a window with a button on the screen? - setVisible(true); Which one of the following terms does NOT describe a desirable interface to a black box? - implementation public class HelloWorld { - a variable declaration a class definition Which of the following should be used to compare the contents of two String objects in Java? - equals Consider the following Java program. Which one of the following is a package? - Consider the following Java program. Which one of the following is a


Document information

Uploaded on
May 9, 2023
Number of pages
6
Written in
2022/2023
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
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Savior
3.5
(25)
Sold
95
Followers
70
Items
3389
Last sold
6 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

Whoops! We can’t load your doc right now. Try again or contact support.