In this article we are going to share ITI COPA Practical Previous Year Question Paper for Examination 2024. This Solved ITI Copa Practical exam paper is very important. iti copa practical question paper, iti copa practical exam paper and iti copa practical file pdf.
ITI Copa Practical Question Paper with Solution
NCVT
Computer Operator and Programming Assistant
Practical
Max Marks: 250 Time: 8 Hrs
Note: Attempt all questions. Each Question carries equal marks.
Q1: Create a chart for marks sheet using spreadsheet with date validation,(Grade, Rank must be included).
Q2. Create a poerpoint presentation of:
a. at lest five slides to learn impact and non impact printers.
b, apply the slide animation, trasntition and background and set slide duration.
Q3. Create a simple calculator using HTML, CSS and Javascript.
Q4. Create a database names “school” and perform the following tasks:
a. create a table named “student” having following table structure:
Field name | Data Type | Description |
Class | Number | |
Section | Text | |
Roll no | Number | |
Name | Text | 40 Character long |
Status | Look up Wizard | Two Values “Senior”, “Junior” |
Photo | OLE Object | Photos of students |
Dob | Date/Time | Date of Birth of Students |
Remarks | memo |
c.prepare a query to display all records and name should be in assecnding order.
d. Prepare a query named “senior” to display records including fields name, class, section, roll no, status, photo and value of status must be “senior”
e. Prepare a form of above query “senior”.
F. Prepare a report of all the fields of above table.
Q5. Write a program in java to check whether a given number is composite or prime.
OR
Write a program i python to find the sum of digits of n positive.
Solution: COPA Practical Paper
Q3. Create a simple calculator using HTML, CSS and Javascript.
<html>
<head>
<title>
Simple Calculator
</title>
<style>
body { font-family: Arial, sans-serif; display: flex; justify-content:
center; align-items: center; height: 100vh; margin: 0; background-color:
#f0f0f0; } .calculator { background-color: #333; padding: 20px; border-radius:
10px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); } #display { width:
100%; padding: 15px; font-size: 24px; text-align: right; border: none;
border-radius: 5px; margin-bottom: 10px; background-color: #222; color:
white; } .buttons { display: grid; grid-template-columns: repeat(4, 1fr);
gap: 10px; } button { padding: 15px; font-size: 18px; border: none; border-radius:
5px; background-color: #444; color: white; cursor: pointer; transition:
background-color 0.3s; } button:hover { background-color: #555; } .equal
{ grid-column: span 2; background-color: #1abc9c; } .equal:hover { background-color:
#16a085; }
</style>
</head>
<body>
<div class="calculator">
<input type="text" id="display" disabled>
<div class="buttons">
<button onclick="clearDisplay()">
C
</button>
<button onclick="deleteLast()">
DEL
</button>
<button onclick="appendToDisplay('/')">
/
</button>
<button onclick="appendToDisplay('*')">
*
</button>
<button onclick="appendToDisplay('7')">
7
</button>
<button onclick="appendToDisplay('8')">
8
</button>
<button onclick="appendToDisplay('9')">
9
</button>
<button onclick="appendToDisplay('-')">
-
</button>
<button onclick="appendToDisplay('4')">
4
</button>
<button onclick="appendToDisplay('5')">
5
</button>
<button onclick="appendToDisplay('6')">
6
</button>
<button onclick="appendToDisplay('+')">
+
</button>
<button onclick="appendToDisplay('1')">
1
</button>
<button onclick="appendToDisplay('2')">
2
</button>
<button onclick="appendToDisplay('3')">
3
</button>
<button onclick="appendToDisplay('0')">
0
</button>
<button onclick="appendToDisplay('.')">
.
</button>
<button onclick="calculateResult()" class="equal">
=
</button>
</div>
</div>
<script>
function clearDisplay() {
document.getElementById('display').value = '';
}
function deleteLast() {
let currentValue = document.getElementById('display').value;
document.getElementById('display').value = currentValue.slice(0, -1);
}
function appendToDisplay(value) {
document.getElementById('display').value += value;
}
function calculateResult() {
let expression = document.getElementById('display').value;
try {
let result = eval(expression);
document.getElementById('display').value = result;
} catch(e) {
alert('Invalid Expression');
clearDisplay();
}
}
</script>
</body>
</html>
Output:
Q5. Write a program in java to check whether a given number is composite or prime.
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// Input: Asking the user to enter a number
System.out.print("Enter a number: ");
int number = scanner.nextInt();
// If the number is less than 2, it is neither prime nor composite
if (number < 2) {
System.out.println(number + " is neither prime nor composite.");
} else {
// Check if the number is prime or composite
boolean isPrime = true;
// Loop starts from 2 and goes up to the square root of the number
for (int i = 2; i <= Math.sqrt(number); i++) {
if (number % i == 0) {
isPrime = false;
break;
}
}
// Output: Prime or Composite
if (isPrime) {
System.out.println(number + " is a prime number.");
} else {
System.out.println(number + " is a composite number.");
}
}
scanner.close();
}
}
Output:
Enter a number: 23
23 is a prime number.
Enter a number: 24
24 is a composite number.
Write a program i python to find the sum of digits of n positive.
# Function to calculate the sum of digits
def sum_of_digits(n):
sum_digits = 0
while n > 0:
digit = n % 10 # Extract the last digit
sum_digits += digit # Add it to the sum
n = n // 10 # Remove the last digit from the number
return sum_digits
# Input: Asking the user to enter a positive integer
n = int(input("Enter a positive integer: "))
# Output: Sum of digits
if n >= 0:
print(f"The sum of the digits of {n} is {sum_of_digits(n)}.")
else:
print("Please enter a positive integer.")
Output:
Enter a positive integer: 5
The sum of the digits of 5 is 5.