0% found this document useful (0 votes)
23 views

cs paper?

This document is a question paper for a Class XII Computer Science pre-board examination, containing 37 questions divided into five sections with varying marks. It includes instructions for students regarding the examination process, question types, and programming language requirements. The paper covers topics such as Python programming, SQL queries, and data structures.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
23 views

cs paper?

This document is a question paper for a Class XII Computer Science pre-board examination, containing 37 questions divided into five sections with varying marks. It includes instructions for students regarding the examination process, question types, and programming language requirements. The paper covers topics such as Python programming, SQL queries, and data structures.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 11
Rolt No. [ I I SAHODAYA PRE BOARD EX. + Please check that this question paper contains 11 printed Pages © Set number given on the right-hand side of the question paper S76) page of the answer book by the candidate, ‘¢ Check that this question paper contains 37 questions © Write down the Serial Number of the question inthe I eft sideof the margin before ats it ‘¢ 15 minutes time has been allotted to read this que prior to the commencement ofthe svi paper. The question paper will BE distributed 15 minutes ‘examination, The students will read the question paper only and will not write any ans the answer script during the period. ‘Students should not write anything in the question paper. CLASS - XII OMPUTER SCIENCE (083) Maximum Marks: 70 SUBJECT : C Time Allowed: 3 hours ‘General Instructions: ‘« This question paper contains 37 questions. © Allquestions are compulsory. However, intern: “Attempt only one of the choices in such questions. ns- A, B, C, D and E. (J to 21), Each question carries 1 Mark. al choices have been provided in some questions. «The paper is divided into 5 Sectio ‘© Section A, consists of 21 questions tSeetion B, consists of 7 questions (22 to 28). Each question carries 2 Marks, + Section C, consists of 3 questions (29 to 31). Each question carries 3 Marks, + Section D, consists of 4 questions (32 to 35). Each question carries 4 Marks. Section E, consists of2 questions (36 to 37), Bach question carries 5 Marks, = All programming questions are to be answered using Python Language only. «Incase of MCQ, text of the correct answer should also be written @ SECTION - A (21 x 1 = 21 Marks) Marks No 1, _ | State True/False i “When different types of data is used in an expression the interpreter converts the resultant type of it to higher type explicitly.” 2, | What will be the output ofthe following command? rm print(*’ join((‘blue’, ‘green’, ‘red’))) (Ay bluet green*red’) (B) (blue’, *”, ‘green’, **”, red”) (O)bluetgreen*red (D)Error and False or True)) print(not False or True of False (AyTrue (B) False (© Error ‘What is the output of the expression? ‘Str= “CBSE Examination 2025" print(Str-parttion(“2")) (D) None of (A) (CBSE Examination ° “025") (B) (CBSE Examination *, ‘2’, 025") (CUCBSE Examination” ,°2',°025"] (D) Enor %, _ | Select the correct output of the following string ‘operation: (1) g="Cloud@Computing” ero eo pringsf-2::-2) (AYafpo@ul’ (B) ntpo@u’__(C) 'w@opt? (D) 'u@optn' 6 | What she output of the following code: fi a6 Ao,bbok’50.95,item'13,13] 6) resI=T[6].copy0, res2=T[7] resI[O]*=2 print(T[6}+Hisi(res2)) (A) (24, 13,3, 4] (LBZ 13.3.4) (©) 12, 13,3,4 (D) Error in the code fragment 7. | Which of the following statement will generate any exception upon execution? | [1] (A) {28:'Feb',30:'Apr'}.get(30) (B)28:'Feb',30:'Apr’} update({31:'Jan"}) (©) (28:!Feb'30:'Apr').values() (D) {28:'Feb',30:'Apr’} #2 8 | if L=[10, 20, 30, 40, 50) What will be the output of the following command? 2 print(L.remove(35)) (WelueBrror (B) TypeError Ke) None, (D)No output, it won’t generate any error 9. | A table which has one Primary Key, three Altemate Keys and 2 Foreign K How many Candidate Keys will this table have? ot oe @B) 6 © s © 3 aE 10. | Write appropriate statement for the following missing stat output as:- “consists of going from failure to failure without loss of ‘enthusiasm’ open(Grocery.txt', wt!) 4 ; pee FavriteSuctess consists of going fom failure to failure without oss of, enthusiasm) “'f Wg 6 ee FM print(firead() ficlose() syst (A) fiseek(8,2-2) (B) fseek(8,0) (C) fseek(8) (DYAll of the above. Ti. _| State whether the following statement is True or False: i} “While writing a program all exceptions must be handled as the system cannot handle Exceptions on it’s own.” 12. | What will be the output of the following code? 1 = def funl (x, y): ge) global g ge gaxty ee retum g xn def fun2.( m, n) oa global g rates G g=m-n retum g x= fun! (3,4) fun2( x, 10) print(g) (A)-3 (B)3 (AT (@)o ee Which command of SQL is used to drop constraints to an existing relation? t) 14, | What will be the output of the query? tf) SELECT * FROM EMPLOYEE WHERE EMP_NAME LIKE*.O___*; (A) Details of all employees whose names contains ‘O” in the second place. (B) Details of all employees whose names contains ‘0’, (©) Details of all employees whose names contains ‘O” in the second place and is of any number of characters, fails of all employees whose names contains ‘O" in the second place and 5 characters. [15. _| Which data type is used for dynamic alloc nSOL? ion of memory in SQL? (D) INT (A) CHAR (B) VARCHAR (©) DATE g 16. 17, Which is a standard protocol used for sending ¢-1 ignore? ate function count( ) ignore” (B) characters What values does the aggreg (A) integers iti ; NULL values (repetitive values ©) i a P (A) FTP (ByTTP —(C) IMAP. (p) SMT jar | i ismits the Which out of the following Network devices regenerates and retran whole signal? , (QModem —_(B) Hub (©) Repeater (D) Bridge 1] 19. In which switching technique, first the complete physical connection between two computers is established and then data are transmitted from the source computer to the destination computer? Q.20 and Q.21 are Assertion (A) and Reason (R) based questions. Mark the correct choice as given below: (A) Both A and R are true and R is the correct explanation of A. (B) Both A and R are true and R is not the correct explanation of A. (©) Ais true but R is false. (D) A is false but R is true. 20. ‘Assertion (A) : To use function from a particular module, we need to import the module. Reason (R) + import statement can be written anywhere in the program, before using a function from that module 1) 2. Assertion (A) : The HAVING clause of MySQL can work only with GROUP BY. Reason (R) : The HAVING clause is used to filter groups formed with GROUP BY clause, Q.No. SECTION - B (7 x 2= 14 Marks) Marks 22, What is the difference between the formal parameter and actual parameter? Explain it with suitable examples, QI 23. In the following expression: 243>=5 and 6 © Name the different types of python operators used in the above expression. (i) Arrange the operators given in the expression as per their precedence order RI 24, Ei ,2,9,8], then IF L1=[23,65,78, 12,65,49,65,10,20,65] and 12(1,23.45,6.2,9.8] (Answer using built-in functions only) () (A) Write a statement to add 45 at the end of list L1. OR (B) Write a statement to add 15 in the index number 5 of the list L2. (Il) (A) Write a statement to delete the last element from the list L2. OR (B) Write a statement to find the maximum value from the list L1. ‘What possible output(s) are expected to be displayed on screen at the time of execution of the program from the following code? Also, write what will be the minimum value of the variable first and the maximum value of the variable third. fromrepdom.importrendint., LST={5,1 ),25,30,35,40,45 first = randint(3,8)—1 ~~ second = randint(4,9) ~ 2 ‘third = randint(6,11) ~3 print(LST[first],"#", LST[second],"#", LST[third],"#") (A) 20#25#25# (B) 307404704 (C) 15#60#70# (DyA5#40#60H The following code that consists of a function and user input part is supposed to return the factors of a number supplied as a parameter. Since there are errors in both syntax and logical errors it’s not showing the correct result, Your task is to identify and underline the errors. def problem(n): myList = () for i in range(1, n+1): ifn //i=0: myList,append(i) retum myLis problem(4); [2] 27. @ (A)What constraint should be applied on a Table column, which will limit the values that can be inserted into that particular column? OR (B)What constraint should be applied on a Table column, which will ensure that no two rows haye the same value for that particular column? (A) Write an SQL statement to create a PRIMARY KEY constraint on the ‘Pla” column of table Persons, when the table is already created. ais EES n of the a after executio’ (B) What will be the impact on table Persons following query? ALTER TABLE Persons DROP PRIMARY hing and packet switching. KEY; OR (B) Expand the term ISP. Name any two ISPs. 22] Qe. SECTION — C (3 x 3=9 Marks) Marks 29. A text file “matter.txt” contains some text, which needs to be displayed such that every next character is separated by a symbol “#”. Write a function definition for hash_display() to display the entire content of the file “matter.txt” in the desired format, Consider the file “matter.txt” : THE WORLD IS ROUND The hash_display() function should display the following content: ‘THHHE# #WHOERHL#D# #14S# #R#OFUHNADE OR Write a function count_word( to count words in a text file “poem.txt “ that are ending with alphabet ‘e”. 13] 30. (A) You have a stack named ItemStack that contains records oF some items: Each item record is represented as a list containing Item_Name, Quantity, and Price. Write the following user-defined functions in Python to perform the specified operations on the stack ItemStack: ()_push_item(ltemStack, new_item): This function takes the stack ItemStack and a new item record new_item as arguments and pushes the new item record onto the stack. (11) pop_item(ItemStack): This function pops the topmost item record from the stack and returns it, Ifthe stack is already empty, the function should display "Underflow", (U1) peep(ltemStack): This function displays the topmost element of the stack without deleting it. If the stack is empty, the function should display ‘None’ 13] QS ee QNo. SECTION - D (4*4= 16 Marks) Marks | 32. ider the table dress as given below: oo TABLE : DRESS DCODE | ITEMNAME | SIZE | PRICE | SECTION S002 | Pant 36 | 3000 _| gents $005 | Shirt 42 2500 gents Sool | Kurti 32 | 2600 | ladies S004 Lehenga 36 | 6000 | ladies $003 | Frock 34 | 3400 | ladies $007 T shirt 42 2300 gents $008 Kurti 36 2900 ladies $009 | Jeans 44 | 4500 ‘| gents $006 Leggings 40 1200 ladies A) Write MySQL commands for the following queries: (To display the itemname, their price and section by arranging them in descending order as per price and ascending order as per section. (1) To display the itemname and Net price of all dresses belongs to gents. Net price is calculated as price-10% of the current price. (M1) To display the details of the dresses those itemname contains ‘e” within it, (IY) To display the maximum price and minimum price of dresses for each section, oR B) Write the output of the following queries: () SELECT ITEMNAME, SIZE FROM DRESS WHERE PRICE BETWEEN 2500 AND 3500 AND SECTION= ‘GENTS’; (I) SELECT COUNT(DISTINCT SECTION) FROM DRESS; (1) SELECT SIZE, PRICE FROM DRESS WHERE SECTION= ‘ladies’ ORDER BY SIZE DESC, DCODE; (IV) SELECT DCODE, PRICE FROM DRESS WHERE ITEMNAME LIKE ‘%t’ ; [4] 33. Manish is a Python programmer working in a School, For the Result analysis in School, he has created a csv file named student.csv, to store the results of students in different Exams, The structure of record of file student.esy is : [RollNo, Name, Percentage] Where, RollNo is the Roll Number of student (integer) ‘Name is the Student Name (string) [4] Pereentage is the percentage of marks secured by the student (floa®)- , oe to write For efficiently maintaining data of the Result analysis, Manish wants the following user defined functions, @® ADDO = To accept and add data of students to a CSV file ‘student.csv’, (1) Display() ~To read all content of “student.csv” and display records of only those students who scored more than 90 percentage. 34. | Consider the tables BOOK and MEMBER given below: 4) Table : BOOK CODE BNAME TYPE F101 The Priest Fiction 1102 | German Easy Literature C101 Tarzan in the lost worls Comic F102 Untole story Fiction: C102 War heroes Comic Table: MEMBER MNO | MNAME. CODE ISSUEDATE. MIO1 | Raghav Sinha L102 2016-10-13 M103 ‘| Sarthak John F102 2017-02-23 M102 ‘| Anisha Khan Cl0r 2016-06-12 Write the SQL queries for the following: To display all details from table MEMBER in descending order of ISSUEDATE, (i) To display the CODE and BNAME of all fiction type books from the table BOOK, (II) To display the book details whose code is C101 and type is ‘comic’, __| 0%) (A) Te display bookname, member name and issue date for books of type ‘Fiction’, ? OR ay each member name and corresponding BookName. Tras the following fatabase, 35, [A table, named PRODUCTS, in the SHOPDB 4 structure: | productID_ | productName [eaten stock Write the following Python function to perform the specified operation: a AddAndShowProducts(): To input details of a product and store it in the « PRODUCTS table. The function should then retrieve and display all records j | from the PRODUCTS table where the cost is less than 50 ‘Assume the following for Python-Database connectivity: Host: localhost User: admin Password: Secret]23 ‘QNe. SECTION — E (2 x 5=10 Marks) Marks | 36, | Alex is a manager ata small tech company. He needs to manage the records of | [5] ‘various employees. For this, he wants the following information of each sployec to be stored in a binary file ‘Emp.dat’. * Employee ID— integer * Employee Name - string * Job Title string * Salary — float You, asa programmer of the company, have been assigned to do this job for Alex. (Write a function to input the data of an employee and append it to a binary file, (il) Write a function to update the data of employees whose salary is above 100,000 and change their job title to "Senior Developer". (IID) Write a function to read the data from the binary file and display the data of al those employees who are not "Senior Developer". is ing to | [5] onal University is setting up its academic blocks at Udaipur and is panaee : i : z up a network. The University has 3 academic blocks and one ‘ ‘ i 5 Resource Centre as shown in the diagram below: Technology 4] Center to Center distances between various blocks/center is as follows: ‘Law Block to Business Block, 40m Taw Blockto Technology Block [80m ___} ‘Law Block to HR Centre Business Block to HR Centre [30m [Technology Block to HR Centre No ofcomputersin various Blodks/centeris as | follows: aw Block i Centre aera ts a a ! (Suggest an ideal layout for connecting these blocks/centers for wired connectivity. (il) Which device will you suggest to be placed/installed in each of these blocks/centers to efficiently connect all the computers within these blocks/centers. Al) Suggest the placement of Server in the network with justification, (AV) The university is planning to connect its admission office in Delhi, 1 which is more than 780 km from the university, Which type of network out of LAN, MAN, or WAN will be formed? Justify your answer, (Y) (A) Suggest the device/ software to be install led in Udaipur care of data security, aaa kee OR LL asi Placement of repeater in the Network with justification, a8

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy