1)________ is the physical aspect of the computer that can be seen.
A)Hardware B) Operating system C)Application program D) Software

2)________ is the brain of a computer.
A)Disk B) Memory C)Hardware D) CPU

3)The speed of the CPU is measured in ________. (Choose all that apply.)
A)megabytes B) megahertz C)gigabytes D) gigahertz

4)Why do computers use zeros and ones?
A)because binary numbers are the bases upon which all other number systems are built.
B)because combinations of zeros and ones can represent any numbers and characters.
C)because binary numbers are simplest.
D)because digital devices have two stable states and it is natural to use one state for 0 and the other for 1.

5)One byte has ________ bits.
A)12 B) 4 C) 16 D) 8

6)Which of the following are storage devices? (Choose all that apply.)
A)hard disk B) CD-ROM C)flash stick D) floppy disk

7)________ is a device to connect a computer to a local area network (LAN).
A)Regular modem B) DSL C)NIC D) Cable modem

网络接口控制器(英语:network interface controller,NIC),又称网卡。

8)________ are instructions to the computer. (Choose all that apply.)
A)Software B) Keyboards C)Hardware D) Programs

9)Computer can execute the code in ________.
A)machine language B) high-level language C)assembly language D) none of the above

10)________ translates high-level language program into machine language program.
A)An assembler B) The operating system C)CPU D) A compiler

11)________ is an operating system.
A)Java B)Windows XP C)Visual Basic D)Ada E)C++

12)________ is a program that runs on a computer to manage and control a computer's activities.
A)Modem B)Java C)Interpreter D)Operating system E)Compiler

13)Java was developed by ________.
A)IBM B)Microsoft C)Cisco Systems D)Oracle E)Sun Microsystems

Java由Sun公司开发,后来Sun被Oracle收购

14)Java ________ can run from a Web browser.
A)servlets B) applets C)Micro Edition programs D) applications

15)________is an object-oriented programming language. (Choose all that apply.)
A)Ada B)Java C)C D)Pascal E)C++

16)________is interpreted.
A)Ada B)C C)C++ D)Java E)Pascal

Java是解释执行的语言

17)________is Architecture-Neutral.
A)C++ B)Pascal C)Ada D)Java E)C

Java是体系结构中立的语言

18)________is a technical definition of the language that includes the syntax(句法) and semantics(语义) of the Java programming language.
A)Java IDE B) Java language specification C)Java API D) Java JDK

Java语言规范

19)________ contains predefined classes and interfaces for developing Java programs.
A)Java JDK B) Java language specification C)Java API D) Java IDE

20)________ consists of a set of separate programs for developing and testing Java programs, each of which is invoked from a command line.
A)Java JDK B) Java IDE C)Java language specification D) Java API

21)________provides an integrated development environment (IDE) for rapidly developing Java programs. Editing, compiling, building, debugging, and online help are integrated in one graphical user interface.
A)Java language specification B) Java JDK C)Java IDE D) Java API

22)The main method header is written as:
A)public void main(String[ ] args) B)public static void main(String[ ] args)
C)public static void Main(String[ ] args) D)public static main(String[ ] args)
E)public static void main(string[ ] args)

23)Which of the following statements is correct?
A)Every statement in a program must end with a semicolon.
B)Every comment line must end with a semicolon.
C)Every line in a program must end with a semicolon.
D)Every class must end with a semicolon.
E)Every method must end with a semicolon.

semicolon 分号

24)Which of the following statements is correct to display Welcome to Java on the console? (Choose all that apply.)
A)System.out.println("Welcome to Java");
B)System.out.print("Welcome to Java");
C)System.println('Welcome to Java');
D)System.out.println('Welcome to Java');
E)System.out.print('Welcome to Java');

25)The JDK command to compile a class in the file Test.java is ______
A)java Test B)java Test.java C)JAVAC Test.java D)javac Test E)javac Test.java

26)Which JDK command is correct to run a Java application in ByteCode.class?
A)javac ByteCode.java B)javac ByteCode
C)java ByteCode.class D)JAVAC ByteCode E)java ByteCode

27)Java compiler translates Java source code into ________.
A)another high-level language code B)machine code C)Java bytecode D)assembly code

28)________ is a software that interprets Java bytecode.
A)Java debugger B) Java compiler C)Java virtual machine D) Java API

29)Suppose you define a Java class as follows:
public class Test {}
In order to compile this program, the source code should be stored in a file named ______
A)Test.class B)Test.doc C)Test.java D)Test.txt E)Any name with extension .java

30)The extension name of a Java bytecode file is ______
A).obj B) .exe C) .class D) .java

31)The extension name of a Java source code file is ______
A).java B) .obj C) .exe D) .class

32)Which of the following lines is not a Java comment? (Choose all that apply.)
A)-- comments B)/** comments */ C)** comments ** D)// comments E)/* comments */

