Computer Science > QUESTIONS & ANSWERS > allQuiz DeVry University, Chicago CIS CIS355A . (All)
1. Question : (TCOs 1–8) The default value for data field of a Boolean type, numeric type, or object type is _____ respectively. Student Answer: true, 0, null. false, 1, null. true, 1, Null. f... alse, 0, null. true, 1, null. Instructor Explanation: Textbook Chapter 3 Points Received: 3 of 3 Comments: Question 2 . Question : (TCOs 1–8) How many JFrame objects can you create, and how many can you display? Student Answer: Unlimited Two Three One Instructor Explanation: Textbook Chapter 3 Points Received: 3 of 3 Comments: Question 3 . Question : (TCOs 1–8) Analyze the following code. public class Test { int x; public Test(String t) { System.out.println("Test"); } public static void main(String[ ] args) { Test test = null; System.out.println(test.x); } } Student Answer: The program has a compile error because x has not been initialized. The program has a runtime NullPointerException because test is null while executing test.x. The program has a compile error because test is not initialized. The program has a compile error because you cannot create an object from the class that defines the object. The program has a compile error because Test does not have a default constructor [Show More]
Last updated: 1 year ago
Preview 1 out of 24 pages
Connected school, study & course
About the document
Uploaded On
Apr 06, 2022
Number of pages
24
Written in
This document has been written for:
Uploaded
Apr 06, 2022
Downloads
0
Views
62
In Browsegrades, 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're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·