- 浏览: 2359 次
- 性别:
- 来自: 北京
最近访客 更多访客>>
文章分类
最新评论
-
je_administrator:
<p>都不贴答案,俺来一个(未google,一次完 ...
技术、英语好的不好的都来做做这套题,得来不易,写下你的答案。 -
halida:
看起來都是基礎題目呀?
技术、英语好的不好的都来做做这套题,得来不易,写下你的答案。 -
ywbanm:
有答案对对么
技术、英语好的不好的都来做做这套题,得来不易,写下你的答案。 -
skyforum:
tobackfurture 写道在哪搞的啊,可以说下吗?公司名 ...
技术、英语好的不好的都来做做这套题,得来不易,写下你的答案。 -
tobackfurture:
在哪搞的啊,可以说下吗?公司名!
技术、英语好的不好的都来做做这套题,得来不易,写下你的答案。
技术、英语好的不好的都来做做这套题,得来不易,写下你的答案。
给个机会,考考自己,看看基础扎不扎实。有些题目有多个答案。
Finalist IT Group (Netherlands)
第1题
题目分类:SQL & RDB
What is TRUE about the UNION command?
•A.
UNION will select distinct values.
•B.
UNION ALL will show all values, regardless if they are unique or not.
•C.
When using the UNION command, all selected columns need to be the same data type respectively
•D.
UNION command and JOIN command are identical.
第2题
题目分类:SQL & RDB
If we would like to avoid performance problems with the following SQL:
Select * from Customer order by age;
We should declare age in the DB as:
•A.
foreign key
•B.
VARCHAR[20]
•C.
hashcode
•D.
index
•E.
distinct
第3题
题目分类:SQL & RDB
Given the following table called Employees with 1 row.
EMP_ID | SURNAME | FIRST_NAME | OCCUPATION
---------------------------------------------
10 | Smith | John | programmer
You want to delete this row. Choose the correct DELETE command(s).
•A.
DELETE FROM EMPLOYEES WHERE EMP_ID = 10
•B.
DELETE FROM EMPLOYEES WHERE EMP_ID == 10
•C.
DELETE FROM EMPLOYEES WHERE EMP_ID IS (10)
•D.
DELETE FROM EMPLOYEES WHERE EMP_ID IN (10)
第4题
题目分类:SQL & RDB
Which of the following is not an aggregate function?
•A.
max()
•B.
avg()
•C.
sqrt()
•D.
sum()
第5题
题目分类:SQL & RDB
The "like" keyword can only be used with the following types of data:
•A.
char
•B.
integer
•C.
numeric
•D.
real
•E.
varchar
第6题
题目分类:SQL & RDB
Suppose you have table persons with the following structure:
id | name | age
You want to find out the average age of all persons that are at least 18 years old.
What query will you execute?
•A.
select avg(age) from persons where age >= 18
•B.
select avg(age) from persons having age >= 18
•C.
select avg(age) from persons where age >= 18 group by name
•D.
select avg(age) from persons having age >= 18 group by name
•E.
This can only be done using sub-queries
第7题
题目分类:Servlet
Which of the following entries are valid content types for the method? (Suppose response is an instance of the HttpServletResponse class.)
•A.
response.setContentType("text/xml");
•B.
response.setContentType("xml/xml");
•C.
response.setContentType("text/html");
•D.
response.setContentType("html/html3");
•E.
response.setContentType("text/plain");
•F.
response.setContentType("plain text");
第8题
题目分类:Servlet
Which of these is true about deployment descriptors. Select the one correct answer.
•A.
The order of elements in deployment descriptor is important. The elements must follow a specific order.
•B.
The elements of deployment descriptor are case insensitive.
•C.
The servlet-mapping element, if defined, must be included within the servlet element.
•D.
The web-app element must include the servlet element.
第9题
题目分类:Servlet
Which of the following statements are CORRECT when using the HTTP GET method for a form submission?
•A.
It cannot pass binary data to the server.
•B.
The parameters will be appended to the URL as a query string.
•C.
Server can reply for such request only with the HEADER information in the response.
•D.
The amount of data that it can send is dependent on the browser.
•E.
It cannot send multiple values for one parameter to the server.
第10题
题目分类:Servlet
What HTTP method is used when this form is submitted?
<HTML>
<BODY>
<FORM action='/myApp/SampleServlet'>
<INPUT type='submit' value='Enter Text'>
</FORM>
</BODY>
</HTML>
•A.
GET
•B.
TRACE
•C.
HEAD
•D.
POST
第11题
题目分类:Servlet
Which scopes can be used to store attributes in the Servlet based application:
Notation: scopeName (CorrespondingType)
•A.
application (ServletContext)
•B.
request (ServletRequest)
•C.
response (ServletResponse)
•D.
session (HttpSession)
•E.
servlet config (ServletConfig)
第12题
题目分类:Servlet
What is the output when you try to invoke the servlet defined below with the following URL from the address line from your browser:
http://www.javablackbelt.org/QuestionnaireDefDisplay.wwa?questPublicId=01514
1: // omitted imports
2:
3: public class JBBQuestionnaireServlet extends HttpServlet {
4:
5: protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
6: resp.getWriter().println (req.getParameter("questPublicId"));
7: }
8:
9: }
•A.
Blank page is displayed.
•B.
Blank page is displayed with the value 01514 printed out.
•C.
Blank page is displayed with the value null printed out.
•D.
Code compiles, server returns HTTP Status 405 - HTTP GET request not supported.
•E.
Don't compile.
第13题
题目分类:Java SE - Basic
Which of these are core interfaces in the collection framework?
•A.
Bag
•B.
LinkedList
•C.
Set
•D.
Map
•E.
Collection
第14题
题目分类:Java SE - Basic
Assume a method contains code which may raise an Exception (but not a RuntimeException) and there isn't any catch block to catch that exception. What is the correct way for the method to indicate that it expects the caller to handle that exception?
•A.
throw Exception
•B.
throws Exception
•C.
new Exception
•D.
Don't need to specify anything.
第15题
题目分类:Java SE - Basic
Suppose you need to validate that a String matches exactly 3 digits. Choose the possible regular expression patterns for this task, using:
Pattern regexPat = Pattern.compile("___");
Note that backslashes need to be escaped with another backslash for Java.
•A.
\\d{3}
•B.
[0-9](3)
•C.
[0-9][0-9][0-9]
•D.
[^a-zA-Z](3)
•E.
[0-9]+
第16题
题目分类:Java SE - Basic
What is true about packages?
•A.
Any type of class or interface must explicitly be declared within a package.
•B.
The package structure is reflected by a similar structure on disk.
•C.
The usage of a class outside of its own package must be preceded by it being imported using the import statement.
•D.
A package declaration must not contain uppercase letters.
第17题
题目分类:Java SE - Basic
When might your program wish to run the garbage collector?
•A.
before it enters a compute-intense section of code
•B.
before it enters a memory-intense section of code
•C.
when it knows there will be some idle time
•D.
before objects are finalized
•E.
All the above
•F.
None
第18题
题目分类:Java SE - Basic
When would you use a public attribute?
•A.
to emphasise the public use as all attributes are public by default
•B.
to define constants that need to be accessed by classes in other packages.
•C.
there is no such thing as a public attribute
•D.
to define an attribute accessible by all classes except the one where it is declared
第19题
题目分类:UML
As the result of the forward engineering process of this diagram we can receive the following result:
•A.
public class A {
public void m() {
new B();
new C();
}
}
•B.
public class A {
public void m() {
B b = new B();
C c = new C();
}
}
•C.
public class A {
public void m() {
new B(new C());
}
}
•D.
public class A {
public void m() {
new C(new B());
}
}
第20题
题目分类:UML
The diagram shown represents an/a ____________ element in the activity diagram.
•A.
Initial Activity
•B.
Activity
•C.
Final Activity
•D.
Concurrent Activity
第21题
题目分类:UML
Given:
A. Dynamic object modeling is achieved with interaction diagrams.
B. Static object modeling is implemented through class diagrams.
Which of the following statements are CORRECT?
•A.
Statement A is CORRECT.
•B.
Statement A is WRONG.
•C.
Statement B is CORRECT.
•D.
Statement B is WRONG.
第22题
题目分类:UML
If you wanted to visually demonstrate how a method called different objects, and in what order, which of the following would be the most appropriate type of diagram?
•A.
Object diagram
•B.
Sequence diagram
•C.
State diagram
•D.
Class diagram
第23题
题目分类:UML
Which of the following statements are true for the above class diagram?
•A.
The Grid class uses generics.
•B.
The Grid class inherits from List.
•C.
The get and set methods on Grid are public.
•D.
The Grid class is abstract.
•E.
The Grid class is an interface.
第24题
题目分类:UML
Which of the following sentences are true about activity diagrams:
•A.
The different users or roles in an activity diagram can only be annotated as comments to the action inside activity diagrams
•B.
The different users or roles in an activity can be modelled using partitions.
•C.
Activity diagrams have no means of expressing parallel execution
第25题
题目分类:JavaScript
Which of the following lines of code will print to the page the text:
His name was Henry "Sky" Philips ?
•A.
document.write("His name was Henry "Sky" Philips");
•B.
document.write('His name was Henry "Sky" Philips');
•C.
document.write("His name was Henry \"Sky\" Philips");
•D.
document.write("His name was Henry ""Sky"" Philips");
•E.
document.write(His name was Henry "Sky" Philips);
第26题
题目分类:JavaScript
Which of the following is true?
•A.
If onkeydown returns false, the key-press event is cancelled.
•B.
If onkeypress returns false, the key-down event is cancelled.
•C.
If onkeydown returns false, the key-up event is cancelled.
•D.
If onkeypress returns false, the key-up event is canceled.
第27题
题目分类:JavaScript
Which of the following HTML tag(s) support onchange event?
•A.
FORM
•B.
INPUT
•C.
TEXTAREA
•D.
SELECT
•E.
TABLE
•F.
IMAGE
第28题
题目分类:JavaScript
What is the value of i after the following for loop?
for (var i = 0; i < 2; i++) {
//Do nothing
}
// What is the value of i here?
•A.
undefined
•B.
0
•C.
1
•D.
2
第29题
题目分类:JavaScript
The unescape function is deprecated since JavaScript 1.5. Which of the following functions can be used to replace it?
•A.
escape
•B.
decodeURI
•C.
decodeURIComponent
•D.
decodeURIString
•E.
encodeURI
第30题
题目分类:JavaScript
If you wanted to insert a literal "tab" character into a JavaScript string. Which of the following sequences of characters inserted in a string would allow you to do that?
•A.
\n
•B.
\s
•C.
\t
•D.
This is not possible in JavaScript
Finalist IT Group (Netherlands)
Finalist IT Group (Netherlands)
第1题
题目分类:SQL & RDB
What is TRUE about the UNION command?
•A.
UNION will select distinct values.
•B.
UNION ALL will show all values, regardless if they are unique or not.
•C.
When using the UNION command, all selected columns need to be the same data type respectively
•D.
UNION command and JOIN command are identical.
第2题
题目分类:SQL & RDB
If we would like to avoid performance problems with the following SQL:
Select * from Customer order by age;
We should declare age in the DB as:
•A.
foreign key
•B.
VARCHAR[20]
•C.
hashcode
•D.
index
•E.
distinct
第3题
题目分类:SQL & RDB
Given the following table called Employees with 1 row.
EMP_ID | SURNAME | FIRST_NAME | OCCUPATION
---------------------------------------------
10 | Smith | John | programmer
You want to delete this row. Choose the correct DELETE command(s).
•A.
DELETE FROM EMPLOYEES WHERE EMP_ID = 10
•B.
DELETE FROM EMPLOYEES WHERE EMP_ID == 10
•C.
DELETE FROM EMPLOYEES WHERE EMP_ID IS (10)
•D.
DELETE FROM EMPLOYEES WHERE EMP_ID IN (10)
第4题
题目分类:SQL & RDB
Which of the following is not an aggregate function?
•A.
max()
•B.
avg()
•C.
sqrt()
•D.
sum()
第5题
题目分类:SQL & RDB
The "like" keyword can only be used with the following types of data:
•A.
char
•B.
integer
•C.
numeric
•D.
real
•E.
varchar
第6题
题目分类:SQL & RDB
Suppose you have table persons with the following structure:
id | name | age
You want to find out the average age of all persons that are at least 18 years old.
What query will you execute?
•A.
select avg(age) from persons where age >= 18
•B.
select avg(age) from persons having age >= 18
•C.
select avg(age) from persons where age >= 18 group by name
•D.
select avg(age) from persons having age >= 18 group by name
•E.
This can only be done using sub-queries
第7题
题目分类:Servlet
Which of the following entries are valid content types for the method? (Suppose response is an instance of the HttpServletResponse class.)
•A.
response.setContentType("text/xml");
•B.
response.setContentType("xml/xml");
•C.
response.setContentType("text/html");
•D.
response.setContentType("html/html3");
•E.
response.setContentType("text/plain");
•F.
response.setContentType("plain text");
第8题
题目分类:Servlet
Which of these is true about deployment descriptors. Select the one correct answer.
•A.
The order of elements in deployment descriptor is important. The elements must follow a specific order.
•B.
The elements of deployment descriptor are case insensitive.
•C.
The servlet-mapping element, if defined, must be included within the servlet element.
•D.
The web-app element must include the servlet element.
第9题
题目分类:Servlet
Which of the following statements are CORRECT when using the HTTP GET method for a form submission?
•A.
It cannot pass binary data to the server.
•B.
The parameters will be appended to the URL as a query string.
•C.
Server can reply for such request only with the HEADER information in the response.
•D.
The amount of data that it can send is dependent on the browser.
•E.
It cannot send multiple values for one parameter to the server.
第10题
题目分类:Servlet
What HTTP method is used when this form is submitted?
<HTML>
<BODY>
<FORM action='/myApp/SampleServlet'>
<INPUT type='submit' value='Enter Text'>
</FORM>
</BODY>
</HTML>
•A.
GET
•B.
TRACE
•C.
HEAD
•D.
POST
第11题
题目分类:Servlet
Which scopes can be used to store attributes in the Servlet based application:
Notation: scopeName (CorrespondingType)
•A.
application (ServletContext)
•B.
request (ServletRequest)
•C.
response (ServletResponse)
•D.
session (HttpSession)
•E.
servlet config (ServletConfig)
第12题
题目分类:Servlet
What is the output when you try to invoke the servlet defined below with the following URL from the address line from your browser:
http://www.javablackbelt.org/QuestionnaireDefDisplay.wwa?questPublicId=01514
1: // omitted imports
2:
3: public class JBBQuestionnaireServlet extends HttpServlet {
4:
5: protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
6: resp.getWriter().println (req.getParameter("questPublicId"));
7: }
8:
9: }
•A.
Blank page is displayed.
•B.
Blank page is displayed with the value 01514 printed out.
•C.
Blank page is displayed with the value null printed out.
•D.
Code compiles, server returns HTTP Status 405 - HTTP GET request not supported.
•E.
Don't compile.
第13题
题目分类:Java SE - Basic
Which of these are core interfaces in the collection framework?
•A.
Bag
•B.
LinkedList
•C.
Set
•D.
Map
•E.
Collection
第14题
题目分类:Java SE - Basic
Assume a method contains code which may raise an Exception (but not a RuntimeException) and there isn't any catch block to catch that exception. What is the correct way for the method to indicate that it expects the caller to handle that exception?
•A.
throw Exception
•B.
throws Exception
•C.
new Exception
•D.
Don't need to specify anything.
第15题
题目分类:Java SE - Basic
Suppose you need to validate that a String matches exactly 3 digits. Choose the possible regular expression patterns for this task, using:
Pattern regexPat = Pattern.compile("___");
Note that backslashes need to be escaped with another backslash for Java.
•A.
\\d{3}
•B.
[0-9](3)
•C.
[0-9][0-9][0-9]
•D.
[^a-zA-Z](3)
•E.
[0-9]+
第16题
题目分类:Java SE - Basic
What is true about packages?
•A.
Any type of class or interface must explicitly be declared within a package.
•B.
The package structure is reflected by a similar structure on disk.
•C.
The usage of a class outside of its own package must be preceded by it being imported using the import statement.
•D.
A package declaration must not contain uppercase letters.
第17题
题目分类:Java SE - Basic
When might your program wish to run the garbage collector?
•A.
before it enters a compute-intense section of code
•B.
before it enters a memory-intense section of code
•C.
when it knows there will be some idle time
•D.
before objects are finalized
•E.
All the above
•F.
None
第18题
题目分类:Java SE - Basic
When would you use a public attribute?
•A.
to emphasise the public use as all attributes are public by default
•B.
to define constants that need to be accessed by classes in other packages.
•C.
there is no such thing as a public attribute
•D.
to define an attribute accessible by all classes except the one where it is declared
第19题
题目分类:UML
As the result of the forward engineering process of this diagram we can receive the following result:
•A.
public class A {
public void m() {
new B();
new C();
}
}
•B.
public class A {
public void m() {
B b = new B();
C c = new C();
}
}
•C.
public class A {
public void m() {
new B(new C());
}
}
•D.
public class A {
public void m() {
new C(new B());
}
}
第20题
题目分类:UML
The diagram shown represents an/a ____________ element in the activity diagram.
•A.
Initial Activity
•B.
Activity
•C.
Final Activity
•D.
Concurrent Activity
第21题
题目分类:UML
Given:
A. Dynamic object modeling is achieved with interaction diagrams.
B. Static object modeling is implemented through class diagrams.
Which of the following statements are CORRECT?
•A.
Statement A is CORRECT.
•B.
Statement A is WRONG.
•C.
Statement B is CORRECT.
•D.
Statement B is WRONG.
第22题
题目分类:UML
If you wanted to visually demonstrate how a method called different objects, and in what order, which of the following would be the most appropriate type of diagram?
•A.
Object diagram
•B.
Sequence diagram
•C.
State diagram
•D.
Class diagram
第23题
题目分类:UML
Which of the following statements are true for the above class diagram?
•A.
The Grid class uses generics.
•B.
The Grid class inherits from List.
•C.
The get and set methods on Grid are public.
•D.
The Grid class is abstract.
•E.
The Grid class is an interface.
第24题
题目分类:UML
Which of the following sentences are true about activity diagrams:
•A.
The different users or roles in an activity diagram can only be annotated as comments to the action inside activity diagrams
•B.
The different users or roles in an activity can be modelled using partitions.
•C.
Activity diagrams have no means of expressing parallel execution
第25题
题目分类:JavaScript
Which of the following lines of code will print to the page the text:
His name was Henry "Sky" Philips ?
•A.
document.write("His name was Henry "Sky" Philips");
•B.
document.write('His name was Henry "Sky" Philips');
•C.
document.write("His name was Henry \"Sky\" Philips");
•D.
document.write("His name was Henry ""Sky"" Philips");
•E.
document.write(His name was Henry "Sky" Philips);
第26题
题目分类:JavaScript
Which of the following is true?
•A.
If onkeydown returns false, the key-press event is cancelled.
•B.
If onkeypress returns false, the key-down event is cancelled.
•C.
If onkeydown returns false, the key-up event is cancelled.
•D.
If onkeypress returns false, the key-up event is canceled.
第27题
题目分类:JavaScript
Which of the following HTML tag(s) support onchange event?
•A.
FORM
•B.
INPUT
•C.
TEXTAREA
•D.
SELECT
•E.
TABLE
•F.
IMAGE
第28题
题目分类:JavaScript
What is the value of i after the following for loop?
for (var i = 0; i < 2; i++) {
//Do nothing
}
// What is the value of i here?
•A.
undefined
•B.
0
•C.
1
•D.
2
第29题
题目分类:JavaScript
The unescape function is deprecated since JavaScript 1.5. Which of the following functions can be used to replace it?
•A.
escape
•B.
decodeURI
•C.
decodeURIComponent
•D.
decodeURIString
•E.
encodeURI
第30题
题目分类:JavaScript
If you wanted to insert a literal "tab" character into a JavaScript string. Which of the following sequences of characters inserted in a string would allow you to do that?
•A.
\n
•B.
\s
•C.
\t
•D.
This is not possible in JavaScript
评论
6 楼
je_administrator
2009-06-27
<p>都不贴答案,俺来一个(未google,一次完成)</p>
<p>感觉惨不忍睹啊,大家扔砖吧.</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;">Finalist IT Group (Netherlands) <br><br></span></span><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">1</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">SQL & RDB <br>What is TRUE about the UNION command? //感觉象多选<br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•A. <br>UNION will select distinct values. </span><br>•B. <br>UNION ALL will show all values, regardless if they are unique or not. <br>•C. <br>When using the UNION command, all selected columns need to be the same data type respectively <br>•D. <br>UNION command and JOIN command are identical. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">2</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">SQL & RDB <br>If we would like to avoid performance problems with the following SQL: <br>Select * from Customer order by age; <br>We should declare age in the DB as: <br>•A. <br>foreign key <br>•B. <br>VARCHAR[20] <br>•C. <br>hashcode <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>index </span><br>•E. <br>distinct <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">3</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">SQL & RDB <br>Given the following table called Employees with 1 row. <br><br>EMP_ID | SURNAME | FIRST_NAME | OCCUPATION <br>--------------------------------------------- <br>10 | Smith | John | programmer <br><br>You want to delete this row. Choose the correct DELETE command(s). <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•A. <br>DELETE FROM EMPLOYEES WHERE EMP_ID = 10 </span><br>•B. <br>DELETE FROM EMPLOYEES WHERE EMP_ID == 10 <br>•C. <br>DELETE FROM EMPLOYEES WHERE EMP_ID IS (10) <br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>DELETE FROM EMPLOYEES WHERE EMP_ID IN (10) </span><br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">4</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">SQL & RDB <br>Which of the following is not an aggregate function? <br>•A. <br>max() <br>•B. <br>avg() <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>sqrt() </span><br>•D. <br>sum() <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">5</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">SQL & RDB <br>The "like" keyword can only be used with the following types of data: <br>•A. <br>char <br>•B. <br>integer <br>•C. <br>numeric <br>•D. <br>real <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•E. <br>varchar </span><br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">6</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">SQL & RDB <br>Suppose you have table persons with the following structure: <br>id | name | age <br><br>You want to find out the average age of all persons that are at least 18 years old. <br><br>What query will you execute? <br>•A. <br>select avg(age) from persons where age >= 18 <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>select avg(age) from persons having age >= 18 </span><br>•C. <br>select avg(age) from persons where age >= 18 group by name <br>•D. <br>select avg(age) from persons having age >= 18 group by name <br>•E. <br>This can only be done using sub-queries <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">7</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Servlet <br>Which of the following entries are valid content types for the method? (Suppose response is an instance of the HttpServletResponse class.) <br>•A. <br>response.setContentType("text/xml"); <br>•B. <br>response.setContentType("xml/xml"); <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>response.setContentType("text/html"); </span><br>•D. <br>response.setContentType("html/html3"); <br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•E. <br>response.setContentType("text/plain"); </span><br>•F. <br>response.setContentType("plain text"); <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">8</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Servlet <br>Which of these is true about deployment descriptors. Select the one correct answer. <br>•A. <br>The order of elements in deployment descriptor is important. The elements must follow a specific order. <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>The elements of deployment descriptor are case insensiti</span>ve. <br>•C. <br>The servlet-mapping element, if defined, must be included within the servlet element. <br>•D. <br>The web-app element must include the servlet element. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">9</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Servlet <br>Which of the following statements are CORRECT when using the HTTP GET method for a form submission? <br>•A. <br>It cannot pass binary data to the server. <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>The parameters will be appended to the URL as a query string. </span><br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>Server can reply for such request only with the HEADER information in the response. </span><br>•D. <br>The amount of data that it can send is dependent on the browser. <br>•E. <br>It cannot send multiple values for one parameter to the server. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">10</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Servlet <br>What HTTP method is used when this form is submitted? <br><br><HTML> <br><BODY> <br> <FORM action='/myApp/SampleServlet'> <br> <INPUT type='submit' value='Enter Text'> <br> </FORM> <br></BODY> <br></HTML> <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•A. <br>GET </span><br>•B. <br>TRACE <br>•C. <br>HEAD <br>•D. <br>POST <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">11</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Servlet <br>Which scopes can be used to store attributes in the Servlet based application: <br><br>Notation: scopeName (CorrespondingType) <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•A. <br>application (ServletContext) </span><br>•B. <br>request (ServletRequest) <br>•C. <br>response (ServletResponse) <br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>session (HttpSession) <br>•E. <br>servlet config (ServletConfig) </span><br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">12</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Servlet <br>What is the output when you try to invoke the servlet defined below with the following URL from the address line from your browser: <br><br>http://www.javablackbelt.org/QuestionnaireDefDisplay.wwa?questPublicId=01514 <br><br><br>1: // omitted imports <br>2: <br>3: public class JBBQuestionnaireServlet extends HttpServlet { <br>4: <br>5: protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { <br>6: resp.getWriter().println (req.getParameter("questPublicId")); <br>7: } <br>8: <br>9: } <br>•A. <br>Blank page is displayed. <br>•B. <br>Blank page is displayed with the value 01514 printed out. <br>•C. <br>Blank page is displayed with the value null printed out. <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>Code compiles, server returns HTTP Status 405 - HTTP GET request not supported. <br></span>•E. <br>Don't compile. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">13</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Java SE - Basic <br>Which of these are core interfaces in the collection framework? <br>•A. <br>Bag <br>•B. <br>LinkedList <br>•C. <br>Set <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>Map </span><br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•E. <br>Collection </span><br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">14</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Java SE - Basic <br>Assume a method contains code which may raise an Exception (but not a RuntimeException) and there isn't any catch block to catch that exception. What is the correct way for the method to indicate that it expects the caller to handle that exception? <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•A. <br>throw Exception </span><br>•B. <br>throws Exception <br>•C. <br>new Exception <br>•D. <br>Don't need to specify anything. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">15</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Java SE - Basic <br>Suppose you need to validate that a String matches exactly 3 digits. Choose the possible regular expression patterns for this task, using: <br><br>Pattern regexPat = Pattern.compile("___"); <br><br><br>Note that backslashes need to be escaped with another backslash for Java. <br>•A. <br>\\d{3} <br>•B. <br>[0-9](3) <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>[0-9][0-9][0-9] </span><br>•D. <br>[^a-zA-Z](3) <br>•E. <br>[0-9]+ <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">16</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Java SE - Basic <br>What is true about packages? <br>•A. <br>Any type of class or interface must explicitly be declared within a package. <br>•B. <br>The package structure is reflected by a similar structure on disk. <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>The usage of a class outside of its own package must be preceded by it being imported using the import statement. </span><br>•D. <br>A package declaration must not contain uppercase letters. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">17</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Java SE - Basic <br>When might your program wish to run the garbage collector? <br>•A. <br>before it enters a compute-intense section of code <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>before it enters a memory-intense section of code </span><br>•C. <br>when it knows there will be some idle time <br>•D. <br>before objects are finalized <br>•E. <br>All the above <br>•F. <br>None <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">18</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Java SE - Basic <br>When would you use a public attribute? <br>•A. <br>to emphasise the public use as all attributes are public by default <br>•B. <br>to define constants that need to be accessed by classes in other packages. <br>•C. <br>there is no such thing as a public attribute <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>to define an attribute accessible by all classes except the one where it is declared </span><br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">19</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small;"><span style="font-family: Times New Roman;">UML <br>As the result of the forward engineering process of this diagram we can receive the following result: <br><br></span></span><br><br><span style="font-size: small; font-family: Times New Roman;">•A. <br>public class A { <br><br> public void m() { <br> new B(); <br> new C(); <br> } <br>} <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>public class A { <br><br> public void m() { <br> B b = new B(); <br> C c = new C(); <br> } <br>} </span><br>•C. <br>public class A { <br><br> public void m() { <br> new B(new C()); <br> } <br>} <br>•D. <br>public class A { <br><br> public void m() { <br> new C(new B()); <br> } <br>} <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">20</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">UML <br>The diagram shown represents an/a ____________ element in the activity diagram. <br>•A. <br>Initial Activity <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>Activity </span><br>•C. <br>Final Activity <br>•D. <br>Concurrent Activity <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">21</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">UML <br>Given: <br><br>A. Dynamic object modeling is achieved with interaction diagrams. <br>B. Static object modeling is implemented through class diagrams. <br><br>Which of the following statements are CORRECT? <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•A. <br>Statement A is CORRECT. </span><br>•B. <br>Statement A is WRONG. <br>•C. <br>Statement B is CORRECT. <br>•D. <br>Statement B is WRONG. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">22</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">UML <br>If you wanted to visually demonstrate how a method called different objects, and in what order, which of the following would be the most appropriate type of diagram? <br>•A. <br>Object diagram <br>•B. <br>Sequence diagram <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>State diagram </span><br>•D. <br>Class diagram <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">23</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">UML <br>Which of the following statements are true for the above class diagram? <br><br></span><br><br><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•A. <br>The Grid class uses generics. </span><br>•B. <br>The Grid class inherits from List. <br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>The get and set methods on Grid are public. </span><br>•D. <br>The Grid class is abstract. <br>•E. <br>The Grid class is an interface. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">24</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">UML <br>Which of the following sentences are true about activity diagrams: <br>•A. <br><span style="color: #ff0000;">The different users or roles in an activity diagram can only be annotated as comments to the action inside activity diagrams</span> <br>•B. <br>The different users or roles in an activity can be modelled using partitions. <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>Activity diagrams have no means of expressing parallel execution </span><br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">25</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">JavaScript <br>Which of the following lines of code will print to the page the text: <br>His name was Henry "Sky" Philips ? <br>•A. <br>document.write("His name was Henry "Sky" Philips"); <br>•B. <br>document.write('His name was Henry "Sky" Philips'); <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>document.write("His name was Henry \"Sky\" Philips"); </span><br>•D. <br>document.write("His name was Henry ""Sky"" Philips"); <br>•E. <br>document.write(His name was Henry "Sky" Philips); <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">26</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">JavaScript <br>Which of the following is true? <br>•A. <br>If onkeydown returns false, the key-press event is cancelled. <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>If onkeypress returns false, the key-down event is cancelled. </span><br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>If onkeydown returns false, the key-up event is cancelled. </span><br>•D. <br>If onkeypress returns false, the key-up event is canceled. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">27</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">JavaScript <br>Which of the following HTML tag(s) support onchange event? <br>•A. <br>FORM <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>INPUT </span><br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>TEXTAREA </span><br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>SELECT </span><br>•E. <br>TABLE <br>•F. <br>IMAGE <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">28</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">JavaScript <br>What is the value of i after the following for loop? <br><br><br>for (var i = 0; i < 2; i++) { <br>//Do nothing <br>} <br>// What is the value of i here? <br>•A. <br>undefined <br>•B. <br>0 <br>•C. <br>1 <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>2 </span><br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">29</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;">JavaScript <br>The unescape function is deprecated since JavaScript 1.5. Which of the following functions can be used to replace it? <br>•A. <br>escape <br>•B. <br>decodeURI <br>•C. <br>decodeURIComponent <br>•D. <br>decodeURIString <br>•E. <br><span style="color: #ff0000;">encodeURI </span><br><br></span></span><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">30</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">JavaScript <br>If you wanted to insert a literal "tab" character into a JavaScript string. Which of the following sequences of characters inserted in a string would allow you to do that? <br></span><span style="font-size: small;"><span style="font-family: Times New Roman;"><span style="color: #ff0000;">•A. <br>\n </span><br>•B. <br>\s <br></span></span><span style="font-size: small;"><span style="font-family: Times New Roman;"><span style="color: #ff0000;">•C. <br>\t </span><br>•D. <br>This is not possible in JavaScript</span></span></span></p>
<p> </p>
<p>感觉惨不忍睹啊,大家扔砖吧.</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;">Finalist IT Group (Netherlands) <br><br></span></span><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">1</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">SQL & RDB <br>What is TRUE about the UNION command? //感觉象多选<br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•A. <br>UNION will select distinct values. </span><br>•B. <br>UNION ALL will show all values, regardless if they are unique or not. <br>•C. <br>When using the UNION command, all selected columns need to be the same data type respectively <br>•D. <br>UNION command and JOIN command are identical. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">2</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">SQL & RDB <br>If we would like to avoid performance problems with the following SQL: <br>Select * from Customer order by age; <br>We should declare age in the DB as: <br>•A. <br>foreign key <br>•B. <br>VARCHAR[20] <br>•C. <br>hashcode <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>index </span><br>•E. <br>distinct <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">3</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">SQL & RDB <br>Given the following table called Employees with 1 row. <br><br>EMP_ID | SURNAME | FIRST_NAME | OCCUPATION <br>--------------------------------------------- <br>10 | Smith | John | programmer <br><br>You want to delete this row. Choose the correct DELETE command(s). <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•A. <br>DELETE FROM EMPLOYEES WHERE EMP_ID = 10 </span><br>•B. <br>DELETE FROM EMPLOYEES WHERE EMP_ID == 10 <br>•C. <br>DELETE FROM EMPLOYEES WHERE EMP_ID IS (10) <br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>DELETE FROM EMPLOYEES WHERE EMP_ID IN (10) </span><br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">4</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">SQL & RDB <br>Which of the following is not an aggregate function? <br>•A. <br>max() <br>•B. <br>avg() <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>sqrt() </span><br>•D. <br>sum() <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">5</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">SQL & RDB <br>The "like" keyword can only be used with the following types of data: <br>•A. <br>char <br>•B. <br>integer <br>•C. <br>numeric <br>•D. <br>real <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•E. <br>varchar </span><br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">6</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">SQL & RDB <br>Suppose you have table persons with the following structure: <br>id | name | age <br><br>You want to find out the average age of all persons that are at least 18 years old. <br><br>What query will you execute? <br>•A. <br>select avg(age) from persons where age >= 18 <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>select avg(age) from persons having age >= 18 </span><br>•C. <br>select avg(age) from persons where age >= 18 group by name <br>•D. <br>select avg(age) from persons having age >= 18 group by name <br>•E. <br>This can only be done using sub-queries <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">7</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Servlet <br>Which of the following entries are valid content types for the method? (Suppose response is an instance of the HttpServletResponse class.) <br>•A. <br>response.setContentType("text/xml"); <br>•B. <br>response.setContentType("xml/xml"); <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>response.setContentType("text/html"); </span><br>•D. <br>response.setContentType("html/html3"); <br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•E. <br>response.setContentType("text/plain"); </span><br>•F. <br>response.setContentType("plain text"); <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">8</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Servlet <br>Which of these is true about deployment descriptors. Select the one correct answer. <br>•A. <br>The order of elements in deployment descriptor is important. The elements must follow a specific order. <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>The elements of deployment descriptor are case insensiti</span>ve. <br>•C. <br>The servlet-mapping element, if defined, must be included within the servlet element. <br>•D. <br>The web-app element must include the servlet element. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">9</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Servlet <br>Which of the following statements are CORRECT when using the HTTP GET method for a form submission? <br>•A. <br>It cannot pass binary data to the server. <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>The parameters will be appended to the URL as a query string. </span><br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>Server can reply for such request only with the HEADER information in the response. </span><br>•D. <br>The amount of data that it can send is dependent on the browser. <br>•E. <br>It cannot send multiple values for one parameter to the server. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">10</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Servlet <br>What HTTP method is used when this form is submitted? <br><br><HTML> <br><BODY> <br> <FORM action='/myApp/SampleServlet'> <br> <INPUT type='submit' value='Enter Text'> <br> </FORM> <br></BODY> <br></HTML> <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•A. <br>GET </span><br>•B. <br>TRACE <br>•C. <br>HEAD <br>•D. <br>POST <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">11</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Servlet <br>Which scopes can be used to store attributes in the Servlet based application: <br><br>Notation: scopeName (CorrespondingType) <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•A. <br>application (ServletContext) </span><br>•B. <br>request (ServletRequest) <br>•C. <br>response (ServletResponse) <br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>session (HttpSession) <br>•E. <br>servlet config (ServletConfig) </span><br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">12</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Servlet <br>What is the output when you try to invoke the servlet defined below with the following URL from the address line from your browser: <br><br>http://www.javablackbelt.org/QuestionnaireDefDisplay.wwa?questPublicId=01514 <br><br><br>1: // omitted imports <br>2: <br>3: public class JBBQuestionnaireServlet extends HttpServlet { <br>4: <br>5: protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { <br>6: resp.getWriter().println (req.getParameter("questPublicId")); <br>7: } <br>8: <br>9: } <br>•A. <br>Blank page is displayed. <br>•B. <br>Blank page is displayed with the value 01514 printed out. <br>•C. <br>Blank page is displayed with the value null printed out. <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>Code compiles, server returns HTTP Status 405 - HTTP GET request not supported. <br></span>•E. <br>Don't compile. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">13</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Java SE - Basic <br>Which of these are core interfaces in the collection framework? <br>•A. <br>Bag <br>•B. <br>LinkedList <br>•C. <br>Set <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>Map </span><br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•E. <br>Collection </span><br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">14</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Java SE - Basic <br>Assume a method contains code which may raise an Exception (but not a RuntimeException) and there isn't any catch block to catch that exception. What is the correct way for the method to indicate that it expects the caller to handle that exception? <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•A. <br>throw Exception </span><br>•B. <br>throws Exception <br>•C. <br>new Exception <br>•D. <br>Don't need to specify anything. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">15</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Java SE - Basic <br>Suppose you need to validate that a String matches exactly 3 digits. Choose the possible regular expression patterns for this task, using: <br><br>Pattern regexPat = Pattern.compile("___"); <br><br><br>Note that backslashes need to be escaped with another backslash for Java. <br>•A. <br>\\d{3} <br>•B. <br>[0-9](3) <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>[0-9][0-9][0-9] </span><br>•D. <br>[^a-zA-Z](3) <br>•E. <br>[0-9]+ <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">16</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Java SE - Basic <br>What is true about packages? <br>•A. <br>Any type of class or interface must explicitly be declared within a package. <br>•B. <br>The package structure is reflected by a similar structure on disk. <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>The usage of a class outside of its own package must be preceded by it being imported using the import statement. </span><br>•D. <br>A package declaration must not contain uppercase letters. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">17</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Java SE - Basic <br>When might your program wish to run the garbage collector? <br>•A. <br>before it enters a compute-intense section of code <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>before it enters a memory-intense section of code </span><br>•C. <br>when it knows there will be some idle time <br>•D. <br>before objects are finalized <br>•E. <br>All the above <br>•F. <br>None <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">18</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">Java SE - Basic <br>When would you use a public attribute? <br>•A. <br>to emphasise the public use as all attributes are public by default <br>•B. <br>to define constants that need to be accessed by classes in other packages. <br>•C. <br>there is no such thing as a public attribute <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>to define an attribute accessible by all classes except the one where it is declared </span><br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">19</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small;"><span style="font-family: Times New Roman;">UML <br>As the result of the forward engineering process of this diagram we can receive the following result: <br><br></span></span><br><br><span style="font-size: small; font-family: Times New Roman;">•A. <br>public class A { <br><br> public void m() { <br> new B(); <br> new C(); <br> } <br>} <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>public class A { <br><br> public void m() { <br> B b = new B(); <br> C c = new C(); <br> } <br>} </span><br>•C. <br>public class A { <br><br> public void m() { <br> new B(new C()); <br> } <br>} <br>•D. <br>public class A { <br><br> public void m() { <br> new C(new B()); <br> } <br>} <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">20</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">UML <br>The diagram shown represents an/a ____________ element in the activity diagram. <br>•A. <br>Initial Activity <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>Activity </span><br>•C. <br>Final Activity <br>•D. <br>Concurrent Activity <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">21</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">UML <br>Given: <br><br>A. Dynamic object modeling is achieved with interaction diagrams. <br>B. Static object modeling is implemented through class diagrams. <br><br>Which of the following statements are CORRECT? <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•A. <br>Statement A is CORRECT. </span><br>•B. <br>Statement A is WRONG. <br>•C. <br>Statement B is CORRECT. <br>•D. <br>Statement B is WRONG. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">22</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">UML <br>If you wanted to visually demonstrate how a method called different objects, and in what order, which of the following would be the most appropriate type of diagram? <br>•A. <br>Object diagram <br>•B. <br>Sequence diagram <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>State diagram </span><br>•D. <br>Class diagram <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">23</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">UML <br>Which of the following statements are true for the above class diagram? <br><br></span><br><br><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•A. <br>The Grid class uses generics. </span><br>•B. <br>The Grid class inherits from List. <br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>The get and set methods on Grid are public. </span><br>•D. <br>The Grid class is abstract. <br>•E. <br>The Grid class is an interface. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">24</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">UML <br>Which of the following sentences are true about activity diagrams: <br>•A. <br><span style="color: #ff0000;">The different users or roles in an activity diagram can only be annotated as comments to the action inside activity diagrams</span> <br>•B. <br>The different users or roles in an activity can be modelled using partitions. <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>Activity diagrams have no means of expressing parallel execution </span><br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">25</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">JavaScript <br>Which of the following lines of code will print to the page the text: <br>His name was Henry "Sky" Philips ? <br>•A. <br>document.write("His name was Henry "Sky" Philips"); <br>•B. <br>document.write('His name was Henry "Sky" Philips'); <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>document.write("His name was Henry \"Sky\" Philips"); </span><br>•D. <br>document.write("His name was Henry ""Sky"" Philips"); <br>•E. <br>document.write(His name was Henry "Sky" Philips); <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">26</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">JavaScript <br>Which of the following is true? <br>•A. <br>If onkeydown returns false, the key-press event is cancelled. <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>If onkeypress returns false, the key-down event is cancelled. </span><br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>If onkeydown returns false, the key-up event is cancelled. </span><br>•D. <br>If onkeypress returns false, the key-up event is canceled. <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">27</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">JavaScript <br>Which of the following HTML tag(s) support onchange event? <br>•A. <br>FORM <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•B. <br>INPUT </span><br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•C. <br>TEXTAREA </span><br></span></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>SELECT </span><br>•E. <br>TABLE <br>•F. <br>IMAGE <br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">28</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">JavaScript <br>What is the value of i after the following for loop? <br><br><br>for (var i = 0; i < 2; i++) { <br>//Do nothing <br>} <br>// What is the value of i here? <br>•A. <br>undefined <br>•B. <br>0 <br>•C. <br>1 <br></span><span style="font-family: Times New Roman;"><span style="font-size: small;"><span style="color: #ff0000;">•D. <br>2 </span><br><br></span></span></span><span style="font-size: small;"><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">29</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;">JavaScript <br>The unescape function is deprecated since JavaScript 1.5. Which of the following functions can be used to replace it? <br>•A. <br>escape <br>•B. <br>decodeURI <br>•C. <br>decodeURIComponent <br>•D. <br>decodeURIString <br>•E. <br><span style="color: #ff0000;">encodeURI </span><br><br></span></span><span>第</span><span lang="EN-US"><span style="font-family: Times New Roman;">30</span></span><span>题</span></span><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;"> <br></span></span><span>题目分类:</span></span><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">JavaScript <br>If you wanted to insert a literal "tab" character into a JavaScript string. Which of the following sequences of characters inserted in a string would allow you to do that? <br></span><span style="font-size: small;"><span style="font-family: Times New Roman;"><span style="color: #ff0000;">•A. <br>\n </span><br>•B. <br>\s <br></span></span><span style="font-size: small;"><span style="font-family: Times New Roman;"><span style="color: #ff0000;">•C. <br>\t </span><br>•D. <br>This is not possible in JavaScript</span></span></span></p>
<p> </p>
5 楼
halida
2009-06-27
看起來都是基礎題目呀?
4 楼
ywbanm
2009-06-26
有答案对对么
3 楼
skyforum
2009-06-26
tobackfurture 写道
在哪搞的啊,可以说下吗?公司名!
Finalist IT Group (Netherlands)
2 楼
tobackfurture
2009-06-26
在哪搞的啊,可以说下吗?公司名!
1 楼
Hooopo
2009-06-26
这题有什么特别吗?
相关推荐
在合法场景下,如软件测试、渗透测试中,开发者也会使用类似技术来测试其软件的安全性。然而,这种技术在恶意软件中的应用无疑加剧了网络安全的复杂性,要求安全软件持续升级和优化其检测算法,以应对不断演变的威胁...
AutoCAD软件作为计算机辅助设计(CAD)领域中最著名的软件之一,...通过这样的开发,可以将AutoCAD变得更加专业化和本地化,更好地服务于机械设计领域,提高设计效率,缩短产品开发周期,最终实现企业经济效益的提升。
当我拿起笔来记录下这段难忘的时光,不仅是为了完成一项作业,更是为了将这份对绿色生活的热爱和对环保责任的思考传递给更多的人。 环境保护,这是一个多么宏大的话题,它关乎我们每个人的生活质量和未来的希望。...
C语言是一种结构化程序设计语言,它支持当前程序设计中广泛采用的由顶向下结构化程序设计技术。此外,C语言程序具有完善的模块程序结构,从而为软件开发中采用模块化程序设计方法提供了有力的保障。因此,使用C语言...
关系型数据库通常采用垂直扩展策略,即通过增加单个服务器的硬件资源来提升性能,但这会遇到物理和经济上的限制。相反,NoSQL数据库如Couchbase则倾向于水平扩展,通过添加更多的服务器节点来分摊负载,这种模式更...
《PowerMock实战手册》是一本专注于使用PowerMock进行单元测试的指南,结合了Junit测试框架和Mockito库,为...通过学习这本书,你不仅可以掌握PowerMock的用法,还能深入理解单元测试的最佳实践,提升你的编程技能。
这款工具类库旨在帮助开发者以更优雅的方式处理配置类代码,使得应用的内部数据管理变得简单易用。 `DoKV`框架的核心功能在于提供一个轻量级的Key-Value存储系统,它支持快速读写操作,并且具备良好的兼容性和稳定...
<br>(7) 第7章:多形性 若由你自己来干,可能要花9个月的时间才能发现和理解多形性的问题,这一特性实际是OOP一个重要的基础。通过一些小的、简单的例子,读者可知道如何通过继承来创建一系列类型,并通过...
商业人像摄影的受众是顾客,由于大多数顾客都希望拍出的照片把自己表现得漂亮一些,这就需要摄影师充分利用拍摄角度、道具环境、灯光造型等手段去美化顾客。在商业人像摄影中,人物的美姿造型应根据以下几个方面来...
软件测试规范 目 录 一.概述 ...............................................................................................................................................................
即使构造方法什么都不做,它仍然很重要,因为它确保类有一个默认的构造方法。如果没有明确地定义任何构造方法,编译器会自动添加一个无参的默认构造方法。如果有其他构造方法存在,则需要显式定义一个无参构造方法,...
这个“google-collect工具的jar包”包含了Guava库的主要功能,适用于Android开发,能为Android应用提供丰富的数据结构、集合操作以及实用的工具类。 Guava库的核心特性包括但不限于以下几点: 1. **集合框架扩展**...
### 编写可维护的JavaScript ...通过阅读《Maintainable JavaScript》,开发者不仅能够了解如何写出优雅、易于维护的JavaScript代码,还能够在实践中不断提升自己的编程能力,这对于长期的职业发展来说是非常有益的。
遵循PEP 8能提高代码的可读性和一致性,但有些开发者可能因为忽视或不了解这个规范而写出不易理解的代码。 2. **过度使用全局变量**: 全局变量在整个程序范围内都可见,容易引发命名冲突和难以追踪的问题。良好的...