100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CISC 124 Final Exam Questions & Answers 2024/2025 $9.99   Add to cart

Exam (elaborations)

CISC 124 Final Exam Questions & Answers 2024/2025

 6 views  0 purchase
  • Course
  • CISC 124
  • Institution
  • CISC 124

CISC 124 Final Exam Questions & Answers 2024/2025 primitive type - ANSWERSA variable data type in which the variable's value is of the appropriate size and format for its type: a number, a character, or a boolean value. Char byte short int long float double boolean Variable decele...

[Show more]

Preview 3 out of 19  pages

  • August 7, 2024
  • 19
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CISC 124
  • CISC 124
avatar-seller
Bensuda
CISC 124 Final Exam Questions &
Answers 2024/2025

primitive type - ANSWERSA variable data type in which the variable's value is of the appropriate size and
format for its type: a number, a character, or a boolean value.

Char

byte

short

int

long

float

double

boolean



Variable decelerations - ANSWERSint number = 6



expressions - ANSWERSpieces of code that produce a value



conditions - ANSWERStrue or fales



loops - ANSWERSrunning the same sequence multiple times



Type Casting - ANSWERSConverting data from one type to another, e.g., from string to int, potentially
losing information.



system.out.printf() - ANSWERSYou an use this method to display formatted output in a console window.



Scanner class - ANSWERSProvides convenient methods for reading input values of various types.

,single arrays - ANSWERSjava array is an object which contains elements of a similar data type. It is a data
structure where we store similar elements. We can store only a fixed set of elements in a Java array.
Array in java is index-based, the first element of the array is stored at the 0 index.



multi-dimensional arrays - ANSWERSint[][] a = new int[3][4];



The ArrayList<T> class - ANSWERSThe ArrayList<T> class resides in the java.util

package. Stores and returns Objects of type T



Aliasing objects - ANSWERSRemember that when you make an assignment to an object variable, you are
assigning a reference to an object. It is possible to have multiple variables that refer to the same object



StringTokenizers - ANSWERSin the java.util package

this class provides an easy way of parsing strings up into pieces called tokens

tokens are separated by diemiters that you can specify



Wrapper classes - ANSWERSA Wrapper class is a class whose object wraps or contains a primitive data
types. When we create an object to a wrapper class, it contains a field and in this field, we can store a
primitive data types. In other words, we can wrap a primitive value into a wrapper class object.



Enumerated types - ANSWERSkeyword enum

contents are not strings but instead objects

Should be used in UPPER CASE

equals()

• toString()

• compareTo()

• ordinal()

• values()

, Importing packages - ANSWERSpackage is a java keyword

groups classes together into a package

package package_name;

• This line is at the top of a class definition, before

the public class...

import folder.packagename.*;

• The ".*" says to import all classes in the package,

or you can import specific classes.



Packages and use of static import - ANSWERSUsed to import all static methods in a class, so

that they can be used as if they were declared

within the class that uses them.

• For example:

import static org.junit.jupiter.api.Assertions.*;

• Another example:

import static java.lang.Math.*;



Use of modules in Java - ANSWERSA Java Module is a mechanism to package up your Java application
and Java packages into Java modules. A Java module can specify which of the Java packages it contains
that should be visible to other Java modules using this module. ... Java modules is a new feature in Java 9
via the Java Platform Module System (JPMS)



Methods - use and declaration. - ANSWERSThree aspects to consider:

1. Naming the method.

2. Providing arguments(s) or not.

3. Doing something with the return value or not



Passing parameters by value and by reference - ANSWERSJava does manipulate objects by reference, and
all object variables are references. However, Java doesn't pass method arguments by reference; it passes
them by value. The method successfully alters the value of pnt1 , even though it is passed by value;
however, a swap of pnt1 and pnt2 fails

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Bensuda. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $9.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77254 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.99
  • (0)
  Add to cart