作业帮 > 综合 > 作业

帮我做下题,准确高的加分

来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/07/07 20:36:18
帮我做下题,准确高的加分
1.
Which method must exist in every Java application?
(a) main
(b) paint
(c) begin
(d) init
--------------------------------------------------------------------------------
2.
Which of the following statements is (are) true about the use of an asterisk (*) in a Java import statement?
It does not incur run-time overhead.
It can be used to import multiple packages with a single statement.
It can be used to import multiple classes with a single statement.
(a) I,II,and III
(b) III only
(c) I only
(d) I and III only
--------------------------------------------------------------------------------
3.
What will be output when the following Java program segment is executed?
int x = 5;
int y = 2;
System.out.println(x + y);
(a) 5 2
(b) 5+2
(c) 7
(d) 52
--------------------------------------------------------------------------------
4.
In Java,exceptions that are not handled are passed up the
(a) catch blocks
(b) call stack
(c) block hierarchy
(d) exception ladder
--------------------------------------------------------------------------------
5.
What is the name of the JDK program that processes Javadoc comments?
(a) java
(b) javac
(c) javacom
(d) javadoc
--------------------------------------------------------------------------------
6.
According to the Java code conventions,files longer than _____ lines should be _____.
(a) 2000,encouraged
(b) 2000,avoided
(c) 100,avoided
(d) 100,encouraged
--------------------------------------------------------------------------------
7.
A tool that allows programmers to execute lines of a program one line at a time in order to help locate the source of a program's errors is known as a(n)
(a) scope
(b) exception handler
(c) debugger
(d) stack trace
--------------------------------------------------------------------------------
8.
UML class diagrams can describe which of the following?
The internal structure of classes
Relationships between classes
(a) I only
(b) I and II
(c) II only
(d) None
--------------------------------------------------------------------------------
9.
Consider the following UML class diagram.
The diagram describes a
(a) one-to-one relationship
(b) relationship between a subclass and a superclass
(c) self-containing class
(d) class without methods
--------------------------------------------------------------------------------
10.
When using noun-phrase analysis to model a software system,which of the following should typically be eliminated from the list of potential classes?
References to the software system itself
Nouns that imply roles between objects
Synonyms to other nouns in the list
(a) I and III only
(b) I,II,and III
(c) III only
(d) II and III only
帮我做下题,准确高的加分
1
2
4
1
1
3
4
3
4
1