Database Practice of the Day (2017/8/1)

Title of this issue.

(Multiple Choice) 1. The operation that cannot be done on a view is ()?

A Update view

B Enquiry

C Define a new table on the view

D Define a new view on the view

(Multiple Choice) 2. According to the traditional data model classification, database systems can be classified into three types ().

A Large, medium and small

B Western, Chinese and compatible

C Hierarchy, webs and relationships

D Data, graphics and multimedia

(Multiple Choice) 3. In the SELECT statement of SQL language, which clause () implements the sort operation.





(Multiple Choice) 4. DBMS provides DML to implement operations on data. A DML that can be used interactively on its own is called ().

A Host type

B Independent

C Self-contained

D Embedded

(Multiple Choice) 5. The main functions of JDBC are? 1/1

A Creating a connection to the database

B Send SQL statements to the database

C Processing data and querying results

D All of the above

(Multiple choice) 6. table toutiao_tb

title data auther type

abc 2016.2.23 bob 1

bcv 2016.3.3 http 1

cvt 2016.3.3 http 1

bcvvcm 2016.3.5 js 2

nmhh 2016.2.3 html 2

hhj 2016.3.3 java 3

rrr 2016.3.2 cc 1

Query for records whose title contains cv and whose type is 1

A select * from toutiao_tb where title = 'cv' and type='1'

B select * from toutiao_tb where title like '%cv%' andtype=1

C select * from toutiao_tb where title like '*cv' andtype=1

D select * from toutiao_tb where title ='*cv*' and type='1‘

Whether you will or not! I all hope that you will actively [leave a comment] participate in the answer! Only then can the editors go out with questions based on what people are learning! Let's all strive for maximum progress! (Forward to a friend around you who needs it! )

Previous answer.

(Multiple Choice) 1. There is a method run() inside the class Car. If you use directly, the keyword that must be used before the method run is? ( )

A class

B final

C public

D static

The correct answer is:D

Ans: The method modified by static can be called directly by using the class name and method name...

(Multiple Choice) 2. When declaring an interface using interface, only () modifier can be used to modify the interface

A private

B protected

C private protected

D public

The correct answer is: D

Ans: The interface must be inherited, so it has to be public

(Multiple Choice) 3. The character code set used by the java language is




D Unicode

The correct answer is: D

Ans: The Java language uses the Unicode character set, ASCII is the most widely used character encoding internationally

(Indefinite choice) 4、Which of the following options is a legal method definition in interface? ()

A public void main(String [] args);

B private int getSum();

C boolean setFlag(Boolean [] test);

D public float get(int x);

The correct answer is: ACD

Ans: The entry point of a java program must be of static type and methods of static type are not allowed in the interface. A does not have the static modifier and can be used as a normal method. And the methods in the interface must be public. Consider that excuses are meant to be implemented by others and are equivalent to standards, and it is unreasonable for standards not to allow others to use them, so the methods in the interface must be public. In item C, the methods in the interface are public by default. D is the normal method. So the answer is: ACD

(Multiple Choice) 5. Java programs that use the assignment operator for object assignment can get two identical objects.

A Correct

B Wrong

The correct answer is:A

Ans: When an object is assigned, for example, A=B, it just points the address of the A object to the address of the B object, so there is actually only one object

(Indefinite Choice) 6. cannot be used to modify interface are ()1/1

A private

B public

C protected

D static

The correct answer is: : ACD


A,C,D can't be used to modify interface.

In terms of access, you can use the public,default modifier, but not private, because the interface itself is meant to be used by other classes or interfaces, and using private would be pointless.

protected is also not allowed, ptotected access is the package object as well as outside the package inheritance of the class outside the package object, in fact, and public meaning will be the same, there is no need to choose protected.

The static is used to modify variables or methods, not classes. (In an interface, static can only modify variables, not methods)

(final also does not modify interfaces)

1、Spanish government agency and Huawei jointly host cybersecurity challenge
2、Hot programming topic this year which is better to choose to learn programming language Python or Java
3、Its amazing how fast autonomous driving is evolving Ford officially launches CoPilot360 intelligent driving assistance system
4、Penalties are busy on day three of the World Cup Messi loses to big numbers
5、The Chinese New Year ticketing ruse is deep 12306 sells tickets and has to look at your phone album

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送