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
Exam (elaborations)

ICT2612 E EXAM PACK 2026

Rating
5.0
(1)
Sold
4
Pages
197
Grade
A+
Uploaded on
04-01-2022
Written in
2025/2026

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!!

Institution
Course

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

, 7) Which term best describes a blueprint or a template for creating objects by defining its
properties?

a. Widget

b. App

c. Class

d. Control


8) What is the return type of a method that returns nothing?

a. int

b. Double

c. void

d. null


9) choose the correct option based on this program:

import java.util.*;
class UtilitiesTest {
public static void main(String[] args) {
List < int > intList = new ArrayList < > ();
intList.add(10);
intList.add(20);
System.out.println("The list is: " + intList);


a. It prints the following: The list is: [10, 20]

b. It results in a runtime exception

c. It prints the following: The list is: [20, 10]

d. It results in a compiler error

Connected book

Written for

Institution
Course

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

Subjects

$4.82
Get access to the full document:

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

Reviews from verified buyers

Showing all reviews
1 year ago

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

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 University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
153227
Member since
7 year
Number of followers
36023
Documents
4951
Last sold
3 hours ago

At EduPal we provide academic assistance, exam preparation, detailed notes, and exam packs to help college students study with confidence. Our tutoring is comprehensive and personalised, focusing on your subject needs and deadlines. We guarantee quality support, clear guidance, and proven strategies that improve understanding, marks, and pass rates. For more information Whats-App 0.8.1..2.7.8..3.3.7.2..

4.2

14258 reviews

5
8277
4
2783
3
1868
2
485
1
845

Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card 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