华硕公司面试题和笔试题汇总(8套试题)


下载地址:[ 下载地址1 ] 所需:¥10


华硕公司面试题和笔试题汇总(8套试题)

目录:
1. 华硕公司面试题汇总
2. 项目研发工程师面试问题(华硕)
3. 华硕JAVA招聘笔试题
4. 华硕笔记本电脑结构设计面试题?
5. 华硕笔试题(最新综合能力测试真题)
6. 华硕电脑维修工程师面试笔试题及参考答案(二)
7. 华硕电脑维修工程师面试笔试题及参考答案(三)
8. 华硕客服部英语翻译招聘面试题

部份内容:
华硕JAVA招聘笔试题
1. 下列数组初始化正确的是:
A int[5] a= {1,2,3,4,5};
B int[2][2] a = {{1,2},{3,4}};
C int[][] a = {{2,3,4,5},new int[3]};
D int[][] a = new int[][5];

2. 关于下述程序:
public class Divide
{
public static void main(String args[])
{
System.out.println(""17.0/0 = ""+17.0/0);
System.out.println(""17/0 = ""+17/0);
}
}
描述正确的是?
A. 编译出错
B. 编译通过,运行时//1、//2处均出现异常
C. 编译通过,运行时//1处得到一个无穷大值,//2处将出现异常
D. 编译通过,运行时//1处出现异常,//2处将得到一个无穷大值

3. 关于下面的类描述中正确的是:
class Test {
void test(int i) {
System.out.println(""I am an int."");
}
void test(String s) {
System.out.println(""I am a string."");
}
public static void main(String args[]) {
Test t=new Test();
char ch='y';
t.test(ch);
}
}

A. 编译出错
B. 编译通过,运行出错
C. 编译通过,运行时输出“I am an int”
D. 编译通过,运行时输出“I am a string”

4. 当编译和运行下列程序段时,会发生什么?
  class Base {}
  class Sub extends Base {}
  class Sub2 extends Base {}
  public class CEx{
   public static void main(String argv[]){
   Base b = new Base();
   Sub s = (Sub) b;
   }
  }
A 通过编译和并正常运行。 B 编译时出现错误。
C 编译通过,运行时出现异常。 D 以上都错

5. 下面哪些是java语言中的关键字?

A sizeof
B abstract
C NULL
D Native

6. class ExSuper{
   String name;
   String nick_name;
   public ExSuper(String s,String t){
    name = s;
    nick_name = t;
   }
    public String toString(){
     return name;
    }
   }
   public class Example extends ExSuper{
    public Example(String s,String t){
    super(s,t);
    }
    public String toString(){
     return name +""a.k.a""+nick_name;
    }
    public static void main(String args[]){
     ExSuper a = new ExSuper(""First"",""1st"");
     ExSuper b = new Example(""Second"",""2nd"");
     System.out.println(""a is""+a.toString());
     System.out.println(""b is""+b.toString());
    }
  }
运行结果是
A 编译时会出现例外。
B 运行结果为:
        a is First
        b is second
C 运行结果为:
        a is First
        b is Secong a.k.a 2nd
D 运行结果为:
        a is First a.k.a 1nd
        b is Second a.k.a 2nd

7. public class Foo{
   public static void main(String[] args){
    try{
      return;}
      finally{System.out.println(""Finally"");
     }
   }
  }
结果是:
A 程序正常运行,但不输出任何结果。
B 程序正常运行,并输出 ""Finally""。
C 编译能通过,但运行时会出现一个例外。
D 因为没有catch语句块,所以不能通过编译。

8. package语句正确的是

A 必须在程序开头
B 不一定在程序开头
C 可以在import之后
D 包名可以以数字开头

9. java中,关于char类型错误的是
A 占2字节
B 可以存储一个英文字母
C 不能存储一个汉字
D 其对应的封装类是Character

10. 关于内部类错误的是:
A 静态内部类可以访问其外部类的非静态属性
B 非静态内部类可以访问其外部类的静态属性
C 内部类可以是protected
D 内部类可以是final的

