Sie sind auf Seite 1von 8

Marking Schedule Assessment 1

Course Name
Credits

Software Development
1
15

Code

SD501

Level

Assessment 1-

Teaching Hours
(per week)
Self study

6
7

Total per week

13

Total weeks

14

30% of the Total Marks

Tasks 1: Software development Answer Six of the following seven questions (40 % of
the Assessment marks)
Q no
1

Evidence

Marks
5

What is computer program? Which are the two main categories of


software?

3+2

A program is a step-by-step set of instructions.


Operating systems. A collection of programs that interact directly with the
computers hardware.
Applications. Programs designed to perform useful tasks for humans.
2

5
What are the phases of system development life cycle?

Planning
Analysis
Design
Implementation
Support

5
What is feasibility? Write any two feasibility test.
Measure how suitable system development will be to the company
Four tests:
1

Operational
Schedule
Technical
Economic

If you know all requirements which software development model


you will use? Briefly explain

Waterfall model
(Student should mention some points like)
Needless to mention, it is a linear model and of course, linear models are
the most simple to be implemented.
The amount of resources required to implement this model is minimal.
One great advantage of the waterfall model is that documentation is
produced at every stage of the waterfall model development. This makes
the understanding of the product designing procedure simpler.
After every major stage of software coding, testing is done to check the
correct running of the code.
5

What is detail analysis for software project?

Study how current system work


Determine users wants, needs, and requirements
Recommend solution

What is the main difference between waterfall and RAD software


development models?

Why we need to write comments in code? List three types of


comments which are available in Java.

Task 2: Multiple choice question - (20 %) of the Assessment marks


Q
no

Evidence

Marks

2.1) Which of the following is a correct variable name in Java?


A) var2
B) @var
C) 2var
D) int

2
marks
each
questio
n

2.2) Consider the following program

public class TestA1 {


public static void main(String[] args) {
System.out.println(Assessment1);
}
}
What is the name of Java file containing this program?
A) main.java
B) TestA1.java
C) Assessment1.java
D) None of the above
2.3) Which of the following is a keyword in Java?
A) CHAR
B) integer_variable .
C) floating_variable.
D) else
2.4) Which of the following is valid Java statement?
A) 5 5 =0
B) 5 = 10-5
C) 10 = 5+5
D) None of the above
2.5) Which of the following is a correct declaration of an integer
variable x in Java
A ) int x;
B) x int;
C) integer variable x;
D) None of the above
2.6) What is the output of relational operators?
A) int
B) char

C) boolean
D) double
2.7) Which of the following are relational operators in Java?
A) <, >, <=, >=, ==
B) &&, ||, !!
C) +, -, *, /, %
D) None of the above
2.8) What will be the result of the expression
2+3*2-2+4/3
A) 7
B) 11
C) -7
D) None of the above
2.9) What will be the result of the expression
a%b
when a and b are of type int and their values are a = 10 and b = 6?
A)4
B) 1.66
C) 1
D) None of above
2.10) What is the output of following code

public class TestA11 {


public static void main(String[] args) {
int m=57;
boolean b = (m>=50);
if(b)
System.out.println(Yes);
else
System.out.println(No);
}
}
A) true
B) false
C) Yes
D) No

Tasks 3: Java programming and debugging- ( 40 %) of the Assessment marks


Q
no

Evidence

Marks

3.1

op1
true

op2
true

op1&&op2
true

!(op1||op2)
false

12
marks

false

true

false

false

1 mark
each

true

false

false

false

false

false

false

true

3.2
a

Java code segment


int laptop_price =1 00;
System.out.println(laptop_price);
System.out.println(laptop_price);
laptop_price = laptop_price+100;
System.out.println(laptop_price);
laptop_price = 0;
System.out.println(laptop_price is 0);

Output
1000
Laptop_price
1100
Laptop_price is 0

int rent = 50, transport =20, days =10;


int t_rent = rent * days;
int t_transport = transport * days;
int avg = t_rent + t_transport/ days;
int total = rent + transport* days;
System.out.println(t_rent);
System.out.println(t_transport);
System.out.println(avg);
System.out.println(total);

int n1=50, n2=100, n3 = -20;


int con=0;
if( (n1>20) &&(n1<70) )
con = con +10;
else
con = con -10;
System.out.println(con);
if( (n2>100) &&(n2<170) )
con = con +2;
else
con = con -2;
System.out.println(con);
if((n3>100) || (n3<0))
con = con +6
else
con = con -3;
6

500
200
70
250

14
marks
7
marks
each

System.out.println(con);

3.3

14
marks

Java code
a
public class Test {
public static void main(String[] args)
{
doubleVariable x=10.2;
System.out.println(x);
}}
}
There are two bugs in code double variable
is not data type
And there is one extra }

public class Test {


public static void main(String[] args)
{
double a1_marks = 20.0;
double a2_marks = 40.5;
System.out.println(a1_marks);
System.out.println(a2_marks);
int average = a1_marks +
a2_marks/2;
System.out.println(average);
}
}
Two problem in code double value is assign to integer variable
and concatenation operator is missing in display statement

public class {
public static void main(String[] args)
{
int x= 10;
int y;
if(y > x){
System.out.println(x);
else
System.out.println(y);
}
7

7
marks
each

}
}
.

Das könnte Ihnen auch gefallen