CIS 283 Java I Quiz 1

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Yupeilin
Y
Yupeilin
Community Contributor
Quizzes Created: 7 | Total Attempts: 12,961
Questions: 16 | Attempts: 119

SettingsSettingsSettings
CIS 283 Java I Quiz 1 - Quiz


The quiz covers chap 1 and chap 2. The quiz consists of 16 questions, and you will have 16 minutes to complete the quiz. You are allowed to take the quiz only ONCE. Multiple attempts will result in the lowest grade being taken as the grade for your quiz.
NOTE: You cannot go back to previous questions.


Questions and Answers
  • 1. 

    Which of the following is NOT a strength of Java language?

    • A.

      Portable

    • B.

      Cheap

    • C.

      Relatively Simple

    • D.

      High Speed Execution

    Correct Answer
    D. High Speed Execution
    Explanation
    Java is known for its portability, as it can run on any platform that has a Java Virtual Machine. It is also relatively simple compared to other programming languages, making it easier for developers to learn and use. Additionally, Java is cost-effective as it is an open-source language, meaning it is free to use and has a wide range of libraries and frameworks available. However, high-speed execution is not considered a strength of Java. While Java is fast, it is not as fast as some other programming languages like C or C++.

    Rate this question:

  • 2. 

    Java is NOT completely object-oriented because __________

    • A.

      Java support primitive data types such as int, float...

    • B.

      Java support class

    • C.

      Java support user defined class

    • D.

      Java support inheritance

    Correct Answer
    A. Java support primitive data types such as int, float...
    Explanation
    Java is not completely object-oriented because it supports primitive data types such as int and float. In object-oriented programming, everything is treated as an object, but primitive data types in Java are not objects. They are not instantiated from a class and do not have methods or attributes like objects do. This means that Java has a mix of both object-oriented and procedural programming features, making it not completely object-oriented.

    Rate this question:

  • 3. 

    Which of the following is NOT a Java program?

    • A.

      Applets

    • B.

      Servlets

    • C.

      Javascript

    • D.

      JavaBeans

    Correct Answer
    C. Javascript
    Explanation
    Javascript is not a Java program because it is a scripting language that is primarily used for front-end web development, whereas Java is a general-purpose programming language. Although they share similar names, they are different languages with different purposes and syntax. While Java is compiled and runs on a virtual machine, Javascript is interpreted and runs directly in web browsers.

    Rate this question:

  • 4. 

    What is the file extension of your Java source file?

    • A.

      .class

    • B.

      .java

    • C.

      .jar

    • D.

      .out

    Correct Answer
    B. .java
    Explanation
    The file extension of a Java source file is .java. This extension is used to identify files that contain Java programming code.

    Rate this question:

  • 5. 

    The Java compiler translate the Java code into ______

    • A.

      Bitcode

    • B.

      Bitecode

    • C.

      Bytecode

    • D.

      Bycode

    Correct Answer
    C. Bytecode
    Explanation
    The Java compiler translates the Java code into bytecode. Bytecode is a low-level representation of the Java code that can be executed by the Java Virtual Machine (JVM). It is a platform-independent format that allows Java programs to be run on any device or operating system that has a JVM installed. The JVM interprets the bytecode and converts it into machine code that can be executed by the underlying hardware. This compilation process enables Java programs to be portable and run efficiently on different platforms.

    Rate this question:

  • 6. 

    In order to execute a Java application, you need to have ______ on your computer

    • A.

      Java Virtual Machine

    • B.

      Java Real Machine

    • C.

      Java Running Machine

    • D.

      Java Verbal Machine

    Correct Answer
    A. Java Virtual Machine
    Explanation
    To execute a Java application, you need to have Java Virtual Machine (JVM) on your computer. JVM is a virtual machine that allows the computer to run Java programs. It interprets the Java bytecode and translates it into machine code that can be executed by the computer's operating system. Without JVM, the computer would not be able to understand and execute Java programs.

    Rate this question:

  • 7. 

    Which of following is NOT basic control structures?

    • A.

      Sequence

    • B.

      Decision

    • C.

      Iteration

    • D.

      None of above

    Correct Answer
    D. None of above
    Explanation
    The given question asks for the control structure that is not considered basic. The options provided are Sequence, Decision, Iteration, and None of above. Sequence, Decision, and Iteration are all basic control structures commonly used in programming. Therefore, the correct answer is None of above, indicating that all the given options are basic control structures.

    Rate this question:

  • 8. 

    Which of following is NOT one of the steps of program development life cycle discussed in the class?

    • A.

      Define the problem

    • B.

      Code the program

    • C.

      Install the program

    • D.

      Test and debug the program

    Correct Answer
    C. Install the program
    Explanation
    The correct answer is "Install the program". In the program development life cycle, the steps include defining the problem, coding the program, testing and debugging the program. However, installing the program is not considered a step in the development process. Installation typically occurs after the program has been developed and tested, and it involves deploying the program onto the intended system or device.

    Rate this question:

  • 9. 

    Assembly language has one-to-one mapping to the machine language code

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    Assembly language is a low-level programming language that is specific to a particular computer architecture. It uses mnemonic codes to represent machine instructions, making it easier for programmers to understand and write code. Each assembly language instruction corresponds directly to a machine language instruction, resulting in a one-to-one mapping. This means that every assembly language instruction can be directly translated into its equivalent machine language code. Therefore, the given statement is true.

    Rate this question:

  • 10. 

    Documentation takes place only after testing and debugging the program

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    Documentation does not necessarily take place only after testing and debugging the program. In fact, documentation is an ongoing process that can occur at any stage of the software development lifecycle. It is important to document the program throughout its development to ensure clarity, maintainability, and ease of understanding for future reference. Therefore, the statement that documentation only takes place after testing and debugging the program is incorrect.

    Rate this question:

  • 11. 

    A program that can be compiled successfully will not have any syntax errors.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    A program that can be compiled successfully means that it is written in a way that follows the syntax rules of the programming language. Syntax errors occur when the program is not written correctly according to these rules, such as missing semicolons or using incorrect keywords. Therefore, if a program can be compiled successfully, it implies that there are no syntax errors present in the code. Hence, the statement "A program that can be compiled successfully will not have any syntax errors" is true.

    Rate this question:

  • 12. 

    Which of the following Java programs can only be run using Web browser?

    • A.

      Servlet

    • B.

      Applet

    • C.

      JavaBeans

    • D.

      EJB

    Correct Answer
    B. Applet
    Explanation
    An applet is a Java program that can only be run using a web browser. Unlike other options like Servlet, JavaBeans, and EJB, which can be run on a server or standalone environment, applets are specifically designed to be embedded within webpages and executed within a web browser. They are typically used to add interactive functionalities to webpages and require the Java plugin to be installed in the browser for execution.

    Rate this question:

  • 13. 

    CPU from different manufacturers have the same machine code for each operation.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    The statement is false because different CPU manufacturers use different instruction sets and architectures. Each manufacturer has their own unique machine code for each operation. Therefore, the machine code for a particular operation on one CPU may not be the same as the machine code for the same operation on a CPU from a different manufacturer.

    Rate this question:

  • 14. 

    Java employs both a compiler and an interpreter to produce an executable program

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    Java employs both a compiler and an interpreter to produce an executable program. This statement is true because Java uses a compiler to convert the source code into bytecode, which is a platform-independent representation of the program. The bytecode is then interpreted by the Java Virtual Machine (JVM) at runtime to execute the program. This combination of compilation and interpretation allows Java programs to be portable and run on any device that has a compatible JVM.

    Rate this question:

  • 15. 

    The Java language was developed by __________

    • A.

      Java Microsystem

    • B.

      Sun Macrosystem

    • C.

      Java Macrosystem

    • D.

      Sun Microsystem

    Correct Answer
    D. Sun Microsystem
    Explanation
    The correct answer is Sun Microsystem. Sun Microsystem was the company that originally developed the Java language.

    Rate this question:

  • 16. 

    Assembly language employs alphabetic abbreviations called ________

    • A.

      Syntax

    • B.

      Mnemonics

    • C.

      Keywords

    • D.

      Assembler

    Correct Answer
    B. Mnemonics
    Explanation
    Assembly language employs alphabetic abbreviations called mnemonics. Mnemonics are used to represent specific instructions or operations in assembly language programming. These abbreviations make it easier for programmers to write and understand code, as they are more intuitive and human-readable compared to the binary machine code. By using mnemonics, programmers can write assembly language instructions that correspond to specific machine code instructions, making it more efficient and convenient to program in assembly language.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Apr 17, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Sep 15, 2009
    Quiz Created by
    Yupeilin

Related Topics

Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.