11. Vector 与 ArrayList正确的是:
A ArrayList 出现比Vector早
B ArrayList 速度比Vector慢
C ArrayList 没有同步保护,Vector具有同步保护
D ArrayList Vector 两者都是无序的集合"

12. Which of the following lines of code will compile without error?
A.
int i=0;
if (i) {
System.out.println(“Hi”);
}
B.
boolean b=true;
boolean b2=true;
if(b=b2) {
System.out.println(“So true”);
}
C.
int i=1;
int j=2;
if(i==1! j==2)
System.out.println(“OK”);
D.
int i=1;
int j=2;
if (i==1 &| j==2)
System.out.println(“OK”); "

13. 下列程序
class A
{
public static void main(String[] args)
{
B b = new B();
b.run();
for (int i=0;i<30;i++)
{
System.out.println(""good"");
}
}
}

class B extends Thread
{
public void run()
{
for (int i=0;i<30;i++)
{
System.out.println(""hello"");
}
}
};

A 编译错误
B 编译正确,执行时good hello交替输出
C 编译正确,执行时先输出30个hello再输出30个good
D 编译正确,程序运行时出现异常

14. FileInputStream和FileOutputStream错误的是
A 是字节流
B 是节点流
C 用其拷贝文件时,不能拷贝中文
D 可以拷贝任何文本文件和2进制文件。

15. 一个类中那些内容可以在序列化时写入文件或发送到网络上
A transient 修饰的属性
B 静态属性
C 方法
D 类名

16. What happens when you try to compile and run the following application? Choose all correct options.
public class Z {
public static void main(String[] args) {
new Z();
}

Z() {
Z alias1 = this;
Z alias2 = this;
synchronized(alias1) {
try {
alias2.wait();
System.out.println(“DONE WAITING”);
}
catch (InterruptedException e) {
System.out.println(“INTERRUPTED”);
}
catch (Exception e) {
System.out.println(“OTHER EXCEPTION”);
}
finally {
System.out.println
(“FINALLY”);
}
}
System.out.println(“ALL DONE”);
}
}
A. The application compiles but doesn’t print anything.
B. The application compiles and print “DONE WAITING”
C. The application compiles and print “FINALLY”
D. The application compiles and print “ALL DONE”
E. The application compiles and print “INTERRUPTED”

17. 下列关于关系数据库的说法正确的是:
A 贮存在列下的数据不必具有相同数据类型。
B 行是唯一的(没有完全相同的行)。
C 列有顺序。
D 行有顺序。

18. 以下sql语句正确的是:
A select studentid,depart,count(*) from student group by depart;
B select studentid,count(*) from student;
C select depart,max(avg(age)) from student group by depart;
D select studentid,avg(score),max(score) from score group by studentid

19. 在JSP中使用标记时,不会出现的属性是:
A. name
B. property
C. value
D.以上皆不会出现

20. 对于JavaBean的属性,下面哪种说法是不正确的:
A JavaBean中不一定要有属性
B JavaBean类可以不是public的
C 要访问和修改JavaBean的属性,应该通过get/set方法
D 如果一个属性只提供了get方法,那么它是只读的

21. Page指令用于定义JSP文件中的全局属性,下列关于该指令用法的描述不正确的是:
A <%@ page %>作用于整个JSP页面。
B 可以在一个页面中使用多个<%@ page %>指令。
C 为增强程序的可读性,建议将<%@ page %>指令放在JSP文件的开头,但不是必须的。
D <%@ page %>指令中的所有属性只能出现一次。

22. 要让不同用户共享一个JavaBean的对象则该对象的范围应该设置为:
A session
B page
C application
D request

23. 以下那种请求表明客户端只想接收到响应的头信息,并决定了接收文挡的大小,修改时间。
A PUT
B GET
C TRACE
D HEAD

24. 关于自定义标签的使用不正确的是:
A 必须在JSP页面中使用<@taglib>
B 必须经过web.xml映射
C 必须存在tld文件
D 自定义标签的类必须是public的

25. 下列,那几句话会造成空指针异常(NullPointerException)
String s = null;
1. if((s!=null) & (s.length()>0))
2. if((s!=null) &&(s.length()>0))
3. if((s==null) | (s.length()==0))
4. if((s==null) || (s.length()==0))

A 1
B 2
C 1 和 3
D 2 和 4

26. struts框架中,关于FormBean,下列说法正确的是:
A FormBean是一种数据bean,主要用来封装表单提交上来的数据,并把这些数据传递给Action
B 在FormBean中可以对页面上传递来的参数进行一下格式上的验证,这种验证是一种客户端的验证
C 用户每次提交表单,都会产生一个新的FormBean实例
D 动态FormBean不能进行验证操作

27. struts框架,那些说法正确?
A Struts中无法完成上传功能
B Struts框架基于MVC模式
C Struts框架容易引起流程复杂、结构不清晰等问题
D Struts可以有效地降低项目的类文件数目

28. Linux 系统root密码忘记,用什么办法可以最方便的修改密码?
A 用其他用户登陆,破解/etc/password文件
B 将硬盘挂载到其他linux系统上进行恢复
C 进入单用户模式进行修改
D 清除lilo或者grub

29. 关于MIDP正确的是:
A 所有的J2ME程序都必定会使用MIDP
B MIDP也是一种Configuration(配置)
C MIDP是全称是MIDlet Programming
D MIDP是建立在CLDC上的一种Profile

30. 关于XML和HTML语言的错误的是:
A HTML语言不具有扩展性,XML语言具有很好的扩展性
B HTML侧重结构话的描述内容,XML侧重表现信息的形式
C HTML内容与显示为一体,XML则内容与显示相分离
D HTML语言出现比XML语言早

31. 关于DOM和SAX错误的是
A 利用DOM解析xml时,整个文档驻留内存,文档很大时需要大量内存
B SAX速度快,但编程比较难,仅能够串行解析xml
C SAX的速度不如DOM快
D SAX分析器缺乏灵活性。

32. 关于RMI错误的是
A RMI中不能直接对对象实现实施远程调用,只能对对象的接口操作
B RMI底层通过存根stub和框架skeleton实现
C RMI中方法调用参数传递为值传递,传递参数必须可以序列化
D RMI的服务器与客户机中内存地址完全互相映射,保证两边同步

33. 关于有状态会话Bean错误的是:
A 在客户端程序引用期间维护Bean中所有实例数据的状态值
B 多个客户不会同时共享同一个有状态SessionBean实例
C 钝化过程就是容器调用ejbremove删除多余EJB实例的过程
D 有状态会话Bean的生命状态包括不存在,准备好和钝化

34. 关于实体Bean错误的是
A 可以分为容器管理持久性(CMP)和Bean管理持久性(BMP)
B CMP中变量和数据库中的字段对应关系由Bean类中的代码表示
C CMP中可以不用编写对数据库操作的代码,比较简单
D BMP中必须有开发者编写数据库操作代码

35. 关于BMP和CMP比较错误的是:
A BMP和CMP的声明周期管理机制是相同的,不同的是BMP的事务持久性管理机制交给Bean的开发者
B CMP编程方便但是降低了Bean的开发能力
C BMP比CMP灵活,常用来映射复杂的数据视图或者很难用CMP实现的复杂逻辑处理
D 在客户端的调用BMP和CMP的方法是不相同的

36. 面向对象语言的三个特征
A 封装
B 继承
C 抽象
D 多态

37. 指出下列程序的运行结果:
public class Example{
String str = new String(“good”);
char[] char = {‘a’,’b’,’c’};
public static void main(String[] args){
Example ex= new Example();
ex.change(ex.str,ex.ch);
System.out.print(ex.str=” and ”);
System.out.print(ex.ch);
}
public void change(String str,char ch[]){
str = “test ok”;
ch[0] = ‘g’;
}
}
A good and abc
B good and gbc
C test ok and abc
D test ok and gbc

38. 给出下面代码段
switch(m){
case 0: System.out.println(“case 0”);
case 1:System.out.println(“case 1”); break;
case 2:
default:System.out.println(“default”);
}
下面哪些值将引起“default”的输出
A 0
B 1
C 2
D 3

