100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
ITCS 1213 UNCC FINAL EXAM QUESTIONS WITH COMPLETE SOLUTION GRADED A+ $13.99   Add to cart

Exam (elaborations)

ITCS 1213 UNCC FINAL EXAM QUESTIONS WITH COMPLETE SOLUTION GRADED A+

 4 views  0 purchase
  • Course
  • ITCS 1213 UNCC
  • Institution
  • ITCS 1213 UNCC

ITCS 1213 UNCC FINAL EXAM QUESTIONS WITH COMPLETE SOLUTION GRADED A+ Is it possible to create an array in Java where the first row has 5 elements, the second row has 6 elements and the third row has 2 elements? - ANSWER>>yes create a for loop to execute: Is it possible to create an array ...

[Show more]

Preview 2 out of 12  pages

  • August 7, 2024
  • 12
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • ITCS 1213 UNCC
  • ITCS 1213 UNCC
avatar-seller
winniewaweru
ITCS 1213 UNCC FINAL EXAM QUESTIONS WITH
COMPLETE SOLUTION GRADED A+

Is it possible to create an array in Java where the first row has 5 elements, the second
row has 6 elements and the third row has 2 elements? - ANSWER>>yes


create a for loop to execute: Is it possible to create an array in Java where the first
row has 5 elements, the second row has 6 elements and the third row has 2 elements?
- ANSWER>>double [] [] salaries = new double [NUM_STORES][];
array[0] = new double [5];
array[1] = new double [6];
array[2] = new double [2];


Write the statement to print the number of elements in a one-dimensional array. -
ANSWER>>for(i =0; i<array.length -1; i++)
{
System.out.println(array[i]);
}


What does Java initialize the elements of an array of references to? - ANSWER>>null


What does Java initialize an array of ints to? - ANSWER>>0


Is an array an object? - ANSWER>>Yes


int [ ] numbers = new int[16] how many objects were created? - ANSWER>>1, new was
used once


Student [ ] roster = new Student[25] <- how many objects were created? - ANSWER>>1,
new was used once

, Write the command to compile a source code file named Book.java - ANSWER>>javac
Book.java


Write the command to run a class file named Book.class - ANSWER>>java Book


Where does the execution of a Java project begin? - ANSWER>>public static void
main(String [] args)


How many public classes can a Java class file contain? - ANSWER>>1


Can you declare fields of a class inside a method? - ANSWER>>No


What does private access for a field mean? - ANSWER>>Only the current class will
have access to the field or method.


What does public access for a field mean? - ANSWER>>Any class can refer to the field
or call the method.


What does protected access for a field mean? - ANSWER>>Only the current class and
sub classes (and sometimes also same-package classes) of this class will have
access to the field or method.


What happens if you do not specify the access for a field? - ANSWER>>It will set the
access to package


Can a sub-class also be a super-class? - ANSWER>>Yes, Java allows this


What is an abstract method? - ANSWER>>It is a method that is declared, but contains
no implementation

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 winniewaweru. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75323 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
$13.99
  • (0)
  Add to cart