精创信息JSP考试(基础)a


    精创信息Java考试(基础)
    单选题:
    1 Class Teacher and Student are subclass of class Person         
       Person p
       Teacher t
       Student s
       p t and s are all nonnull
       if(t instanceof Person) { s (Student)t }
       What is the result of this sentence
       A It will construct a Student object
       B The expression is legal
       C It is illegal at compilation
       D It is legal at compilation but possible illegal at runtime   

    2 Given the following code         
       public class Person{
       int arr[] new int[10]
       public static void main(String a[]) {
       Systemoutprintln(arr[1])
       }
       }
       Which statement is correct
       A When compilation some error will occur
       B It is correct when compilation but will cause error when running
       C The output is zero
       D The output is null
      
    3 Given the following code fragment         
       1) String str null
       2) if ((str null) && (strlength() > 10)) {
       3) Systemoutprintln(more than 10)
       4) }
       5) else if ((str null) & (strlength() < 5)) {
       6) Systemoutprintln(less than 5)
       7) }
       8) else { Systemoutprintln(end) }
       Which line will cause error
       A line 1
       B line 2
       C line 5
       D line 8

    4 Given the following code         
       public class Test {
       void printValue(int m){
       do { Systemoutprintln(The value is+m)
       }
       while( m > 10 )
       }
       public static void main(String arg[]) {
       int i10
       Test t new Test()
       tprintValue(i)
       }
       }
       Which will be output
       A The value is 8
       B The value is 9
       C The value is 10
       D The value is 11

    5 Which statements about the garbage collection are true         
       A The program developer must create a thread to be responsible for free the memory
       B The garbage collection will check for and free memory no longer needed
       C The garbage collection allow the program developer to explicity and immediately free the memory
       D The garbage collection can free the memory used java object at expect time
      
    6 Which statement of assigning a long type variable to a hexadecimal value is correct         
       A long number 345L
       B long number 0345
       C long number 0345L
       D long number 0x345L

    7 Which of the following answer is correct to express the value 8 in octal number         
       A 010
       B 0x10
       C 08
       D 0x8
      
    8   1) class Person {
       2) public void printValue(int i int j) {*…* }
       3) public void printValue(int i){** }
       4) }
       5) public class Teacher extends Person {
       6) public void printValue() {** }
       7) public void printValue(int i) {**}
       8) public static void main(String args[]){
       9) Person t new Teacher()
       10) tprintValue(10)
       11) }
       12) }

       Which method will the statement on line 10 call         
       A on line 2
       B on line 3
       C on line 6
       D on line 7
     
    9 Which keyword should be used to enable interaction with the lock of an object The flag allows exclusive access to that object         
       A transient
       B synchronized
       C serialize
       D static
      
    10 Which is the return type of the method main()        
       A int
       B void
       C boolean
       D static
      
    11 Given the following code         
       if (x>0) { Systemoutprintln(first) }
       else if (x>3) { Systemoutprintln(second) }
       else { Systemoutprintln(third) }
       Which range of x value would print the string second
       A x > 0
       B x > 3
       C x < 3
       D x < 0 & x > 3

    12 A member variable defined in a class can be accessed only by the classes in the same package Which modifier should be used to obtain the access control         
       A private
       B no modifier
       C public
       D protected

    13 A class design requires that a member variable cannot be accessible directly outside the class Which modifier should be used to obtain the access control         
       A public
       B no modifier
       C protected
       D private

    14 Given the following code         
       class Person {
       String namedepartment
       public void printValue(){
       Systemoutprintln(name is +name)
       Systemoutprintln(department is +department)
       }
       }
       public class Teacher extends Person {
       int salary
       public void printValue(){
       doing the same as in the parent method printValue()
       including print the value of name and department
       Systemoutprintln(salary is +salary)
       }
       }
       Which expression can be added at the doing the same as part of the method printValue()
       A printValue()
       B thisprintValue()
       C personprintValue()
       D superprintValue()

    二选
    1 Given the following expression about List         
       List l new List(6true)
       Which statements are ture
       A The visible rows of the list is 6 unless otherwise constrained
       B The maximum number of characters in a line will be 6
       C The list allows users to make multiple selections
       D The list can be selected only one item

    2 public class Parent {
       public int addValue( int a int b) {
       int s
       s a+b
       return s
       }
       }
       class Child extends Parent {
       }
       Which methods can be added into class Child         
       A int addValue( int a int b ){ do something}
       B public void addValue (){ do something}
       C public int addValue( int a ){ do something}
       D public int addValue( int a int b )throws MyException {do something}

    3 Which of the following statements about variables and scope are true         
       A Local variables defined inside a method are destroyed when the method is exited
       B Local variables are also called automatic variables
       C Variables defined outside a method are created when the object is constructed
       D A method parameter variable continues to exist for as long as the object is needed in which the method is defined

    4 Which of the following statements about declaration are true         
       A Declaration of primitive types such as boolean byte and so on does not allocate memory space for the variable
       B Declaration of primitive types such as boolean byte and so on allocates memory space for the variable
       C Declaration of nonprimitive types such as String Vector and so on does not allocate memory space for the object
       D Declaration of nonprimitive types such as String Vector ans so on allocates memory space for the object

    5 Given the following code fragment
       1) public void create() {
       2) Vector myVect
       3) myVect new Vector()
       4) }

       Which of the following statements are true         
       A The declaration on line 2 does not allocate memory space for the variable myVect
       B The declaration on line 2 allocates memory space for a reference to a Vector object
       C The statement on line 2 creates an object of class Vector
       D The statement on line 3 creates an object of class Vector
       E The statement on line 3 allocates memory space for an object of class Vector

    6 Which declarations of identifiers are legal         
       A persons
       B TwoUsers
       C *point
       D this
       E _endline

    7 Which of the following fragments might cause errors         
       A String s Gone with the wind
       String t good
      String k s + t
       B String s Gone with the wind
       String t
       t s[3] + one
       C String s Gone with the wind
       String standard stoUpperCase()
       D String s home directory
       String t s directory

    8 Which are syntactically valid statement at point x         
       class Person {
       private int a
       public int change(int m){ return m }
       }

       public class Teacher extends Person {
       public int b
       public static void main(String arg[]){
       Person p new Person()
       Teacher t new Teacher()
       int i

       point x
       }
       }

       A i m
       B i b
       C i pa
       D i pchange(30)
       E i tb

    9 Which are not Java keywords         
       A TRUE
       B sizeof
       C const
       D super
       E void
     
    10 Which statements about inheritance are true         
       A In Java programming language only allows single inheritance
       B In Java programming language allows a class to implement only one interface
       C In Java programming language a class cannot extend a class and implement a interface together
       D In Java programming language single inheritance makes code more reliable
      
    11 Which are not Java primitive types         
       A short
       B Boolean
       C unit
       D float
      
    12 Use the operators << >> which statements are true         
       A 0000 0100 0000 0000 0000 0000 0000 0000<<5 gives
    1000 0000 0000 0000 0000 0000 0000 0000
       B 0000 0100 0000 0000 0000 0000 0000 0000<<5 gives
    1111 1100 0000 0000 0000 0000 0000 0000
       C 1100 0000 0000 0000 0000 0000 0000 0000>>5 gives
    1111 1110 0000 0000 0000 0000 0000 0000
       D 1100 0000 0000 0000 0000 0000 0000 0000>>5 gives
       0000 0110 0000 0000 0000 0000 0000 0000
      
    13 The variable result is boolean Which expressions are legal         
       A result true
       B if ( result ) { do something }
       C if ( result 0 ) { so something }
       D result 1


    14 Which of the following statements are legal         
       A long l 4990
       B int i 4L
       C float f 11
       D double d 344
       E double t 09F

    15 public void test() {
       try { oneMethod()
       Systemoutprintln(condition 1)
       } catch (ArrayIndexOutOfBoundsException e) {
       Systemoutprintln(condition 2)
       } catch(Exception e) {
       Systemoutprintln(condition 3)
       } finally {
       Systemoutprintln(finally)
       }
      }
       Which will display if oneMethod run normally         
       A condition 1
       B condition 2
       C condition 3
       D finally   

    16 String s hello
       String t hello
       char c[] {'h''e''l''l''o'}
       Which return true         
       A sequals(t)
       B tequals(c)
       C st
       D tequals(new String(hello))
       E tc

    三叙述题题5分总分20分
    1 Struts否Java种构造类型?请描述Java中作


    2 MVC英文全称什?请描述MVCjava开发带处


    3描述TomcatJBoss区


    4谈谈final finally finalize区




    5Anonymous Inner Class (匿名部类) 否extends(继承)类否implements(实现)interface(接口)



    6Static Nested Class Inner Class



    7Collection Collections区




    8什时候assert







    9String s new String(xyz)创建String Object


    10Mathround(115)等於少 Mathround(115)等於少


    11short s1 1 s1 s1 + 1什错 short s1 1 s1 + 1什错




    12sleep() wait() 什区





    13OverloadOverride区Overloaded方法否改变返回值类型





    14errorexception什区




    15List Set Map否继承Collection接口


    16abstract classinterface什区














    17abstractmethod否时static否时native否时synchronized


    18接口否继承接口 抽象类否实现(implements)接口 抽象类否继承实体类(concrete class)



    19线程进入象synchronized方法线程否进入象方法



    20象作参数传递方法方法改变象属性返回变化结果里底值传递引传递





    1 团队合作精神理解?


    2 做什项目?


    3 认开发软件专业知识需什?


    4 发展计划


    5请展软件技术未发展
    文档香网(httpswwwxiangdangnet)户传

    《香当网》用户分享的内容,不代表《香当网》观点或立场,请自行判断内容的真实性和可靠性!
    该内容是文档的文本内容,更好的格式请下载文档

    下载文档到电脑,查找使用更方便

    文档的实际排版效果,会与网站的显示效果略有不同!!

    需要 2 积分 [ 获取积分 ]

    下载文档

    相关文档

    JSP程序设计期末试卷A题目及其答案

     JSP程序设计期末考试试卷(A卷) 专业 级 JSP程序设计 课程 题号一二三四总分统分人得分 ...

    3年前   
    1991    0

    JSP实习报告

    JSP实习报告  jsp实习报告  实习内容:jsp  实习目的:通过jsp的学习,可以独立的编写留言板、上传规格、考试系统、连接sqlserver数据库、以及怎么样配置运行jsp服务器  实...

    9年前   
    448    0

    精创信息聚宝盆眼镜销售系统使用帮助——顾客信息

    顾客信息该模块是用来记录顾客的基本信息的。一、 添加顾客信息点击添加按钮,打开顾客-填写界面,在界面中可以分别填入顾客的编码、姓名、性别、地区、卡号、出生日期、身份证、电话、地址等信息。在备注...

    11年前   
    469    0

    基于JSP技术的物流系统的实现

    基于JSP技术的物流系统的实现Realization of logistics system based on JSP technology ...

    11个月前   
    241    0

    JSP技术外文文献

    外文文献JSP Technology and ServletsJSP profileJSP (JavaServer Pages) is initiated by Sun Microsystem...

    4年前   
    793    0

    基础信息采集单

    人员密集场所消防安全情况登记表编号:单位名称 学地 址校 号负 责 人 想电 话 68 建筑面积4266层数或所在层7工商登记情况文化许可情况企 业 □ 个体工商户 □ 未登记 □...

    7个月前   
    216    1

    金融信用信息基础数据库用户考试试卷

    金融信用信息基础数据库用户考试试卷(模拟卷) 一、单项选择题(每题2.00分) 1、商业银行未准确、完整、及时向金融信用信息基础数据库报送个人信用信息的,依据《个人信用信息基础数据库管理暂...

    11年前   
    10686    0

    中英西南基础项目教育管理信息系统的建设与创新

    中英西南基础项目教育管理信息系统的建设与创新   作为中英西南基础项目教育管理信息建设发展计划项目乡,2010年5月开始建设教育管理信息系统纸质工具,2010年9月开始建设教育管理信息系统...

    5年前   
    778    0

    对信息基础数据信息记录检查

      关于对信息中心第二版信息管理系统运行数据痕迹被覆盖的通报 信息中心: 信息系统管理应严格按照国家和省有关信息系统建设的标准规范业务系统和数据库建设,制定明确的信息系统管理制度,加强对...

    9年前   
    7227    0

    大学第二学期JSP期末考试试卷及参考答案

    大学第二学期JSP期末考试试卷及参考答案一、填空题(本大题共11小题,每空1分,共20分)1、指令标识通常以(<%@)标记开始,以(%>)标记结束。2、如果想在JSP页面中调用exceptio...

    3年前   
    1885    0

    创国优信息

        回龙镇隆重召开人口计生法律法规政策 及创国优工作培训会   2013年8月23日,回龙镇人民政府大礼堂举行人口计生法律法规政策及创国优工作培训会,参会人员100多人,有镇领导...

    9年前   
    7002    0

    JSP开发技术实验3简易选课系统

    课程实验报告课程名称JSP开发技术班级软件实验日期2016姓名 学号实验成绩实验名称实验3 简易选课系统实验目的及要求学习使用Myeclipse开发Web项目,综合使用JavaBean、...

    3年前   
    769    0

    基于JSP的网上书店推荐系统设计与实现

    本系统旨在设计一个网上的书店和书籍相关信息的服务网站,网站的基本运作流程如下:

    3年前   
    585    0

    基于JSP的小区物业管理系统的设计与实现

    在当今社会中,小区居住已经成为城镇居民居住的主要形式。小区物业管理的水平和手段成为决定小区质量和水平的重要因素。而人们对物业管理工作和物业服务的实现信息化的要求逐步提高。再者物业管理也存在复杂的...

    6年前   
    2718    0

    基于JSP技术的酒店管理系统设计与实现

     基于JSP技术的酒店管理系统设计与实现 ...

    3年前   
    755    0

    2A基础闯关

    2A基础闯关

    5年前   
    896    0

    精创信息聚宝盆眼镜销售系统使用帮助——采购申购

    采购申购该模块是当仓库中商品不足时,向采购部门发出的申购单,以便能及时补充仓库中所缺商品。要填写申购单,请执行下列操作:·点击采购申购界面中的填写按钮,出现采购申购-填写的界面: ·选择供应商...

    11年前   
    437    0

    精创信息聚宝盆眼镜销售系统使用帮助——权限管理

    权限管理企业管理系统不是一个人独立操作的,它需要企业内部各个部门各个职员共同协调运用和执行,因此,就需要对使用者有一定的控制,以增强系统的安全性、保密性,在。本系统提供的管理员定义及授权功能就...

    9年前   
    357    0

    精创信息聚宝盆眼镜销售系统使用帮助——采购入库

    采购入库该模块是采购的商品到达后,您验收完商品后所开的单据,以记录您收到的商品的数量,单价、来自哪个供应商、进入了哪一个仓库等情况。以便您在没有采购订单的情况,也能知道所采购商品的情况。填写入...

    12年前   
    423    0

    精创信息聚宝盆眼镜销售系统使用帮助——工资管理

    工资管理该模块是记录企业支付给职员的工资,工资是企业使用职员的知识、技能、时间和精力而给予职员的一种补偿,工资的内容包括许多的项目,如基本工资、各种奖金、各种福利和津贴等等。一、 建立员工工资...

    10年前   
    561    0