Professional Documents
Culture Documents
Duration:
Trainer will set the duration of the assessment.
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
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
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
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
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
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
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
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
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
2. What does the static keyword mean, and where can it be used?
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
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
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
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
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
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
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
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
8. What should be kept in mind while creating your own exceptions in Java?
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
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
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
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
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
}
}
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
14. Which containers use a Flow Layout as their default layout? What is the Vector class?
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
29 | P a g e