33)Which of the following are the reserved words? (Choose all that apply.)
A)static B) void C) class D) public

34)Every statement in Java ends with ________.
A)a semicolon (;) B) an asterisk (*) C)a period (.) D) a comma (,)

35)A block is enclosed inside ________.
A)braces B) parentheses C)brackets D) quotes

braces 花括号  parentheses 圆括号   brackets 方括号 quotes 引号

Java题库——Chapter1 计算机、程序和Java概述的更多相关文章

  1. Java题库——Chapter13抽象类和接口

    )What is the output of running class Test? public class Test { public static void main(String[ ] arg ...

  2. Java题库——Chapter9 String的用法

    1)Which code fragment would correctly identify the number of arguments passed via the command line t ...

  3. Java题库——Chapter10 面向对象思考

    1)You can declare two variables with the same name in ________. 1) _______ A)a method one as a forma ...

  4. Java题库——Chapter3 操作符、选择

    1)The "less than or equal to" comparison operator in Java is ________. A)<< B) != C) ...

  5. 使用Mpvue配合Weui开发面试题题库微信小程序,并且发布到正式环境

    原文转载自「刘悦的技术博客」https://v3u.cn/a_id_116 之前的一篇文章详细阐述了微信小程序开发的准备和入门以及环境搭建,这一次我们介绍如何将微信小程序如何上线,同时配合weui美化 ...

  6. Java题库——Chapter14 JavaFX基础

    Chapter 14 JavaFX Basics Section 14.2 JavaFX vs Swing and AWT1. Why is JavaFX preferred?a. JavaFX is ...

  7. Java题库——Chapter12 异常处理和文本IO

    异常处理 1)What is displayed on the console when running the following program? class Test { public stat ...

  8. Java题库——Chapter8 对象和类

    1)________ represents an entity(实体) in the real world that can be distinctly identified. 1) _______ ...

  9. Java题库——Chapter5 方法

    1)Suppose your method does not return any value, which of the following keywords can be used as a re ...

随机推荐

  1. webpack学习_管理输出(管理资源插件)

    管理输出步骤 Step1:在src新建文件print.js添加逻辑 Step2:在src/index.js import 引用新添加的逻辑 Step3:更新dist/index.html文件,修改引入 ...

  2. python基础实战之猜年龄游戏

    目录 一.Python基础实战之猜年龄游戏 给定年龄,用户可以猜三次年龄 年龄猜对,让用户选择两次奖励 用户选择两次奖励后可以退出 age = 18 # 答案 count = 0 # 游戏次数控制 p ...

  3. 2016/09/29 SQL中的join

    1.建表 首先建tb_a并插入数据. )); insertinto tb_a(symbol, sname) values ('A','B'); insertinto tb_a(symbol, snam ...

  4. Go语言底层知识总结【新手必学】

    前言 本文的文字及图片来源于网络,仅供学习.交流使用,不具有任何商业用途,版权归原作者所有,如有问题请及时联系我们以作处理.作者:YID_152接下来我们来给大家分享想go的基础知识要点:如果你也刚学 ...

  5. Android获取ROOT权限的通用方法

    背景 自从Android问世以后,给手机获取ROOT权限变成了玩机爱好者老生常谈的话题.拥有手机,却不能拥有操作手机的最高权限,这对于手机爱好者而言,这怎么可以忍?所以无论Android升到什么什么版 ...

  6. Android 项目优化(七):阿里巴巴Android开发手册整理总结

    本来之前觉得Android项目优化系列的文章基本整理完毕了,但是近期看了一下<阿里Android开发手册>有了很多收获,想再整理一篇,下面就开始吧. 先在这里列一下之前整理的文章及链接: ...

  7. TopCoder12729 「SRM589Medium」GearsDiv1 二分图最小点覆盖

    问题描述 \(N\) 个齿轮每个齿轮有颜色(RGB),有些齿轮之间会咬合,你需要删除尽量少的齿轮并给每种颜色安排方向使得咬合齿轮不同向.问最多保留多少个齿轮.保证不存在两个相同颜色的齿轮咬合. sub ...

  8. 面试连环炮系列(三):synchronized怎么用的

    synchronized怎么用的? 用过,synchronized是常用的并发控制关键字,简单的说就是访问加锁.它可以修饰静态方法或者一个类的class对象,这叫类锁:可以修饰普通方法或者代码块,这叫 ...

  9. ConcurrentHashMap源码走读

    目录 ConcurrentHashMap源码走读 简介 放入数据 容器元素总数更新 容器扩容 协助扩容 遍历 ConcurrentHashMap源码走读 简介 在从JDK8开始,为了提高并发度,Con ...

  10. 简单了解css3轮廓outline

    outline属性是用来设置一个或多个单独的轮廓属性的简写属性 , 例如 . 轮廓有下面几个属性: { outline-style: solid; outline-width: 10px; outli ...