Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4,6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 197 pages
Exam (elaborations)

ICT2612 E EXAM PACK 2026

Document preview thumbnail
Preview 3 out of 197 pages

ICT2612 Latest exam pack questions and answers and summarized notes for exam preparation. Updated for 2024 exams . For assistance Whats-App.0.6.7..1.7.1..1.7.3.9 . All the best on your exams!!

Content preview

ICT2612
EXAM PACK




FOR ASSISTANCE WITH THIS MODULE +27 67 171 1739

, 2023 Assignment 2 MCQ

1) Consider the following program and predict the output

public class Test {
public void print(Integer i) {
System.out.println("Integer");
}
public void print(int i) {
System.out.println("int");
}
public void print(long i) {
System.out.println("long");
}
public static void main(String args[]) {
Test test = new Test();
test.print(10);
}
}


a. Integer

b. The program results in a compiler error (“ambiguous overload”).

c. Long

d. int




2) Which term best describes "a program that duplicates the look and feel of a particular
device"?

a. operating system

b. mobile application

c. emulator

d. smartphone


3) What will be the output of following Java code?

public class Main {
public static void main(String[] args) {
System.out.println(Math.copySign(100.6, -200.6));
}
}


a. -200.6

b. 100.6

c. -100.6

d. 200.6

, 4) Consider the following program:

class SuperClass {
SuperClass() {
foo();
}
public void foo() {
System.out.println("In SuperClass.foo()");
}
}
Class SubClass extends SuperClass {
private String member;
public SubClass() {
member = "HI";
}
public void foo() {
System.out.println("In SubClass.foo(): " + member.toLowerCase());
}
}
public class Test {
public static void main(String[] args){
SuperClass reference = new SubClass();
reference.foo();

This program prints the following:


a. In Derived.foo(): hi

b. In SuperClass.foo() In Derived.foo(): hi

c. In SuperClass.foo()

d. This program throws a NullPointerException.



5) Which of the following statements is a way of making more Java functions available to your
specific program?

a. import statement

b. include statement

c. reference statement

d. assignment statement


6) Which of the following is the parent class of service?

a. object

b. contextThemeWrapper

c. Context

d. contextWrapper

Connected book
 image
Sasha Vodnik, Don Gosselin JavaScript: The Web Warrior Series
Publisher: 2014 ISBN: 9781305445642 Edition: Unknown

Document information

Uploaded on
January 4, 2022
File latest updated on
January 25, 2024
Number of pages
197
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
R75,00

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
EduPal
4,2
(14382)
Sold
154141
Followers
36024
Items
5158
Last sold
9 hours ago

Reviews from verified buyers




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions