The most complete selection of Java written test questions-a total of 234 "181~234"

Source: Internet
Author: User
Tags html tags session id rowcount xsl

181. The following are not directly using XML technology ()

A. UDDI

B. SOAP

C. AJAX

D.dcom

Answer: D

DCOM (Distributed Component Object model, Distributed Component Object mode) is a series of Microsoft's concepts and program interfaces, which allow client program objects to request server program objects from another computer on the network. DCOM is based on the Component Object Model (COM), which provides a set of interfaces that allow communication between clients and servers on the same computer (running on Windows95 or later).

182. The following can be used to parse the XML ()

A.css

B.dtd

C.sax

D.xsl

Answer: C

Java parsing XML file Four ways: SAX DOM JDOM dom4j

183. The following is not true of the XML description ()

A.xml tag must be closed

B.xml is case sensitive.

C.xml files can only be used with DTD files

The combination of D.xml and XSL can be displayed on the browser

Answer: C

184. What kinds of HTML tags can be entered manually without specifying special attributes: ()

A. <TEXTAREA></TEXTAREA>

B. <input type= "text"/>

C. <input type= "hidden"/>

D. <DIV></DIV>

Answer: AB

185. The correct description of the IFRAME is: ()

A. Through an IFRAME, a Web page can embed other Web content and can dynamically change

B. Under the same domain name, the embedded IFRAME can get the object of the outer page

C. Under the same domain name, the outer page script can get objects within the IFRAME Web page

D. The size of the IFRAME can be adjusted by script

Answer: CD

The IFRAME element is the document in the document, or it looks like a floating frame (frame).

Through the object model of the page on which the IFrame object resides, you can access the properties of the IFrame object, but not its contents.

186. The correct presentation of the table is: ()

A. The table can contain TBODY elements

B. The table can contain caption elements

C. Tables can contain multiple tbody elements

D. The table can contain colgroup elements

E. The table can contain COL elements

Answer

186. The correct presentation of the table is: ()

A. The table can contain TBODY elements

B. The table can contain caption elements

C. Tables can contain multiple tbody elements

D. The table can contain colgroup elements

E. The table can contain COL elements

Answer: ACDE

The caption label is used to define a table title. The <caption> tag can only appear in the table label and must follow the table label. You can define only one title per table.

Using the <tbody> tab, you can divide the table into a separate section. <tbody> tags combine one or more rows in a table into a group.

With <colgroup> tags you can divide a table into groups by columns, each group can contain one or several columns, and then you can format each group individually.

Usually the columns of a column group are the same, and if the columns and columns are different, you can set them by adding <col> tags within the group. <col> tags can only be used in <table> tags and <colgroup> tags.

187. The techniques for processing the individual elements of the entire document as objects in DHTML are: ()

A.html

B.css

C.dom

D.script (scripting language)

Answer: C

DOM: Document Object Model

188. The following JavaScript objects are: ()

A. Window

B. Document

C. Form

D. String

E. Navigator

Answer: ACE

What is the entry point for the 189.Servlet program? ( )

A.init ()

B, Main ()

C, Service ()

D, Doget ()

Answer: C

19. How can I share data between different users? ( )

A. Through cookies

B. Using the file system

C. Using the database

D. Through the ServletContext object

Answer: A

191. The higher the cohesion of the module, the greater the degree of the integration of the components within the module a loose B tight C can not judge D the same

Answer: B

