No.
of pages - 14 (M)
MARKING SCHEME
PRE-BOARD EXAMINATION (2024-25)
CLASS : XII
SUBJECT: COMPUTER SCIENCE (083)
Time Allowed : 3 hours Maximum Marks : 70
SECTION A
(1 mark to be awarded for every correct answer)
1. False 1
2. C. len( ) 1
len is a built-in function in Python, not a keyword.
3. D. pop( ) 1
4 B. ORDER BY
5 1
6. C. Star 1
7 1
8 C. Month.pop(3) 1
1 XII-COMPUTER SC.-M
9 C. DROP TABLE 1
10 A. The program terminates abruptly. 1
11 C. f=open(r”c:doe\exam.dat”,”wb+”) 1
12 B. Underflow 1
13 A. Row 1
14 A. Details of all the employees whose department is IT and salary is 1
greater than 55000.
15 D. Values 1
16 C. 30 1
17 C. HTTPS 1
18 B. It automatically closes the file when done. 1
19 D. Radio waves 1
Assertion and Reason:
In the following questions, A statement of Assertion (A) is followed
by a statement of Reason (R). Mark the correct choice as:
2 XII-COMPUTER SC.-M
A) Both A and R are true and R is correct explanation of A
B) Both A and R are true but R is not correct explanation of A
C) A is true but R is false
D) A is false but R is true
20 C. A is true but R is false 1
21 A. Both A and R are true and R is correct explanation of A 1
SECTION B
22. Membership operators are in and not in. 2
Purpose: the membership operator is used to check for the presence of a
value within a sequence (such as a list, tuple, string, or set).
1 mark for name of membership operators.
1 mark for purpose
23. 2
.33 mark for each correction
3 XII-COMPUTER SC.-M
24. 2
½ marks for function header and calling the function
1 mark for the logic of copying the content to another file.
½ mark for closing the files.
OR
½ mark for function header and display result
½ marks for file opening
1 mark for logic of counting lines starting from digit.
25. A and C are correct options (½ mark for each correct option) 2
Possible values of d: 1, 2, 3, 4, 5 ( .4 mark for each correct possible
value)
4 XII-COMPUTER SC.-M
26. 2
A.
B. (Because insert function does not return anything)
1 mark for each correct option
27. A. % and _ are two wild card operators used in SQL for pattern 2
matching.
½ mark for the name of each wild card operator = 1 mark
OR
Order by
1 mark for correct clause name
B. ALTER TABLE Student ADD Grade VARCHAR(2);
OR
SELECT COUNT(*) FROM Student;
1 mark for correct query
28. XML: Extensible Markup Language 2
Wi-Fi: wireless Fidelity
1 mark for each correct answer = 2 marks
5 XII-COMPUTER SC.-M
OR
A. Star Topology
B. Bus Topology
SECTION C
29 3
½ mark for function header
½ mark for file opening with correct name and in correct mode.
½ mark for reading line
½ mark for split
½ mark for correct condition
½ mark for correct result
OR
6 XII-COMPUTER SC.-M
½ mark for function header
½ mark for file opening and using correct mode
2 marks for correct logic
30. 3
1.5 mark for the correct logic of push function
½ mark for use of underflow condition in display function
1 mark for display correct output in display function
7 XII-COMPUTER SC.-M
OR
1 mark for correct logic in push_multiple_of_3( ) function.
½ marks for checking the stack is empty or not in
pop_multiple_of_3( ) function.
½ mark for pop one element from the pop_multiple_of_3 ( )
function
½ mark for checking the stack is empty in display_stack( ) function
½ mark for display each element in correct order in display_stack( )
function.
8 XII-COMPUTER SC.-M
31. 3
3 marks for correct output
OR
3 marks for correct output
SECTION D
32. A. 4
1. SELECT Name FROM STUDENT WHERE Marks > 90;
2. SELECT COUNT(*) FROM STUDENT WHERE Class = 12;
3. SELECT Name FROM STUDENT WHERE Name LIKE 'S%';
4. SELECT * FROM STUDENT WHERE Class = 12 AND Marks
> 90;
1 mark for each correct query
OR
B.
1.
9 XII-COMPUTER SC.-M
2.
3.
4.
33. 4
½ mark for import csv module
½ mark for opening file with correct name and in correct mode.
1 mark for correct logic of adding data into the file.
1 mark for reading data from csv file.
1 mark for correct condition and display the result.
10 XII-COMPUTER SC.-M
34. A. SELECT s.StudentID, s.Name, s.Age, s.Class, s.Marks FROM 4
STUDENT s, COURSE c WHERE s.Section = c.Section AND
c.Section = 'A';
B. SELECT s.Name FROM STUDENT s, COURSE c WHERE
s.Section = c.Section AND c.Course_Name = 'Science';
C. SELECT AVG(s.Marks) AS AverageMarks FROM STUDENT s,
COURSE c WHERE s.Section = c.Section AND c.Section = 'B';
D. i. UPDATE COURSE SET Fee = Fee * 1.15 WHERE Section = 'C';
OR
ii. UPDATE STUDENT SET Marks = Marks * 1.10 WHERE Class =
12 AND Section = 'B';
35. 4
11 XII-COMPUTER SC.-M
½ mark for import statement
½ mark for connection establishment statement
½ to create cursor object
1 mark for adding/ inserting data.
½ marks for fetching data from table
1 mark for correct result
SECTION E
36. A. 5
½ mark for function header
½ mark for opening file in correct mode
½ mark for take input from user
1 mark for correct use of dump function
Total 2.5 marks
12 XII-COMPUTER SC.-M
B.
½ mark for function header
½ mark for opening file in correct mode
½ mark for reading file using load function
½ mark for condition checking
½ mark for return the result
37. A. Management Block 5
B.
13 XII-COMPUTER SC.-M
C. Repeater not required because the distance is less than 100 meters.
D. Management Block
E. i. Twisted pair cable
OR
ii. Fiber optics cable
14 XII-COMPUTER SC.-M