You are on page 1of 29

15131

T. +61 2 9283 4388 | E.


info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

Assessment 1 Research and


Questioning (Online Assessment)
Instructions:
This is an in-class and individual written assessment. This will assess your underpinning
knowledge required for the competency of this cluster.
You must successfully answer all the questions provided in
this assessment. Your trainer will supply the answer sheet.

Duration:
Trainer will set the duration of the assessment.

Advanced Programming - Assessment Task 1 (Online Assessment)


No. 2

LAST UPDATED: March 2015, Version

1 | Page

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

Questions:
Part A: Choose the correct option:
1. Which one of these lists contains only Java programming
language keywords? a.
Class, if , void, long, Int, continue
b. Goto, instanceof, native, finally,
default, throws c. Try, virtual, throw,
fnal, volatile, transient
d. Stricfp, constant, super,
implements, do e. Byte, break,
assert, switch, include
2. Which will legally declare, construct, and
initialize an array? a. int [] myList = {"1", "2",
"3"};
b. int [] myList = (5, 8, 2);
c. int myList [] [] =
{4,9,7,0}; d. int myList
[] = {4, 3, 7};
3. Which is a reserved word in the Java
language? a. method
b. native
c.
subclasses
d.
reference e.
array
4. Consider the following program:
public interface
Test {
int k = 4; /* Line
3 */ }
In the above program which three pieces of codes are equivalent to line 3?
1.final int k = 4;
2.public int k =
4; 3.static int k =
4; 4.abstract int
k = 4; 5.volatile
int k = 4;
6.protected int k
= 4;

2 | Page

15131
a.
1, 2
and 3 b.
2, 3 and 4
c.
3, 4
and 5 d.
4, 5 and 6
Advanced Programming - Assessment Task 1 (Online Assessment)
No. 2

LAST UPDATED: March 2015, Version

3 | Page

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

5. Which is the
valid declaration within an interface defnition?
a. public double methoda();
b. public final double
methoda(); c.
static
void methoda(double d1);
d. protected void methoda(double d1);
6. The class at the top of exception class hierarchy
is .......................... a.
ArithmeticException
b.
Throwable c.
Class
d. Exception
7. In a java program, package declaration .................... import statements.
a.
must
precede b.
must succeed
c. may precede or
succeed d.
none
8. The class string belongs to ................... package.
a.
java.awt b.
java.lang
c.
java.applet
d.
java.string
9. ............... package is used by compiler itself. So it does not need to be imported for use.
a.
java.math
b. java.awt
c.
java.applet
d. java.lang
10. What will be the result of compiling following code.
public class MyClass{
public static void main(string

4 | Page

15131
args[]){
system.out.println("In first
main()");
}
public static void main(char
args[]){
system.out.println('a);
}
}
Advanced Programming - Assessment Task 1 (Online Assessment)
No. 2

LAST UPDATED: March 2015, Version

5 | Page

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

a.
Code will not compile and
will give "Duplicate main() method declaration" error b. Code will
compile correctly but will give a runtime exception
c. Code will compile correctly and will print "In frst main()" (without
quotes) when it is run d.
Code will compile correctly and will print "a"
(without quotes) when it is run
11. Which of the following is a traditional system development methodology?
a. RAD
b. Waterfall
c. Evolutionary
prototype d.
All of
the above
12. Which of the following methodologies requires a high level of user involvement throughout
the project?
a. Waterfall
b.
Incremental
c. RAD
d. All of the above
13. Which three processes are involved in the development of a project?
a. monitoring, controlling and
directing b.
tracking, deciding
and controlling
c.
screening, controlling and
directing d.
planning,
assessing and monitoring
14. Which one is a web based Project-management software?
a. dotProject
b. FastTrack
Schedule c.
Microsoft
Project d.
OpenProj
15. Project controls are usually designed to focus on which major aspects of project
measurements?
a. taking corrective action
b. monitoring and tracking
progress c.
determining
variation from plan d. all of
the above

6 | Page

15131
16. Which of the following is NOT a goal of a project plan?
a. to guide project execution
b. to facilitate communication among stakeholders
c. to provide a baseline for progress measurement and
project control d.
to define ongoing support and
maintenance strategy

Advanced Programming - Assessment Task 1 (Online Assessment)


No. 2

LAST UPDATED: March 2015, Version

7 | Page

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

17. What is the primary goal of a project review?


a.
of
c.
d.

to answer questions about the conduct of the project for the benefit
future projects b. to identify follow-on action for the project
to determine if the project was a success
to determine how well the project team preformed

18. CVS is not aa. tool for Software users to download official fle releases made
available by the project b.
Source Code Management (SCM)
c. tool to support collaborative development of software
within a team d.
tool to track of changes to software
source code over time

19. E-mail server, Project Management, Workflow system, Intranet and Extranet- these
are the features for which collaboration softwarea. Microsoft
SharePoint b. wikis
c. Zimbra
d. Microsoft Exchange Server

20. Collaboration environment lets a business share ideas and information among
people and across an organisation. Collaboration software resolves communication
issues bya. Improved project
management b.
better
workflow
c. immediate access to critical business information and documents
when they need it d. all of the above

8 | Page

15131
Advanced Programming - Assessment Task 1 (Online Assessment)
No. 2

LAST UPDATED: March 2015, Version

9 | Page

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

Part B: Answer all the questions below


1. Explain the following line used under Java Program, individual words
have to be explained clearly. public static void main (String args[
])

2. What does the static keyword mean, and where can it be used?

Advanced Programming - Assessment Task 1 (Online Assessment)

LAST UPDATED: March 2015, Version

10 | P a g e

15131
No. 2

11 | P a g e

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

3. What is a Constructor and when does a constructor


gets invoked? Explain with an example

Advanced Programming - Assessment Task 1 (Online Assessment)


No. 2

LAST UPDATED: March 2015, Version

12 | P a g e

15131

13 | P a g e

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

4.Defne Inheritance with example

Advanced Programming - Assessment Task 1 (Online Assessment)


No. 2

LAST UPDATED: March 2015, Version

14 | P a g e

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

5. When is super keyword used? Show with an example

Advanced Programming - Assessment Task 1 (Online Assessment)


No. 2

LAST UPDATED: March 2015, Version

15 | P a g e

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

6. What is Polymorphism? Give example

Advanced Programming - Assessment Task 1 (Online Assessment)


No. 2

LAST UPDATED: March 2015, Version

16 | P a g e

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

Advanced Programming - Assessment Task 1 (Online Assessment)


No. 2

| CRICOS CODE: 01856K

LAST UPDATED: March 2015, Version

17 | P a g e

15131

18 | P a g e

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

7. What is Encapsulation with example? What is the


primary benefit of Encapsulation?

Advanced Programming - Assessment Task 1 (Online Assessment)


No. 2

LAST UPDATED: March 2015, Version

19 | P a g e

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

20 | P a g e

15131
Advanced Programming Assessment Task 1 (Online Assessment)
LAST UPDATED: March
2015, Version No.2T. +61 2 9283 4388 | E. info@wic.nsw.edu.au
Lower Ground, 101 Sussex St., Sydney NSW 2000 Australia |
www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

8. What should be kept in mind while creating your own exceptions in Java?

9. What are the differences in using Map, Hashtable, HashMap, TreeMap,


ConcurrentHashMap and LinkedHashMap?

Advanced Programming - Assessment Task 1 (Online Assessment)

LAST UPDATED: March 2015, Version

21 | P a g e

15131
No. 2

22 | P a g e

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

classes, classes, and instances.

| CRICOS CODE: 01856K

10. Explain the differences among interfaces, abstract

Advanced Programming - Assessment Task 1 (Online Assessment)


No. 2

LAST UPDATED: March 2015, Version


T. +61 2 9283 4388 | E.

23 | P a g e

15131
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

11. What problem(s) does abstraction and encapsulation

solve?

12. Snippets provided below design the classes & interfaces for the following scenario:
Bob and Jane work for a restaurant. Bob works as manager and a waiter as well.
Jane works as a waitress. A waitress/waiter's behavior is to take customer
orders and a manager's behavior is to manage employees.
package
badrestaurant;
public interface
Person {} package
badrestaurant;
public interface Manager extends
Person { public void
managePeople( );}
package badrestaurant;
public interface Waiter extends
Person { public void
takeOrders( );

24 | P a g e

15131
}
Advanced Programming - Assessment Task 1 (Online Assessment)
No. 2

LAST UPDATED: March 2015, Version

25 | P a g e

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

package badrestaurant;
public class Bob implements Manager,
Waiter { @Override
public void
managePeople( )
{ //implementation
goes here
}
@Overri
de
public void takeOrders( )
{ //implementation
goes here
}
}
package badrestaurant;
public class Jane implements
Waiter { @Override
public List<string>
takeOrders( )
{ //implementation goes
here
}
}
The Restaurant class uses the above classes as
shown below. package badrestaurant;
public class Restaurant {
public static void main(String[
] args) { Bob bob = new
Bob( );
bob.managePeopl
e( );
bob.takeOrders( );
Jane jane = new
Jane( );
jane.takeOrders( );

26 | P a g e

15131
}
}

Advanced Programming - Assessment Task 1 (Online Assessment)


No. 2

LAST UPDATED: March 2015, Version

27 | P a g e

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

13. What is synchronisation and why is it important?

14. Which containers use a Flow Layout as their default layout? What is the Vector class?

Advanced Programming - Assessment Task 1 (Online Assessment)


No. 2

LAST UPDATED: March 2015, Version

28 | P a g e

15131
T. +61 2 9283 4388 | E.
info@wic.nsw.edu.au Lower Ground, 101 Sussex St., Sydney NSW
2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600
| RTO: 90501

| CRICOS CODE: 01856K

15. Discuss Data structures and algorithms in Java.

Advanced Programming - Assessment Task 1 (Online Assessment)


No. 2

LAST UPDATED: March 2015, Version

29 | P a g e

You might also like