Cohesion is the coupling strength between the components within the module. The higher the cohesion, the easier it is to understand, modify and maintain. But the cohesion itself is a subjective, non-formal concept, the programmer is difficult to objectively evaluate the cohesion of a module. For this reason, many metrics have been developed to quantify the cohesion of the module [ Provides guidelines for programming designers to develop high-cohesion modules. 192 (radio) The output of the software requirements analysis phase is mainly a. Requirements Specification B. Development plan C. Feasibility report D. Design manual

Answer: A 193. (radio) is not the responsibility of the project manager in the following options? A. Demand Analysis B. Plan c. Plan tracking D. Quality management solution: D

Quality management is the responsibility of SQA (software quality assurance) Personnel 194. (Multi-Select) What are the functions that configuration management can do? A. Version Management

B. Change management C. Requirements Management D. Test management

Answer: AB

195. Which of the following methods saves the session ID in the URL of the response output stream in the servlet. ( )

A.The Encodeurl method of the HttpServletRequest interface.

B. The Encodeurl method of the HttpServletResponse interface.

C.the Rewriteurl method of the HttpServletRequest interface.

D. The Rewriteurl method of the HttpServletResponse interface.

Answer: B

196. Look at the following class

public class Ifattributschanged implements servletcontextattributelistener{

public void attributeadded (Servletcontextattributeevent scab) {

System.out.println ("Add an attribute");

}

public void attributeremoved (Servletcontextattributeevent scab) {

System.out.println ("delete an attribute");

}

}

Which of the following is true of the narrative of the Ifattributschanged class? (select 1 items)

A. This class can be successfully compiled

B This class cannot compile successfully because the attributechanged () method is missing.

C. This class cannot compile successfully because the attributereplaced () method is missing.

D. This class could not compile successfully because the attributeupdated () method is missing.

Answer: C

197.Oracle database table space is the user's relationship ()?

A. One-to-one

B. One-to-many

C. Many-to-one

D. Many-to-many

Answer: D

One user can use one or more table spaces, and a table space can be used by multiple users.

198.Oracle database table space and data file relationship description correct is ()

A. One table space can only correspond to one data file

B. A table space can correspond to multiple data files

C. One data file can correspond to multiple table spaces

D. Tablespace does not have any correspondence with data files

Answer: B

Table spaces and data files are related, data files are physical, and a table space can contain multiple data files.

And a data file can only belong to one table space

199. Judge this PL/SQL code block: (select 1 items)

BEGIN

For I in 1..6 LOOP

IF i = 2 OR i = 3 then null;

ELSE

INSERT into Example (one) VALUES (i);

END IF;

ROLLBACK;

END LOOP;

COMMIT;

END;

How many rows are inserted into table EXAMPLE?

A

B, 1

C, 2

D, 3

Answer: A

The rollback statement is executed before the end of the loop, and the data is rolled back.

2. What does it do to you to judge the following statement? (radio)

Grant update on inventory to Joe with GRANT OPTION;

A, a system permission is granted to the user Joe

B, an object permission is granted to the user Joe

C, User Joe is granted all permissions on this object

D, a system permission and an object permission are granted to the user Joe

Answer: B

With admin option can only be used when assigning to the System privilege with GRANT option only when given an object privilege

21. Table CLASSES and table SCHEDULE are structured as follows:

CLASSES:

ID Number (9)

Class_name VARCHAR2 (2)

TEACHER_ID Number (9)

SCHEDULE:

Class_time DATE

CLASS_ID Number (9)

You build a view that shows the class name, the class, and the teacher ID, and determines what results the following statement will return? (select 1 items)

CREATE VIEW Class_schedule as

SELECT C.class_name, s.class_time from classes C, schedule s WHERE c.id = s.class_id;

A. Statement creates A view Class_schedule and produces the expected results.

B. Statement creates a view class_schedule but does not produce the expected results.

C. Syntax error because the view is not based on a connection query.

D. Syntax error because the statement does not contain an ORDER by clause.

Answer: B

The above attempts to show the class name, class, but not by teacher ID

22.Oracle database, what is the way to concatenate strings in SQL statements? (select 1 items)

A, Cat

B, concat

C, join

D, +

Answer: B

23. Table TEACHER contains the following fields:

Column Name

Can be blank no?

Data type

teacher_id

Not NULL

Number (9)

NAME

VARCHAR2 (25)

SALARY

Number (7,2)

subject_id

Not NULL

Number (3)

Subject_description

VARCHAR2 (2)

You need to raise the salary of science teacher 8%, science teacher's subject_id is 11, which sentence do you want to achieve? (select 1 items)

A.update Teacher SET Salary = salary * 1.8 WHERE subject_description like

' Science '

B.update Teacher SET Salary = salary *. 8 WHERE subject_description like ' science ' and subject_id = 11

C.update Teacher SET Salary = salary * 1.8 WHERE subject_id = 11;

D.update Teacher SET Salary = salary + (Salary *. 8) WHERE subject_description like ' science ' OR subject_id = 11

Answer: C

24. Define the cursor as follows:

DECLARE

CURSOR Query_cursor (v_salary) is

SELECT last_name, salary, Dept_no

From employee

WHERE salary>v_salary;

Why is this statement wrong? (select 1 items)

A. A WHERE clause is not allowed in the cursor definition

B. Missing into clause in SELECT statement

C. Parameter not specified as variable data type

D. The syntax for defining the cursor is incorrectly written

Answer: C

25. In which part of the PL/SQL block can I assign a new value to the initial variable? (select 1 items)

A. End-of-section

B. Opening section

C. Executive Section

D. Declarations section

Answer: C

26. Which sentence can realize the display ID and description, the condition satisfies the order time in January 1, 1997 before, and the unit price is less than 1. or greater than 5. , and the results are sorted in descending order time. (select 1 items)

A.select Id_number, description from inventory

WHERE Price in (1., 5.) OR Order_date < ' 1-jan-97′

ORDER by Order_date DESC;

B.select Id_number, description from inventory

WHERE price between 1. and 5. OR Order_date < ' 1-jan-1997′

ORDER by Order_date;

C.select Id_number, description from inventory

WHERE Price < 1. OR price > 5. and Order_date < ' 1-jan-97′

ORDER by Order_date ASC;

D.select Id_number, description from inventory

WHERE (Price <1. OR price > 5.) and Order_date < ' 1-jan-1997′

ORDER by Order_date DESC;

https://my.oschina.net/u/3881961/blog/1827121
https://my.oschina.net/u/3881961/blog/1827118
https://my.oschina.net/u/3881961/blog/1827110
https://my.oschina.net/u/3881961/blog/1827107

Answer: D

27. What value will be returned when judging the following sentence? (select 1 items)

SELECT id_number, description, price from inventory

where manufacturer_id in (SELECT manufacturer_id from inventory WHERE price > 8. or quantity > 1);

A returns the unit price greater than 8 and the quantity greater than 1 of the stock's item number, type, unit price information

b returns the unit price greater than 8, or the quantity greater than 1 in the inventory of the item number, type, unit price information.

C Return the unit price is greater than 8. Or the quantity is greater than 1 and has the manufacturer number of the stock, the item number, type, unit price information.

D returns the item number, type, and unit price information for the manufacturer with a unit price greater than 8 or a quantity greater than 1.

Answer: C

28. Consider the following statements, which are unlawful: (select 3)

A. DECLARE v_name, V_dept VARCHAR2 (14);

B. DECLARE v_test Number (5);

C. DECLARE v_maxsalary Number (7, 2) = 5;

D. DECLARE v_joindate BOOLEAN: = sysdate;

Solution: ACD

A V_name No data type

C.:= is a value assignment

D V_joindate is a Boolean type, Sysdate is a date type

29. About the executive section of the PL/SQL block the following statement is correct? (select 1 items)

A A PL/SQL expression can contain grouping functions.

B. PL/SQL expressions may not contain the functions of an.

C. Partial grouping functions are available in SQL statements.

D. None of the above is correct

Answer a

21. The table (TEACHER) contains the following:

ID Number (7) PK

SALARY Number (7,2)

SUBJECT_ID Number (7)

Determine the following two SQL statements:

(1) SELECT ROUND (SUM (Salary), -2) from teacher;

(2) SELECT subject_id, ROUND (SUM (Salary), -2) from teacher GROUP by subject_id;

What are the different results? (select 1 items)

A. Statement 1 will return each teacher a result

B. Statement 2 will return multiple results

C. Same results, showing different

D. There will be a sentence that produces an error

Answer: B

Statement 1 Returns a result, that is, the wages of all teachers and, using the rounding function

Statement 2 is grouped according to subject_id, so there are several results in several groups

211. Which property of the cursor indicates whether the FETCH statement returns rows from the active set, such as a row is not returned, the value of this property is

True? (select 1 items)

A.%found

B.%notfound

C.%rowcount

D.%isopen

Answer: B

%found Boolean property, True if the record was last read successfully;

%notfound boolean attribute, opposite to%found;

%isopen Boolean property that returns TRUE when the cursor is open;

%rowcount Numeric property, returns the number of records that have been read from the cursor

212. Which clause implements the SELECT statement to query the department information of the employee's average salary less than 5? (select 1 items)

A GROUP by dept_id WHERE AVG (SAL) < 5

B.group by AVG (SAL) has avg (SAL) < 5

C GROUP by dept_id have AVG (SAL) < 5

D GROUP by AVG (SAL) < 5

Answer: C

Use having to filter the groupings.

213. What kinds of statements are used in PL/SQL to assign values to variables? (select 3 items)

A: =

B SELECT into

C FETCH into

D =

Solution: ABC

214. You try to query the data using the following sentence: (Choose 1 items)

SELECT 1/NVL (quantity,) from inventory;

The most complete selection of Java written test questions-a total of 234 "181~234"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.