Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien
logo-home
CIS 3145 MidTerm Exam Review Questions With Complete Solutions €10,25   Ajouter au panier

Examen

CIS 3145 MidTerm Exam Review Questions With Complete Solutions

 10 vues  0 fois vendu
  • Cours
  • CIS 3145
  • Établissement
  • CIS 3145

CIS 3145 MidTerm Exam Review Questions With Complete Solutions What is the Java Programming Language? - Correct Answer It was released in 1995 as a part of Sun Microsystems' Java platform. The language has developed much of its syntax from C and C++. Java applications are usually compiled to bytec...

[Montrer plus]

Aperçu 3 sur 16  pages

  • 18 septembre 2024
  • 16
  • 2024/2025
  • Examen
  • Questions et réponses
  • CIS 3145
  • CIS 3145
avatar-seller
CIS 3145 MidTerm Exam Review Questions With
Complete Solutions
What is the Java Programming Language? - Correct Answer It was released in 1995 as a part of Sun
Microsystems' Java platform. The language has developed much of its syntax from C and C++. Java
applications are usually compiled to bytecode (class file) that can run on any Java Virtual Machine
(JVM). Java is currently one of the most popular programming languages being used.



How does the Java language compare to other languages? - Correct Answer Java was made so its
applications can be run on any computer platform without needing to be compiled for each platform.
Designed to automatically handle many operations involving the allocation and de-allocation of
memory.



How is a Java application compiled? - Correct Answer The java compiler compiles the source code
into a format known as Java Byte-codes, those byte-codes can be run on any platform that has a Java
Runtime Environment or JRE. Than using a JVM (Java Virtual Machine) it translates the Bytecodes
into native code that can be understood.



What is the IDE? - Correct Answer Integrated Development Environment. Provides features that can
make developing Java applications considerably easier. These code developers include Netbeans,
Eclipse, and Android Studio.



How does Netbeans Work? - Correct Answer



**CHAPTER 2** - Correct Answer



How do you write code to create Class? - Correct Answer public class NumberGameApp;



What code creates main method? - Correct Answer public static void main(String[]args) {



}



What code creates a statement - Correct Answer package murach.test;



What code creates a java comment - Correct Answer // single line comment

<!-- Multiple Line Comment -->

,What is an identifier in the Java language? - Correct Answer In Java programming language, an
identifier is a name given to a variable, class or method. Identifiers start with a letter, underscore(_)
or dollar sign ($).



What are the rules for naming a class? Recommendations? - Correct Answer Common coding
convention is to start the class name and every word within that name with a capital letter. Letters
and Digits only.

Examples: CodeTesterApp, NumberGuessingGame, and StudentClass



What are the rules and recommendations for naming variables? - Correct Answer All variables have
to be initialized with the fist letter of the first word lowercase and any word after that with no space
and capitalized. Also, avoid abbreviations

Example: newCust, productPrice, maxQuantity



What is the syntax for declaring a primitive variable? - Correct Answer There are eight primitive data
types that are used for storing values in memory.

boolean

char

byte

float

void

short

double

int

long

Int and double are the two most common.



What is an assignment statement and how is it used with arithmetic expressions? - Correct Answer
An assignment statement assigns a value to a variable that is already declared. This value can be a
literal value, another variable, or an expression.



How is a string variable different from primitive variables? - Correct Answer Primitive types are the
basic types of data

, byte, short, int, long, float, double, boolean, char



primitive variables store primitive values

reference types are any instantiable class as well as arrays

String, Scanner, Random, Die, int[], String[], etc.

reference variables store addresses



What objects are used to get input and send output to the console? - Correct Answer Getting input

int number = Integer.parseInt( input );



Sending output

System.out.println("Output to console")



**CHAPTER 3** - Correct Answer



What code is used to create a class? - Correct Answer java.lang.String

java.lang.Integer

java.lang.Double

java.util.Scanner

java.text.NumberFormat



What code is used to create an object? - Correct Answer new ClassName(arguments);

When creating an object, you are creating an instance of the class. Then, use the methods of the
class by calling them from the object.



What are methods? - Correct Answer A method is a block of code that preforms an action. A method
typically returns a value or object that you can assign to a variable.



What is a static method? - Correct Answer A static method, similar to regular methods, but you can
call them directly from the class without creating an object from the class.

Les avantages d'acheter des résumés chez Stuvia:

Qualité garantie par les avis des clients

Qualité garantie par les avis des clients

Les clients de Stuvia ont évalués plus de 700 000 résumés. C'est comme ça que vous savez que vous achetez les meilleurs documents.

L’achat facile et rapide

L’achat facile et rapide

Vous pouvez payer rapidement avec iDeal, carte de crédit ou Stuvia-crédit pour les résumés. Il n'y a pas d'adhésion nécessaire.

Focus sur l’essentiel

Focus sur l’essentiel

Vos camarades écrivent eux-mêmes les notes d’étude, c’est pourquoi les documents sont toujours fiables et à jour. Cela garantit que vous arrivez rapidement au coeur du matériel.

Foire aux questions

Qu'est-ce que j'obtiens en achetant ce document ?

Vous obtenez un PDF, disponible immédiatement après votre achat. Le document acheté est accessible à tout moment, n'importe où et indéfiniment via votre profil.

Garantie de remboursement : comment ça marche ?

Notre garantie de satisfaction garantit que vous trouverez toujours un document d'étude qui vous convient. Vous remplissez un formulaire et notre équipe du service client s'occupe du reste.

Auprès de qui est-ce que j'achète ce résumé ?

Stuvia est une place de marché. Alors, vous n'achetez donc pas ce document chez nous, mais auprès du vendeur Winfred. Stuvia facilite les paiements au vendeur.

Est-ce que j'aurai un abonnement?

Non, vous n'achetez ce résumé que pour €10,25. Vous n'êtes lié à rien après votre achat.

Peut-on faire confiance à Stuvia ?

4.6 étoiles sur Google & Trustpilot (+1000 avis)

78075 résumés ont été vendus ces 30 derniers jours

Fondée en 2010, la référence pour acheter des résumés depuis déjà 14 ans

Commencez à vendre!
€10,25
  • (0)
  Ajouter