Computer Science > QUESTIONS & ANSWERS > CS1102 Final Exam Questions and answers. 100% PROVEN PASS RATE. Grade A+ (All)

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. System.out.println("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. System.out.println("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? - ✔✔button.addActionListener(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? - ✔✔button.setText(String.valueOf(count)); Consider the following line of Java code. System.out.println("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? - ✔✔java.awt.event Consider the following Java program. Which one of the following is an interface? - ✔✔MouseListener Consider the following Java program. What is the superclass of "MouseWhisperer"? - ✔✔JFrame [Show More]

Last updated: 2 years ago

Preview 1 out of 6 pages

Buy Now

Instant download

We Accept:

We Accept
document-preview

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

We Accept

Reviews( 0 )

$7.00

Buy Now

We Accept:

We Accept

Instant download

Can't find what you want? Try our AI powered Search

129
0

Document information


Connected school, study & course


About the document


Uploaded On

Aug 16, 2022

Number of pages

6

Written in

Seller


seller-icon
bundleHub Solution guider

Member since 3 years

353 Documents Sold

Reviews Received
27
21
9
0
9
Additional information

This document has been written for:

Uploaded

Aug 16, 2022

Downloads

 0

Views

 129

Document Keyword Tags

More From bundleHub Solution guider

View all bundleHub Solution guider's documents »

$7.00
What is Scholarfriends

In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·