CIS 283 Java I Quiz 1

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Yupeilin
Y
Yupeilin
Community Contributor
Quizzes Created: 7 | Total Attempts: 13,237
| Attempts: 119 | Questions: 16
Please wait...
Question 1 / 16
0 %
0/100
Score 0/100
1. Which of following is NOT one of the steps of program development life cycle discussed in the class?

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.

Submit
Please wait...
About This Quiz
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:... see moreYou cannot go back to previous questions. see less

Personalize your quiz and earn a certificate with your name on it!
2. The Java compiler translate the Java code into ______

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.

Submit
3. What is the file extension of your Java source file?

Explanation

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

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

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.

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

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.

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

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.

Submit
7. The Java language was developed by __________

Explanation

The correct answer is Sun Microsystem. Sun Microsystem was the company that originally developed the Java language.

Submit
8. Assembly language has one-to-one mapping to the machine language code

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.

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

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.

Submit
10. Assembly language employs alphabetic abbreviations called ________

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.

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

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.

Submit
12. Which of following is NOT basic control structures?

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.

Submit
13. Which of the following is NOT a Java program?

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.

Submit
14. Which of the following is NOT a strength of Java language?

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++.

Submit
15. Java is NOT completely object-oriented because __________

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.

Submit
16. Documentation takes place only after testing and debugging the program

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.

Submit
View My Results

Quiz Review Timeline (Updated): Apr 17, 2024 +

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
Cancel
  • All
    All (16)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which of following is NOT one of the steps of program development life...
The Java compiler translate the Java code into ______
What is the file extension of your Java source file?
Java employs both a compiler and an interpreter to produce an...
A program that can be compiled successfully will not have any syntax...
Which of the following Java programs can only be run using Web...
The Java language was developed by __________
Assembly language has one-to-one mapping to the machine language code
In order to execute a Java application, you need to have ______...
Assembly language employs alphabetic abbreviations called ________
CPU from different manufacturers have the same machine code for each...
Which of following is NOT basic control structures?
Which of the following is NOT a Java program?
Which of the following is NOT a strength of Java language?
Java is NOT completely object-oriented because __________
Documentation takes place only after testing and debugging the program
Alert!

Advertisement