39. 关于session论述正确的有:
A 一个session可以对应数个用户
B 一个session只能对应一个用户
C 可以手动关闭一个session
D session 如果不手动关闭,会一直存在Server中

40. 哪个关键字可以对对象加互斥锁?
A transient
B synchronized
C serialize
D static

41. 已知表T1中有2行数据,T2中有3行数据,执行SQL语句
“select a.* from T1 a,T2 b”后,返回的行数为
A 2
B 3
C 5
D 6

42. 已知表T1含有字段ID,CourseID和Score,且数据为
ID CourseID Score
3 1 90
2 1 85
2 2 90
3 2 80
则语句”select id,sum(score) from T1 group by ID”执行结果为
A ID sum(score)
3 170
2 175
B ID sum(score)
2 175
3 170
C ID sum(score)
2 170
3 175
D ID sum(score)
3 175
2 170

43. 已知表tbl中字段land_ID建有索引,字段cust_id建有唯一索引,下列语句查询逻辑相同,其中执行效率最优的是
A select * from tbl where land_id>750 or (cust_id=180 or cust_id=560)
B select * from tbl where (cust_id=180 or cust_id=560) or land_id>750
C select * from tbl where land_id>750 union select * from tbl where cust_id=180 union select * from tbl where cust_id = 560
D select * from tbl where land_id>750 union (select * from tbl where cust_id=180 union all select * from tbl where cust_id=560)

44. 已知表tbl中字段land_ID建有索引,字段cust_id建有唯一索引,下列语句查询逻辑相同,其中执行效率最优的是
A select * from tbl where land_id>750 or (cust_id=180 or cust_id=560)
B select * from tbl where (cust_id=180 or cust_id=560) or land_id>750
C select * from tbl where land_id>750 union select * from tbl where cust_id=180 union select * from tbl where cust_id = 560
D select * from tbl where land_id>750 union (select * from tbl where cust_id=180 union all select * from tbl where cust_id=560)

45. 存在两个结构相同的数据库表T1(col1,col2,col3)、T2(col1,col2,col3),写出一SQL语句将所有T1数据导入到T2表
A select col1,col2,col3 from T1 into T2(col1,col2,col3)
B insert T1 (col1,col,col3) into T2(col1,col2,col3)
C insert into T2 (col1,col2,col3) as select col1,col2,col3 from T1
D insert into T2(col1,col2,col3) select col1,col2,col3 from T1;

46. 用truncate和delete语句删除表中数据的区别
A truncate 命令不记录日志
B truncate 命令记录日志
C delete命令不记录日志

47. 如下语句:select i.id_number, m.id_number from inventory i, manufacturer m where i.manufacturer_id = m.id_number order by inventory.description
执行是错误的,请问以下措施哪个能够改正这个错误?
A 在order by字句中使用表的别名
B where 字句中去掉表的别名
C where字句中用表名代替表的别名
D order by字句中去掉表名,只要字段名称即可

48. 变量v_time=’23-MAY-00’, 如下那条语句返回值为’01-JAN-00’?
A select round(v_time,’DAY’) from dual
B select round(v_time,’YEAR’) from dual
C select round(v_time,’MONTH’) from dual
D A select round(to_char(v_time,’yyyy’)) from dual

49. 指出下面sql语句错误之处
select id_number “Part Number”, sum(price) “price” from inventory where price >50 group by “Part Number” order by 2;
A order by 2
B from inventory
C where price>50
D group by “Part Number”

50. 如下语句:
begin
for i in 1..8 loop
if i=2 then
null;
else
if i=5 then
rollback;
else
if i=8 then
commit;
else
insert into texample values(i);
end if;
end if;
end if;end loop;
commit;
end;
执行该语句后将有几条记录插入到表texample表中
A 1 B 2 C 3 D 4



、、、、、、


下载地址:[ 下载地址1 ] 所需:¥10

最近更新

热门点击

  • 发表评论
验证码:
匿名发表