论坛首页 招聘求职论坛

技术、英语好的不好的都来做做这套题,得来不易,写下你的答案。

浏览 5761 次
精华帖 (0) :: 良好帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2009-06-26   最后修改:2009-06-26
给个机会,考考自己,看看基础扎不扎实。有些题目有多个答案。

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

  • 大小: 13.7 KB
  • 大小: 8.7 KB
   发表时间:2009-06-26  
这题有什么特别吗?
0 请登录后投票
   发表时间:2009-06-26  
在哪搞的啊,可以说下吗?公司名!
0 请登录后投票
   发表时间:2009-06-26  
tobackfurture 写道
在哪搞的啊,可以说下吗?公司名!


Finalist IT Group (Netherlands)
0 请登录后投票
   发表时间:2009-06-26  
有答案对对么
0 请登录后投票
   发表时间:2009-06-27  
看起來都是基礎題目呀?
0 请登录后投票
   发表时间:2009-06-27   最后修改:2009-06-27

都不贴答案,俺来一个(未google,一次完成)

感觉惨不忍睹啊,大家扔砖吧.

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 insensiti
ve.
•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

 

0 请登录后投票
论坛首页 招聘求职版

跳转论坛:
Global site tag (gtag.js) - Google Analytics