对
错
第1题:
字符串分为两大类,一类是字符串常量,使用【 】类的对象表示;另一类是字符串变量,使用StringBuffer类的对象表示。
第2题:
删除学生表的候选索引XUESH INDEX,该语句格式为:
ALTER TABLE 学生表______ TAG XUESH_INDEX
第3题:
A.create index语句表示建立索引
B.drop index语句表示删除索引
C.一个基本表上可以建立多个聚簇索引
D.索引删除后,DBMS会从数据字典中删去有关该索引的描述
第4题:
A.char charAt(int index)
B.int indexOf(int ch)
C.int lastIndexOf(int ch)
D.boolean endsWith(String suffix)
第5题:
SQL中DROP INDEX语句的作用是( )。
A.建立索引
B.修改索引
C.删除索引
D.更新索引
第6题:
请完成Java程序:本题是一个冒泡排序程序的实例。冒泡排序的含义是将相邻的两个数作比较,如果是升序排列的话,如果前边的数大,则将两个数交换。从第一个数开始两两比较一次,就可以将最大的数移动到最后。
注意:请勿修改main()主方法和其他已有语句内容,仅在横线处填入适当语句。
import java.io.*;
public class simple
{
public static int[]Data=new int[10];
public static void main(String[] args)
int i;
int Index;
Index=0;
InputStreamReader ir;
BufferedReader in;
ir=new InputStreamReader(System.in);
in=new BufferedReader(ir);
try
{
do
{
System.out.println("Please input the number"+
Index+"you want to sort(Exit for 0):");
String s=in.readLine();
Data[Index]=Integer.parseInt(s);
Index++;
}
while(Data[Index-1]!=0);
}
catch(IOException e)
{
System.out.println(e.getMessage());
}
System.out.print("Before bubble sorting:");
for(i=0; i<Index-1; i++)
System.out.print(" "+Data[i]+" ");
System.out.println(" ");
BubbleSort(Index-1);
System.out.print("After Bubble Sorting:");
for(i=0; i<Index-1;i++)
System.out.print(" "+Data[i]+" ");
System.out.println(" ");
}
public static void BubbleSort(int Index)
{
int i, j, k;
boolean Change;
int Temp;
for(j=Index; j>1;j--)
{
Change=false;
for(i=0; i<j-1;i++)
{
if(Data[i+1]<Data[i])
{
Temp=Data[i+1];
Data[i+1]=Data[i];
______;
______;
}
}
if(Change)
{
System.out.print("Current Sorting Result:");
for(k=0; k<Index; k++)
System.out.print(" "+Data[k]+" ");
System.out.println(" ");
}
}
}
}
第7题:
SQL中的DROP,INDEX语句的作用是
A.删除索引
B.建立索引
C.更新索引
D.修改索引
第8题:
SQL的DROP INDEX 语句的作用是( )。
A.删除索引
B.建立索引
C.修改索引
D.更新索引
第9题:
删除索引的T-SQL语句是()。
A.drop index
B.create index
C.sp_help index
D.update index
第10题:
请用CREATE INDEX语句在数据库db_test的表content中,根据留言标题列的前三个字符采用默认的索引类型刨建一个升序索引index_subject。