100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
ICT2612 EXAM PACK 2025 {DETAILED QUESTIONS AND ANSWERS } $2.79   Add to cart

Exam (elaborations)

ICT2612 EXAM PACK 2025 {DETAILED QUESTIONS AND ANSWERS }

 7 views  0 purchase
  • Course
  • Institution

ICT2612 EXAM PACK 2025 {DETAILED QUESTIONS AND ANSWERS }

Preview 4 out of 134  pages

  • November 16, 2024
  • 134
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
avatar-seller
lOMoAR cPSD| 49343224




ICT2612/203/1/2017




Downloaded by Vincent master

, lOMoAR cPSD| 49343224




2 ICT2612/203/1/2017

Question 1

Study the code below and indicate what the value of total will be.



int A = 15;

int B = 2;

float total = A/B;

0.0

7

7.0

7.5

Question 2 (1)

The data type ___ has only two possible values, true and false.

byte
double
char
boolean

Question 3 (1)

Indicate which of the following declarations will render an error?

1. boolean result = true;
2. int result = 10000;
double result = 1.234e2;
float result = 1.23e;
long result = 123_456_789;




Question 4 (1)

Study the code below and indicate what the value of i_total will be.

double d_total = 123.5;
1.

2.

3.

4.




Downloaded by Vincent master (VINCENTKYALO920@GMAIL.COM)

, lOMoAR cPSD| 49343224




3 ICT2612/203/1/2017

1.
2.
3.
4.




3.
4.
5.




int i_total = (int)d_total;

1. 123
2. 124
3. 123.0
4. 123.5
5. Error message


Question 5 (1)

Which of the following is an INVALID variable name in Java?

1. String Key = "Java";
2. String key = "Java";




Downloaded by Vincent master

, lOMoAR cPSD| 49343224




4 ICT2612/203/1/2017

3. String 1key = "Java";
4. String _key = "Java";
5. String key$ = "Java";


Question 6 (1)

Study the code below and indicate what the values of val1 and val2 will be:
int val1 = 5;
++val1;
int val2 = val1--;


1. val1: 5 val2: 4

2. val1: 5 val2: 5

3. val1: 5 val2: 6

4. val1: 6 val2: 5

val1: 6 val2: 6




Question 7 (1)

Study the code below and indicate what the values of answer will be:



int x = 5, y = 6, z = 0, k = 2;

int answer = (x + y) * z / k;




1. 0
2. 0.0
3. 5
5.




Downloaded by Vincent master (VINCENTKYALO920@GMAIL.COM)

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

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