@@ -142,7 +142,7 @@ export default async function Home() {
To access past exam questions for your school, go to the{" "}
past questions archive page
{" "}
@@ -155,6 +155,31 @@ export default async function Home() {
will be redirected to a 404 error page.
+
+
+ How can I view and add my own answers to these past exam
+ questions?
+
+
+ To access and contribute answers to past exam questions, you
+ need an account with us. If you don't have one, please{" "}
+
+ create an account
+
+ . If you already have an account, simply{" "}
+
+ log in
+
+ . Remember, sharing wisdom and knowledge is valuable;
+ there's no benefit in keeping it to yourself.
+
+
How can I share my own past exam questions?
@@ -215,13 +240,13 @@ export default async function Home() {
Sign Up Now
Already have an account? Log In
diff --git a/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/csc201/page.jsx b/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/csc201/page.jsx
index d883de3..6f4f317 100644
--- a/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/csc201/page.jsx
+++ b/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/csc201/page.jsx
@@ -1,212 +1,226 @@
+import Questions from "@/components/Questions";
+import Answers from "@/components/Answers";
+
export default function CSC201() {
return (
-
-
-
- DEPARTMENT OF COMPUTER SCIENCE
-
- COLLEGE OF COMPUTING
-
- WESTERN DELTA UNIVERSITY
-
- Answer Question 1 and any other THREE Questions
-
-
-
-
-
-
-
-
Question 1 (Compulsory)
-
-
- State two reasons why we learn both structured programming and
- object-oriented programming.{" "}
- (4 marks)
-
-
- State two major application areas of Java programming language.{" "}
- (2 marks)
-
-
- State two major features of Unified Modeling Language (UML).{" "}
- (4 marks)
-
-
- The entity television can be regarded as a class with attributes
- and behaviours. Derive the attributes and behaviour of the class
- television using UML class diagram.{" "}
- (5 marks)
-
-
- Highlight the four vital components of a for loop.{" "}
- (4 marks)
-
-
- A person invests N100,000:00 in a savings account yielding 5%
- interest. Assuming that all the interest is left on deposit,
- calculate and display the amount of money in the account at the
- end of each year for 10 years. Write a Java application to
- determine the amounts using the formula:
-
-
- A = P(1+R)n
-
-
- where
-
- P is the original amount invested (i.e., the principal)
-
- R is the annual interest rate
-
- n is the number of years
- A is the amount on deposit at the end of the nth year.{" "}
- (6 marks)
-
-
-
+
+
+
Question 1 (Compulsory)
+
+
+ State two reasons why we learn both structured programming and
+ object-oriented programming.{" "}
+ (4 marks)
+
+
+
+ State two major application areas of Java programming language.{" "}
+ (2 marks)
+
+
+
+ State two major features of Unified Modeling Language (UML).{" "}
+ (4 marks)
+
+
+
+ The entity television can be regarded as a class with attributes and
+ behaviours. Derive the attributes and behaviour of the class
+ television using UML class diagram.{" "}
+ (5 marks)
+
+
+
+ Highlight the four vital components of a for loop.{" "}
+ (4 marks)
+
+
+
+ A person invests N100,000:00 in a savings account yielding 5%
+ interest. Assuming that all the interest is left on deposit,
+ calculate and display the amount of money in the account at the end
+ of each year for 10 years. Write a Java application to determine the
+ amounts using the formula:
+
+
+ A = P(1+R)n
+
+
+ where
+
+ P is the original amount invested (i.e., the principal)
+
+ R is the annual interest rate
+
+ n is the number of years
+ A is the amount on deposit at the end of the nth year.{" "}
+ (6 marks)
+
+
+
+
-
-
Question 2
-
-
- Define the following terms as used in Java development
- environment.
-
-
Javac.exe
-
Java.exe
-
- (4 marks)
-
-
- Why is the Java programming language platform independent?
- Illustrate with a diagram.{" "}
- (4 marks)
-
-
- What is a loop?{" "}
- (2 marks)
-
-
- Write a Java application that computes the sum of square of odd
- numbers between 1 and 50.{" "}
- (5 marks)
-
-
-
+
+
Question 2
+
+
+ Define the following terms as used in Java development environment.
+
+
Javac.exe
+
Java.exe
+
+ (4 marks)
+
+
+
+ Why is the Java programming language platform independent?
+ Illustrate with a diagram.{" "}
+ (4 marks)
+
+
+
+ What is a loop?{" "}
+ (2 marks)
+
+
+
+ Write a Java application that computes the sum of square of odd
+ numbers between 1 and 50.{" "}
+ (5 marks)
+
+
+
+
-
-
Question 3
-
-
- Define the following:
-
-
Local variable
-
Instance variable.
-
- (4 marks)
-
-
- What is a static method? Illustrate with one example.{" "}
- (4 marks)
-
-
- Write a method that converts a Fahrenheit temperature to Celsius
- temperature using the expression:{" "}
- Celsius = (Fahrenheit - 32) * 0.55{" "}
- (4 marks)
-
-
- Give the syntax of the while loop.{" "}
- (3 marks)
-
-
-
+
+
Question 3
+
+
+ Define the following:
+
+
Local variable
+
Instance variable.
+
+ (4 marks)
+
+
+
+ What is a static method? Illustrate with one example.{" "}
+ (4 marks)
+
+
+
+ Write a method that converts a Fahrenheit temperature to Celsius
+ temperature using the expression:{" "}
+ Celsius = (Fahrenheit - 32) * 0.55{" "}
+ (4 marks)
+
+
+
+ Give the syntax of the while loop.{" "}
+ (3 marks)
+
+
+
+
-
-
Question 4
-
-
- Define enhanced for loop.{" "}
- (2 marks)
-
-
- State one situation in which the use of the enhanced is valuable.
- (2 marks)
-
-
- Highlight three methods available in the predefined class called
- Arrays. (3 marks)
-
-
- Write a java program segment to illustrate each of the methods
- stated in (4c){" "}
- (6 marks)
-
-
- State two differences between primitive type and reference type.
- (2 marks)
-
-
-
+
+
Question 4
+
+
+ Define enhanced for loop.{" "}
+ (2 marks)
+
+
+
+ State one situation in which the use of the enhanced is valuable.
+ (2 marks)
+
+
+
+ Highlight three methods available in the predefined class called
+ Arrays. (3 marks)
+
+
+
+ Write a java program segment to illustrate each of the methods
+ stated in (4c){" "}
+ (6 marks)
+
+
+
+ State two differences between primitive type and reference type.
+ (2 marks)
+
+
+
+
-
-
Question 5
-
-
- Define the following as used in Java file processing:
-
-
Stream
-
Text file
-
Sequential file.
-
- (6 marks)
-
-
- Write a Java program that requests from the user matriculation
- number, total points earned, total units registered and compute
- the GPA using the expression:{" "}
- GPA = Total Points Earned / Total Units Registered.
- Write your output consisting of Matriculation No., Total Units,
- Total Points, and GPA to a file named honour.txt.{" "}
- (7 marks)
-
-
- Highlight two differences between a primitive variable and
- non-primitive variable.{" "}
- (2 marks)
-
-
-
+
+
Question 5
+
+
+ Define the following as used in Java file processing:
+
+
Stream
+
Text file
+
Sequential file.
+
+ (6 marks)
+
+
+
+ Write a Java program that requests from the user matriculation
+ number, total points earned, total units registered and compute the
+ GPA using the expression:{" "}
+ GPA = Total Points Earned / Total Units Registered.
+ Write your output consisting of Matriculation No., Total Units,
+ Total Points, and GPA to a file named honour.txt.{" "}
+ (7 marks)
+
+
+
+ Highlight two differences between a primitive variable and
+ non-primitive variable.{" "}
+ (2 marks)
+
+
+
+
-
-
Question 6
-
-
- Define an ArrayList. llustrate with an example.{" "}
- (4 marks)
-
-
- Define a static method. Illustrate with one example.{" "}
- (4 marks)
-
-
- The scores of ten students in a given examination are represented
- in a one-dimensional array as follows: 57 40 34 61 66 56 48 56 52
- 51. Write a Java program that initializes the scores, computes the
- total and average scores.{" "}
- (7 marks)
-
-
-
-
-
+
+
Question 6
+
+
+ Define an ArrayList. llustrate with an example.{" "}
+ (4 marks)
+
+
+
+ Define a static method. Illustrate with one example.{" "}
+ (4 marks)
+
+
+
+ The scores of ten students in a given examination are represented in
+ a one-dimensional array as follows: 57 40 34 61 66 56 48 56 52 51.
+ Write a Java program that initializes the scores, computes the total
+ and average scores.{" "}
+ (7 marks)
+
+
+
+
+
);
}
diff --git a/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/csc203/page.jsx b/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/csc203/page.jsx
index ac1afa4..e9d6e82 100644
--- a/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/csc203/page.jsx
+++ b/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/csc203/page.jsx
@@ -1,313 +1,331 @@
+import Questions from "@/components/Questions";
+import Answers from "@/components/Answers";
+
export default function CSC203() {
return (
-
-
-
- DEPARTMENT OF COMPUTER SCIENCE
-
- COLLEGE OF COMPUTING
-
- WESTERN DELTA UNIVERSITY
-
-
- First Semester Examination 2022/2023 SESSION
-
-
- CSC203 - Computer Programming II Time: 2hrs: 30mins
-
-
Answer Four (4) Questions
-
-
-
-
-
-
-
Question 1
-
-
- Briefly define the following:
-
-
Whitespace
-
Constants
-
Header files
-
- (4.5 marks)
-
+
+
+
Question 1
+
+
+ Briefly define the following:
+
+
Whitespace
+
Constants
+
Header files
+
+ (4.5 marks)
+
+
-
- Write a C++ program that displays "Welcome to C++
- Programming!" and "Computer Programming is an
- interesting endeavor!"{" "}
- (3 marks)
-
+
+ Write a C++ program that displays "Welcome to C++
+ Programming!" and "Computer Programming is an interesting
+ endeavor!"{" "}
+ (3 marks)
+
+
-
- Consider the following C++ program and use it to answer the
- question that follows:
-
-
- // This program computes the area of a circle
-
- #include <iosteam>
-
- #include <cmath>
-
- using namespace std;
-
- int main () {
-
- {" "}const float pi = 3.142;
-
- {" "}double radius, result, area, exponent = 2.0;
-
- {" "}cout >> "Enter the value of radius"
- >> endl;
-
- {" "}cin << radius;
-
- {" "}result = power (radius, exponent);
-
- {" "}cout >> "The area of the circie is "
- >> area;
-
- {" "}return 0;
-
- }
-
-
- Identify and correct at least ten (10) syntax errors in the given
- program (10 marks)
-
-
-
+
+ Consider the following C++ program and use it to answer the question
+ that follows:
+
+
+ // This program computes the area of a circle
+
+ #include <iosteam>
+
+ #include <cmath>
+
+ using namespace std;
+
+ int main () {
+
+ {" "}const float pi = 3.142;
+
+ {" "}double radius, result, area, exponent = 2.0;
+
+ {" "}cout >> "Enter the value of radius"
+ >> endl;
+
+ {" "}cin << radius;
+
+ {" "}result = power (radius, exponent);
+
+ {" "}cout >> "The area of the circie is "
+ >> area;
+
+ {" "}return 0;
+
+ }
+
+
+ Identify and correct at least ten (10) syntax errors in the given
+ program (10 marks)
+
+
+
+
-
-
Question 2
-
-
- Define the following programming terms:
-
-
comment
-
setw manipulator
-
variable name
-
increment operator
-
decrement operator
-
- (7.5 marks)
-
+
+
Question 2
+
+
+ Define the following programming terms:
+
+
comment
+
setw manipulator
+
variable name
+
increment operator
+
decrement operator
+
+ (7.5 marks)
+
+
-
- Give six (6) examples of valid variable names in C++ programming.{" "}
- (3 marks)
-
+
+ Give six (6) examples of valid variable names in C++ programming.{" "}
+ (3 marks)
+
+
-
- Suppose total_tax = avg_ _Tax * ++count; explain how
- a C++ compiler will execute the given statement{" "}
- (3 marks)
-
+
+ Suppose total_tax = avg_ _Tax * ++count; explain how a
+ C++ compiler will execute the given statement{" "}
+ (3 marks)
+
+
-
- Write a C++ program that generates the table below
-
-
-
-
Year
-
Profit
-
-
-
-
-
1950
-
500000000
-
-
-
1951
-
600000000
-
-
-
1952
-
700000000
-
-
-
- (4 marks)
-
-
-
+
+ Write a C++ program that generates the table below
+
+
+
+
Year
+
Profit
+
+
+
+
+
1950
+
500000000
+
+
+
1951
+
600000000
+
+
+
1952
+
700000000
+
+
+
+ (4 marks)
+
+
+
+
-
-
Question 3
-
-
- Using suitable examples, write explanatory notes on the following:
-
-
Relational operators
-
Loops
-
- (4 marks)
-
+
+
Question 3
+
+
+ Using suitable examples, write explanatory notes on the following:
+
+
Relational operators
+
Loops
+
+ (4 marks)
+
+
-
- Give the syntax of while and do loops{" "}
- (4.5 marks)
-
+
+ Give the syntax of while and do loops{" "}
+ (4.5 marks)
+
+
-
- Name four (4) arithmetic operators and describe them using
- examples (4 marks)
-
+
+ Name four (4) arithmetic operators and describe them using examples{" "}
+ (4 marks)
+
+
-
- Write a C++ program using a while loop that asks a user to enter
- numbers, calculates their sum, prints the result until the number
- entered is negative{" "}
- (5 marks)
-
-
-
+
+ Write a C++ program using a while loop that asks a user to enter
+ numbers, calculates their sum, prints the result until the number
+ entered is negative{" "}
+ (5 marks)
+
+
+
+
-
-
Question 4
-
-
- Highlight the role of decisions in computer programming{" "}
- (2 marks)
-
+
+
Question 4
+
+
+ Highlight the role of decisions in computer programming{" "}
+ (2 marks)
+
+
-
-
-
- With the aid of a flowchart only, describe the working
- principle of if...else statement{" "}
- (3.5 marks)
-
-
- Write down the syntax of a switch statement{" "}
- (4 marks)
-
-
-
+
+
+
+ With the aid of a flowchart only, describe the working principle
+ of if...else statement{" "}
+ (3.5 marks)
+
+
+
+ Write down the syntax of a switch statement{" "}
+ (4 marks)
+
+
+
+
-
- State three (3) examples of logical operators and show how they
- are represented in C++{" "}
- (3 marks)
-
+
+ State three (3) examples of logical operators and show how they are
+ represented in C++{" "}
+ (3 marks)
+
+
-
- Write a C++ program that obtains test score and assigns grade
- according to the following information. The test score is an
- integer from 1 to 100
-
-
-
-
Test Score
-
Grade
-
-
-
-
-
70 and above
-
Distinction
-
-
-
60 - 69
-
Merit
-
-
-
50-59
-
Pass
-
-
-
Below 50
-
Fail
-
-
-
- (5 marks)
-
-
-
+
+ Write a C++ program that obtains test score and assigns grade
+ according to the following information. The test score is an integer
+ from 1 to 100
+
+
+
+
Test Score
+
Grade
+
+
+
+
+
70 and above
+
Distinction
+
+
+
60 - 69
+
Merit
+
+
+
50-59
+
Pass
+
+
+
Below 50
+
Fail
+
+
+
+ (5 marks)
+
+
+
+
-
-
Question 5
-
-
- What is a Structure?{" "}
- (2.5 marks)
-
+
+
Question 5
+
+
+ What is a Structure?{" "}
+ (2.5 marks)
+
+
-
-
-
- State the syntax of a structure{" "}
- (3 marks)
-
-
- Write a program that defines a structure, assigns values to
- the structure and displays the values{" "}
- (5 marks)
-
-
-
+
+
+
+ State the syntax of a structure{" "}
+ (3 marks)
+
+
+
+ Write a program that defines a structure, assigns values to the
+ structure and displays the values{" "}
+ (5 marks)
+
+
+
+
-
-
-
- Define Enumeration{" "}
- (2 marks)
-
-
- Give the syntax of enumeration and write an enumeration whose
- values are months the year{" "}
- (5 marks)
-
-
-
-
-
+
+
+
+ Define Enumeration{" "}
+ (2 marks)
+
+
+
+ Give the syntax of enumeration and write an enumeration whose
+ values are months the year{" "}
+ (5 marks)
+
+
+
+
+
+
-
-
Question 6
-
-
- Define a function{" "}
- (2 marks)
-
-
-
-
- Give two (2) reasons for using functions in computer
- programming{" "}
- (2 marks)
-
-
- What is an argument?{" "}
- (2 marks)
-
-
- Name three (3) parameter passing techniques to functions{" "}
- (3 marks)
-
-
-
-
-
-
- Define recursion{" "}
- (2 marks)
-
-
- Write a recursive function that adds a range of numbers by
- adding two numbers each time it is called by a main program{" "}
- (6 marks)
-
-
-
-
-
-
-
+
+
Question 6
+
+
+ Define a function{" "}
+ (2 marks)
+
+
+
+
+
+ Give two (2) reasons for using functions in computer programming{" "}
+ (2 marks)
+
+
+
+ What is an argument?{" "}
+ (2 marks)
+
+
+
+ Name three (3) parameter passing techniques to functions{" "}
+ (3 marks)
+
+
+
+
+
+
+
+ Define recursion{" "}
+ (2 marks)
+
+
+
+ Write a recursive function that adds a range of numbers by
+ adding two numbers each time it is called by a main program{" "}
+ (6 marks)
+
+
+
+
+
+
+
);
}
diff --git a/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/csc209/page.jsx b/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/csc209/page.jsx
index 08826c2..a8b3a4d 100644
--- a/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/csc209/page.jsx
+++ b/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/csc209/page.jsx
@@ -1,246 +1,263 @@
+import Questions from "@/components/Questions";
+import Answers from "@/components/Answers";
+
export default function CSC209() {
return (
-
-
-
- DEPARTMENT OF COMPUTER SCIENCE
-
- COLLEGE OF COMPUTING
-
- WESTERN DELTA UNIVERSITY
-
- Define the following Assembly language terms:
-
-
Mnemonics
-
Labels
-
Operands
-
- (4.5 marks)
-
+
+
Question 3
+
+
+ Define the following Assembly language terms:
+
+
Mnemonics
+
Labels
+
Operands
+
+ (4.5 marks)
+
+
-
- Consider the Assembly language code below and use it to answer the
- question that follows:
-
- READ X
- ADD Y
- STORE Z
- PRINT Z
- HALT
-
- Explain the code, one line after the other{" "}
- (3 marks)
-
+
+ Consider the Assembly language code below and use it to answer the
+ question that follows:
+
+ READ X
+ ADD Y
+ STORE Z
+ PRINT Z
+ HALT
+
+ Explain the code, one line after the other{" "}
+ (3 marks)
+
+
-
- Write explanatory notes on the following:
-
-
High level languages
-
Fifth generation languages
-
- (4 marks)
-
+
+ Write explanatory notes on the following:
+
+
High level languages
+
Fifth generation languages
+
+ (4 marks)
+
+
-
-
-
- Convert 10010 to Base 8{" "}
- (2 marks)
-
-
- Convert 75110 to Base 16{" "}
- (2 marks)
-
-
- Convert 2210 to Base 2{" "}
- (2 marks)
-
-
-
-
-
+
+
+
+ Convert 10010 to Base 8{" "}
+ (2 marks)
+
+
+
+ Convert 75110 to Base 16{" "}
+ (2 marks)
+
+
+
+ Convert 2210 to Base 2{" "}
+ (2 marks)
+
+
+
+
+
+
-
-
Question 4
-
-
- Explain the following data storage representations:
-
-
Binary Coded Decimal
-
Unsigned representation
-
Signed representation
-
- (6 marks)
-
-
-
-
- Store 200 and 260 in a 16-bit memory location using unsigned
- representation{" "}
- (4 marks)
-
-
- Store 30 and -40 in an 8-bit memory location using signed
- representation
- (4 marks)
-
-
- Give the BCD equivalent of 1827 and 124{" "}
- (3.5 marks)
-
-
-
-
-
+
+
Question 4
+
+
+ Explain the following data storage representations:
+
+
Binary Coded Decimal
+
Unsigned representation
+
Signed representation
+
+ (6 marks)
+
+
+
+
+
+ Store 200 and 260 in a 16-bit memory location using unsigned
+ representation{" "}
+ (4 marks)
+
+
+
+ Store 30 and -40 in an 8-bit memory location using signed
+ representation
+ (4 marks)
+
+
+
+ Give the BCD equivalent of 1827 and 124{" "}
+ (3.5 marks)
+
+
+
+
+
+
-
-
Question 5
-
-
- Compute the following:
-
-
NOT 101101010111
-
101001011 OR 010110100
-
10000 AND 01011
-
101110111011 XOR 001111011101
-
- (6 marks)
-
-
- Explain the following shift operations:
-
-
logical shift left
-
logical shift right
-
circular left shift
-
circular right shift
-
- (6 marks)
-
-
-
-
- Perform shift left operation on 1000110{" "}
- (2 marks)
-
-
- Carry out shift arithmetic right on 01100110{" "}
- (2 marks)
-
-
- Calculate logical shift right on 11001100{" "}
- (1.5 marks)
-
-
-
-
-
+
+
Question 5
+
+
+ Compute the following:
+
+
NOT 101101010111
+
101001011 OR 010110100
+
10000 AND 01011
+
101110111011 XOR 001111011101
+
+ (6 marks)
+
+
+
+ Explain the following shift operations:
+
+
logical shift left
+
logical shift right
+
circular left shift
+
circular right shift
+
+ (6 marks)
+
+
+
+
+
+ Perform shift left operation on 1000110{" "}
+ (2 marks)
+
+
+
+ Carry out shift arithmetic right on 01100110{" "}
+ (2 marks)
+
+
+
+ Calculate logical shift right on 11001100{" "}
+ (1.5 marks)
+
+
+
+
+
+
-
-
Question 6
-
-
- Define machine architecture{" "}
- (2 marks)
-
-
- Draw the Von Neuman model of a conventional digital computer and
- briefly explain its Principle of operation{" "}
- (5 marks)
-
-
- Write explanatory notes on the following:
-
-
Central Processing Unit
-
Data registers
-
Instruction registers
-
Program counter
-
Memory system
-
- (7.5 marks)
-
-
- State three (3) functions of the processor{" "}
- (3 marks)
-
+ Draw the Von Neuman model of a conventional digital computer and
+ briefly explain its Principle of operation{" "}
+ (5 marks)
+
+
+
+ Write explanatory notes on the following:
+
+
Central Processing Unit
+
Data registers
+
Instruction registers
+
Program counter
+
Memory system
+
+ (7.5 marks)
+
+
+
+ State three (3) functions of the processor{" "}
+ (3 marks)
+
+
+
+
+
);
}
diff --git a/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/mth211/page.jsx b/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/mth211/page.jsx
index 722edfa..2e5c5cb 100644
--- a/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/mth211/page.jsx
+++ b/src/app/past-questions-archive/wdu/compsci/2022_2023/200-level/1st-semester/mth211/page.jsx
@@ -1,268 +1,275 @@
+import Questions from "@/components/Questions";
+import Answers from "@/components/Answers";
+
export default function MTH211() {
return (
-
-
-
- DEPARTMENT OF COMPUTER SCIENCE
-
- COLLEGE OF COMPUTING
-
- WESTERN DELTA UNIVERSITY
-
-
- First Semester Examination 2022/2023 SESSION
-
-
MTH211 - Statistics Time: 1hr: 30mins
-
Answer Four (4) Questions
-
-
-
-
-
-
-
Question 1
-
-
- Computer the spearman rank correlation coefficient between these
- course MTH211 and CSC 201 for the given scores sand predict the
- relationship between them{" "}
-
-
-
-
-
- MTH211
-
-
35
-
40
-
33
-
65
-
57
-
61
-
28
-
14
-
47
-
68
-
-
-
- CSC201
-
-
7
-
8
-
6
-
7
-
9
-
7
-
5
-
9
-
4
-
2
-
-
-
-
- (10 marks)
-
-
- State the axium of probability{" "}
- (3 marks)
-
+ Computer the spearman rank correlation coefficient between these
+ course MTH211 and CSC 201 for the given scores sand predict the
+ relationship between them{" "}
+
+
+
+
+
+ MTH211
+
+
35
+
40
+
33
+
65
+
57
+
61
+
28
+
14
+
47
+
68
+
+
+
+ CSC201
+
+
7
+
8
+
6
+
7
+
9
+
7
+
5
+
9
+
4
+
2
+
+
+
+
+ (10 marks)
+
+
+
+ State the axium of probability{" "}
+ (3 marks)
+
+
- A random variable X is defined as the sum of
- faces when a pair of dice is thrown find
-
-
- The Sample points{" "}
- (5 marks)
-
-
- Expected value of X{" "}
- (5 marks)
-
-
- Var (x){" "}
- (7.5 marks)
-
-
-
-
-
+
+
Question 2
+
+
+ A random variable X is defined as the sum of faces
+ when a pair of dice is thrown find
+
+
+ The Sample points{" "}
+ (5 marks)
+
+
+
+ Expected value of X{" "}
+ (5 marks)
+
+
+
+ Var (x){" "}
+ (7.5 marks)
+
+
+
+
+
+
-
-
Question 3
-
-
- The data below rotates the weekly maintenance cost (N) to the age
- (in month) of ten machines of formula types in a manufacturing
- company
-
-
-
-
-
- Age (X)
-
-
5
-
10
-
15
-
20
-
30
-
30
-
30
-
50
-
50
-
60
-
-
-
- Cost (Y)
-
-
19
-
24
-
25
-
30
-
31
-
33
-
30
-
30
-
35
-
39
-
-
-
-
-
-
- Find the least square regression line of maintenance cost (y)
- on age (X)
-
-
- Predict the maintenance cost for the machine of this type
- which is 40 months old
-
-
- (17.5 marks)
-
-
-
+
+
Question 3
+
+
+ The data below rotates the weekly maintenance cost (N) to the age
+ (in month) of ten machines of formula types in a manufacturing
+ company
+
+
+
+
+
+ Age (X)
+
+
5
+
10
+
15
+
20
+
30
+
30
+
30
+
50
+
50
+
60
+
+
+
+ Cost (Y)
+
+
19
+
24
+
25
+
30
+
31
+
33
+
30
+
30
+
35
+
39
+
+
+
+
+
+
+ Find the least square regression line of maintenance cost (y) on
+ age (X)
+
+
+ Predict the maintenance cost for the machine of this type which
+ is 40 months old
+
+
+ (17.5 marks)
+
+
+
+
-
-
Question 4
-
-
- Suppose A and B are two events, not necessarily independent or
- mutually exclusive and suppose they are related. Use on diagram to
- show that{" "}
-
- P(AUB) = P(A) * P(B) - P(AnB)
- {" "}
- (7 marks)
-
-
- Three out of every batch of 30 manufactures articles pf a company
- are known to be defective if 5 of the articles are picked at
- random. What is the probability that:
-
-
Exactly 2
-
Not more than 2
-
at most 4 are defective
-
- (10.5 marks)
-
-
-
+
+
Question 4
+
+
+ Suppose A and B are two events, not necessarily independent or
+ mutually exclusive and suppose they are related. Use on diagram to
+ show that{" "}
+
+ P(AUB) = P(A) * P(B) - P(AnB)
+ {" "}
+ (7 marks)
+
+
+
+ Three out of every batch of 30 manufactures articles pf a company
+ are known to be defective if 5 of the articles are picked at random.
+ What is the probability that:
+
+
Exactly 2
+
Not more than 2
+
at most 4 are defective
+
+ (10.5 marks)
+
+
+
+
-
-
Question 5
-
-
- The continuous random variable X has probability density function
- (pdf) given by:
-
-
F(X) =
-
- {
-
- 1/b-a, a < x < b
-
- O, otherwise
-
+
+
Question 5
+
+
+ The continuous random variable X has probability density function
+ (pdf) given by:
+
+
F(X) =
+
+ {
+
+ 1/b-a, a < x < b
+
+ O, otherwise
- Find the E(X) items{" "}
- (9.5 marks)
-
-
- A manufacturer produces items such that 20 percent are defective
- and 80 percent are non defective. If a defective items is
- produced, the manufacturer loses N5 while a non defective items
- fetches a profit of N20. Find the expected value of the profit per
- items (8 marks)
-
-
-
+
+ Find the E(X) items{" "}
+ (9.5 marks)
+
+
+
+ A manufacturer produces items such that 20 percent are defective and
+ 80 percent are non defective. If a defective items is produced, the
+ manufacturer loses N5 while a non defective items fetches a profit
+ of N20. Find the expected value of the profit per items{" "}
+ (8 marks)
+
+
+
+
-
-
Question 6
-
-
- State the properties of variance{" "}
- (7 marks)
-
+
+
Question 6
+
+
+ State the properties of variance{" "}
+ (7 marks)
+
+
-
- The discrete random variable X has a probability non function
- given in the table below. Find var (X)
-
-
-
-
-
- X = X
-
-
0
-
1
-
2
-
3
-
-
-
- P(X) = P(X-X)
-
-
- 1/8
-
-
- {" "}
- 3/8
-
-
- {" "}
- 3/8
-
-
- {" "}
- 1/8
-
-
-
-
-
- (10.5 marks)
-
-
-
-
-
+
+ The discrete random variable X has a probability non function given
+ in the table below. Find var (X)
+