暗記メーカー
ログイン
Introduction To Java Programming Language
  • iam noone

  • 問題数 80 • 2/6/2024

    記憶度

    完璧

    12

    覚えた

    28

    うろ覚え

    0

    苦手

    0

    未解答

    0

    アカウント登録して、解答結果を保存しよう

    問題一覧

  • 1

    initiated the Java language project

    James Gosling, Mike Sheridan, and Patrick Naughton i

  • 2

    On what year does the Java language project initiate?

    1991

  • 3

    The small team of Sun Microsystems engineers called Green Team.

    True

  • 4

    Firstly, it was called "_________" by James Gosling, and the file extension was .gt.

    Greentalk

  • 5

    After that, it was called “Java” and was developed as a part of the Green project.

    Oak

  • 6

    Why Java named "Oak"?

    In 1995, Oak was renamed as "Java" because it was already a trademark by Oak Technologies.

  • 7

    Oak is a symbol of strength and chosen as a national tree of many countries like ______,_________,______.

    USA, France,Germany,Romania

  • 8

    Why had they chosen java name for Java language? The team gathered to choose a new name. The suggested words were:

    “dynamic", "revolutionary", "Silk", "jolt", "DNA", etc.

  • 9

    According to James Gosling

    Java was one of the top choices along with Silk". Since Java was so unique, most of the team members preferred Java than other names.

  • 10

    Java is an island of __________ where the first coffee was produced (called java coffee). It is a kind of espresso bean. Java name was chosen by James Gosling while having coffee near his office.

    Indonesia

  • 11

    Java was Initially developed by ___________ at Sun Microsystems (which is now a subsidiary of Oracle Corporation) and released in 1995.

    James Gosling,

  • 12

    Java was Initially developed by James Gosling at Sun Microsystems (which is now a subsidiary of Oracle Corporation) and released in ______.

    1995

  • 13

    in 1995, Time magazine did not called Java one of the Ten Best Products of 1995.

    False

  • 14

    This date on which (JDK) 1.0 was released?

    January 23, 1996

  • 15

    After the first release of Java, there have been many additional features added to the language.

    True

  • 16

    After the first release of Java, there have been many additional features added to the language.

    True

  • 17

    Java is not being used in Windows applications, Web applications, enterprise applications, mobile applications, cards, etc. Each new version does not add new features in Java.

    False, Now Java is being used in Windows applications, Web applications, enterprise applications, mobile applications, cards, etc. Each new version adds the new features in Java.

  • 18

    The need for platform independent language that could be embedded in various consumer electronic products like toasters and refrigerators.

    True

  • 19

    One of the first projects developed using Java is

    personal hand-held remote control named Star 7.

  • 20

    At about the same time, the World Wide Web and the Internet were gaining popularity. Gosling et. al. realized that Java could be used for

    internet programming

  • 21

    As a programming language, Java cannot create all kinds of applications that you could create using any conventional programming language.

    False, As a programming language, Java can create all kinds of applications that you could create using any conventional programming language.

  • 22

    As a development environment, Java technology provides you with a large suite of tools, among them are:

    A compiler(javac) An interpreter (java) A documentation generator(javadoc) A class file packaging tool

  • 23

    are typically general-purpose programs that run on any machine where the Java Runtime Environment (JRE) is installed

    Java technology applications

  • 24

    There are two main deployment environments:

    - JRE supplied by the Java 2 Software Development Kit (SDK) - on your web browser

  • 25

    contains the complete set of class files for all the Java technology packages, which includes basic language classes, Graphical User Interface (GUI) component classes, and so on.

    Software Development Kit (SDK)

  • 26

    The other main deployment environment is on your web browser. Most commercial browsers supply a Java technology

    interpreter and runtime environment.

  • 27

    is an imaginary machine that is implemented by emulating software on a real machine; provides the hardware platform specifications to which you compile all Java technology code.

    Java Virtual Machine (JVM)

  • 28

    is a special machine language that can be understood by the Java Virtual Machine (JVM).

    Bytecode

  • 29

    Responsible for freeing any memory that is no longer in use by the application.This happens automatically during the lifetime of the Java program.

    Garbage Collection

  • 30

    is attained in Java through the implementation of its Java Runtime Environment (JRE).

    Code security

  • 31

    runs code compiled for a JVM and performs class loading (through the class loader), code verification (through the bytecode verifier) and finally code execution.

    Java Runtime Environment (JRE)

  • 32

    is responsible for all classes needed for the Java program.

    Class Loader

  • 33

    the format of the code fragments and checks the code fragments for illegal code that can violate access rights to objects.

    Bytecode verifier tests

  • 34

    (2) types of Java Program: are used to provide interactive features to web applications and can be executed by browsers for many platforms. They are small, portable Java programs embedded in HTML pages and can run automatically when the pages are viewed

    Java applets/Applets program

  • 35

    (2) types of Java Program: -Java programs that can be developed and executed on a local computer. (Executed from the command prompt). -can be executed without the browsers (Internet connectivity).

    Application program (Stand-alone application)

  • 36

    is not embedded within HTML or any other language and can stand on its own.

    Application program

  • 37

    The smallest individual unit of a program written in any programming language; are the smallest individual building block or smallest unit of a Java program; the Java compiler uses it for constructing expressions and statements.

    Java Token

  • 38

    Java's tokens are divided into five:

    True

  • 39

    are pre-defined or reserved words in a programming language. Each keyword is meant to perform a specific function in a program. Since keywords are referred names for a compiler, they can't be used as variable names because by doing so, we are trying to assign a new meaning to the keyword which is not allowed.

    Reserved Words / Keywords

  • 40

    in Java are a few characters which have special meaning known to Java compiler and cannot be used for any other purpose.

    Special Symbols

  • 41

    in Java are similar to normal variables but their values cannot be changed once assigned. In other words, are constant variables with fixed values. These are defined by users and can belong to any data type.

    Literals

  • 42

    Java supports five types of literals which are as follows:

    Integer (int) Floating Point (float, double) Character (char) String (String) Boolean (boolean)

  • 43

    are used to name a variable, constant, method or function, class, and array.

    Identifiers

  • 44

    Java provides many types of operators which can be used according to the need. They are classified based on the functionality they provide.

    Operators

  • 45

    Operators Java provides many types of operators which can be used according to the need. They are classified based on the functionality they provide. Some of the operators are the following: • Arithmetic operators • Logical operators • Relational operators

    True

  • 46

    are the statements in a program that are not executed by the compiler and interpreter.

    Java Comments

  • 47

    Types of Java Comments: comment is used to comment only one line of the code. It is the widely used and easiest way of commenting the statements.

    Single-line comment

  • 48

    Single line comments starts with

    two forward slashes (//). Any text in front of // is not executed by Java.

  • 49

    is used to comment multiple lines of code. It can be used to explain a complex code snippet or to comment multiple lines of code at a time (as it will be difficult to use single-line comments there).

    Multi-line comment

  • 50

    Multi-line comments are placed between

    /* and */. Any text between /* and */ is not executed by Java.

  • 51

    are usually used to write large programs for a project or software application as it helps to create documentation API. These APIs are needed for reference, i.e., which classes, methods, arguments, etc., are used in the code.

    Documentation comment

  • 52

    To create documentation comments, we need to use the javadoc tool. The documentation comments are placed between

    /** and */.

  • 53

    the small team of sun microsystems engineers called

    Green team

  • 54

    is a sequence of statements intended to accomplish a task.

    Program

  • 55

    is a process of planning and creating a program.

    Programming

  • 56

    is a set of rules, symbols, and special words used to construct programs.

    Programming language

  • 57

    is a set of values with a set of operations on those values.

    Data type

  • 58

    is a collection of related classes.

    Package

  • 59

    is used to create java programs, either application or applet; It is the basic unit of a java program; It is a collection of methods and data members

    Class

  • 60

    is a set of instructions to accomplish a specific task; It is the functional element of an object. Some of the predefined or standard methods are nextInt(), nextDouble() and print().

    Method

  • 61

    consists of letters, digits, the underscore character(_) and the dollar sign ($) and must begin with letter,underscore or a dollar sign. Must not be a keyword or a reserved word.

    java identifier

  • 62

    Naming conventions used in Java programming language are

    PascalCase and camelCase

  • 63

    are used in naming Classes

    PascalCase

  • 64

    are used in naming variables.

    CamelCase

  • 65

    Hungarian notations are suitable for Java application programs.

    False, Are Not suitable

  • 66

    a type of error which is considered as a programmer’s error; it is also called as a compile-time error. Another type of error is a Run-time error which is also known as a logical error; errors that will not display until you run or execute your program.

    Sytax error

  • 67

    is a software application that helps programmers develop software code efficiently. It increases developer productivity by combining capabilities such as software editing, building, testing, and packaging in an easy-to-use application.

    integrated development environment (IDE)

  • 68

    The following are Java programming language integral data types expect:

    Float

  • 69

    A variable in java programming can start with the ff exept:

    Number

  • 70

    It is the original name of Java programming language

    Greentalk

  • 71

    The following are also options to be the name of the java programming language except:

    Cool

  • 72

    The following are Iava programming language except:

    Class

  • 73

    The following are phrases of Java program except:

    Copy the program

  • 74

    Code security is attained in Jaca through the implementation of its JRE

    True

  • 75

    A program is a sequence of statements intended to accomplish a task

    True

  • 76

    The syntax error is also known as compile-time error

    True

  • 77

    IDE is a software application that helps programmers develop software code efficiently

    True

  • 78

    Java technology applications are typically general-purpose programs that run on any machine where the JRE is installed.

    True

  • 79

    Java applets are small, portable Java programs embedded in HTML pages and can run automatically when the pages are viewed.

    True

  • 80

    Any Kava application programs should always contain Main(String[] args) method.

    False