Trending ▼   ResFinder  

CBSE Class 12 Pre Board 2021 : Computer Science - Set 1 (CBSE Gulf Sahodaya Qatar Chapter, Doha)

9 pages, 89 questions, 1 questions with responses, 1 total responses,    0    0
CBSE 12 Pre Boards
  
+Fave Message
 Home > cbse12_pre_boards >   F Also featured on: School Page cbse12

Formatting page ...

PreBoard1, 2020-21 Computer Science (083) Class XII Date: 3rd, Max. Marks: 70 Time Allowed: 3 hours December2020 General Instructions: 1. This question paper contains two parts A and B. Each part is compulsory. 2. Both Part A and Part B have choices. 3. Part-A has 2 sections: a. Section I is short answer questions, to be answered in one word or one line. b. Section II has two case studies questions. Each case study has 4 case-based sub-parts. An examinee is to attempt any 4 out of the 5 subparts. 4. Part - B is Descriptive Paper. 5. Part- B has three sections a. Section-I is short answer questions of 2 marks each in which two question have internal options. b. Section-II is long answer questions of 3 marks each in which two questions have internal options. c. Section-III is very long answer questions of 5 marks each in which one question has internal option. 6. All programming questions are to be answered using Python Language only Part-A Question No. Marks allocated Section-I Select the most appropriate option out of the options given for each question. Attempt any 15 questions from question no 1 to 21. 1. Find the valid identifier/s from the following: 1 a) MySum b) true c) Last@sum d) 123Sum 2. Given the lists L= [1, 3, 6, 82, 5, 7, 11, 92], write the output of 1 print(L[2:5]) print(L[-2:-8:-2]) 3. ______________________statement is given for importing comma separated module into your program. 1 4. Identify the valid identity operator/s in Python from the following. 1 a)and b)is c) or d)in 5. Suppose a tuple T is declared, which of the following is incorrect? a) T=(10) b) T=(10,) c) T=[10,11] d) T=(10,11,12) 1 6. Which of the following is/are valid declaration of a dictionary? a) D = {'StuName': 'Alan', 'StuAge': 30, 'StuCity': 'Vizag'} b) D = ['StuName': 'Alan', 'StuAge': 30, 'StuCity': 'Vizag'] c) D = ('StuName': 'Alan', 'StuAge': 30, 'StuCity': 'Vizag') d) D = {'StuName'; 'Alan', 'StuAge': 30, 'StuCity': 'Vizag'} 1 7. A tuple is declared as T = (2,66,77,55,6,9,55,8) Write the output of print(T.index(55)) 1 8. Name the built-in mathematical function / method that is used to return the number 1 of times the given element appears in the tuple 9. Name the protocol that is used to transfer voice. 1 10. Fraudsters build a fake website and send the link to victims via email. Victims click on the link believing it is legitimate and enter personal information. Identify the type of cybercrime 1 11. In SQL, name the clause that is used to display the tuples in descending order of an attribute. 1 12. In SQL, what is the use of Check constraint? 1 13. Which of the following functions is not an aggregate function? (i) Round() (ii) Sum() (iii) Count () (iv) Avg () 1 14. Which of the following is/are a DML command? a) CREATE b) DROP c) UPDATE d) INSERT 1 15. Name any two types of wired transmission media. 1 16. Which of the following is/are valid declaration of a tuple? a) (1,2,3,[8,9]) b) (1,2,3, Good ) c) (11,) d) (111) 1 Page 2 of 9 17. If the following code is executed, what will be the output of the following code? Title="Online Teaching 2020" print(Title[6:10], Title[-2:-4:-1]) 1 18. In SQL, write the query to list all databases on the sql server. 1 19. Write the expanded form of WiMAX. 1 20. Which of the following in SQL is used to switch to a database named employee. a) Show employee b) Use employee c) Describe employee d) Create employee 1 21. Rearrange the following terms in decreasing order of data transfer rates. Gbps, Mbps, Tbps, Kbps, bps, Bps 1 Section-II Both the Case study based questions are compulsory. Attempt any 4 sub parts from each question. Each question carries 1 mark 22. A residential school is considering to maintain their inventory using SQL to store the data. As a database administer, Anil has decided that: Name of the database - myschool Name of the table - SCHOOL The attributes of SCHOOL are as follows: RollNo - numeric Name_student character of size 20 Stream - character of size 20 Average numeric Table: SCHOOL RollNo Name_student Stream Average (a) 101 Sita Sharma Science 95 102 Gita Verma Commerce 94 103 Jay Shah Commerce 96 104 Smita Roy Science 97 105 Suresh Menon Science 89 106 Sneha Patel Commerce 67 107 Sudhir Guha Humanities 87 108 Hina Verma Humanities 77 Identify the attribute best suitable to be declared as a primary key. 1 (b) Write the degree and cardinality of the table SCHOOL 1 (c) Insert the following data into the attributes RollNo, Name_stiudent and Average respectively in the given table SCHOOL. RollNo=110, Name_student= Ravi Shah and Average=94 1 Page 3 of 9 (d) Anil wants to delete the database myschool. Which command will he use from the following: i. DELETE FROM myschool; ii. iii. iv. 1 DROP TABLE myschool; DROP DATABASE myschool; DELETE store FROM myschool; (e) Anil now wants to create a new database named MyNewSchool. Wtite the command 1 to create the database. 23. Shantanu of class 12 is writing a program to create a CSV file BoardDetails.csv which will contain BoardRollNo, StuName, DateOfBirth for some entries. He has written the following code. As a programmer, help him to successfully execute the given task. import _____________ #Line 1 def addCsvFile(BoardRollNo,StuName, DateOfBirth): f=open('________________,'a',newline='') #Line 2 x = csv.writer(f) x.writerow([BoardRollNo,StuName, DateOfBirth]) f.close() def readCsvFile(): f=open('BoardDetails.csv','__') #Line 3 y = csv._________ #Line 4 for row in y: if (int(row[0])>9107750): print(row[0],row[1]) f.close() addCsvFile(9107752,"Sita Sharma","2003/10/21") addCsvFile(9107751,"Gita Patel","2004/11/01") addCsvFile(9107750,"Suresh Rao","2003/10/25") readCsvFile() #Line 5 (a) (b) (c) (d) (e) Name the module he should import in Line 1. Fill in the blank in Line 2 to open the file to write/add data into the file. Fill in the blank in line 3 to read from the csv file. Fill in the blank in Line 3 to read data from the csv file Write the output he will obtain while executing Line 5. 1 1 1 1 1 Part B Section-I 24. Evaluate the following expressions: (a) 5+ 5 **3 + 4*2 // 5 6 (b) 10 < 5 or not 70 > 12 and 18 > 3 2 25. What is the difference between E-mail & chat? OR Differentiate between Spyware and Trojan Horses 2 Page 4 of 9 26. 27. Expand the following terms: a. POP b. DHTML c. WLAN d. IPR Differentiate between List and tuple. 2 2 OR Differentiate between append() and extend(). 28. Rewrite the following code in Python after removing all syntax error(s). Underline each correction done in the code. def Tot(Number) Sum1=0 for C in Range (1, Number+1): sum1=+C Return Sum1 print Tot[3] #Function Calls Print Tot[6] 2 29. What possible outputs(s) are expected to be displayed on screen at the time of execution of the program from the following code? Also specify the minimum value that can be assigned to BEGIN and maximum value that can be assigned to LAST. import random POINTS=[20,40,10,30,15]; POINTS=[30,50,20,40,45]; BEGIN=random.randint(0,3) LAST=random.randint(2,3) for C in range(BEGIN,LAST+1): print (POINTS[C],"#",end="") (i) 20 #40 # (ii) 50 #20 #40 # (iii) 30 #50 #20 # (iv) 50 #20 #40 #45 # 2 30. Differentiate between Primary and Candidate key. 2 31 Differentiate between fetchall() and fetchmany() methods with suitable examples for each. 2 32. Differentiate between Order By command and Group By clause. 2 33. Find and write the output of the following Python code: 2 Page 5 of 9 def makenew(mystr): newstr = " " count = 0 for i in mystr: if count%2 ==0: newstr = newstr+i.lower() else: if i.islower(): newstr = newstr+i.upper() else: newstr = newstr+i count +=1 newstr = newstr+mystr[:3] print ("The new string is :",newstr) makenew("St@akis2020") 34. 35. Section- II Write a python method/function REVERSAR(Number) to find a new number Reverse from Number with each of the digits of Number in reversed order and display the content of Reverse on screen. Sample Input Data: Number = 3451 Output 1543 Write a function in Python that counts the number of vowels present in a text file File2.TXT . 3 3 OR Write a function AMCount() in Python, which should read each character of a text file STORY.TXT, should count and display the occurance of alphabets A and M (including small cases a and m too). Example: If the file content is as follows: Updated information As simplified by official websites. The AMCount() function should display the output as: A or a:4 M or m :2 36. Write the outputs of the SQL queries (i) to (iii) based on the relations FACULTY and COURSES given below: Table: FACULTY F_ID FNAME LNAME HIREDATE SALARY 102 103 104 105 106 Manoj Jaya Sanjeev Rashmi Nithin Sharma Arora Chand Malhotra Rao 12-10-2012 15-12-2014 01-01-2016 02-04-2000 12-12-2013 12000 9000 14000 20000 10000 Table: COURSES C_ID Page 6 of 9 F_ID CNAME DEPARTMENT FEES 3 C21 C22 C23 C24 C25 C26 37. 102 106 104 106 102 103 Boolean Algebra Computer Network Biology Python Programming BioTech Accountancy ICT ICT Science ICT Science Commerce 14000 20000 18000 25000 30000 15000 (i) SELECT Department, count(*) from Courses Group BY Deparment; (ii) SELECT max(HireDate), min(HireDate) from Faculty; (iii) SELECT Faculty.Fname, Faculty.Lname,Courses.F_ID, Courses.Cname from Faculty, Courses where Faculty.F_ID=Course.F_ID and Courses.Department= ICT ; Write a function in Python PUSH(Arr), where Arr is a list of numbers. From this list if the number is odd then multiply with two, if the number is even numbers find its square and push into stack. Display the stack if it has at least one element, otherwise display appropriate error message. OR 3 Write a function in Python POP(Arr), where Arr is a stack implemented by a list of numbers. The function returns the value deleted from the stack. Section-III 38. Page 7 of 9 Jonathan and Jonathan Training Institute is planning to set up its centre in Amritsar with four specialised blocks for Medicine, Management, Law courses along with an Admission block in separate buildings. The physical distances between these blocks and the number of computers to be installed in these blocks are given below. You as a network expert have to answer the queries raised by their board of directors as given in (i) to (v). 5 (i) Suggest the most suitable location to install the server of this institute with a suitable reason. (ii) Suggest an ideal layout for connecting these blocks for a wired connectivity. (iii) Suggest the most suitable wired medium for efficiently connecting each computer installed in every building out of the following network cables: Coaxial Cable Ethernet Cable Single Pair Telephone Cable. Is a Repeater needed in the network? Justify (iv) (v) 39. The institute is planning to start a new branch in another country. Which type of network out of LAN, MAN, or WAN will be formed? Justify your answer. Write SQL commands for the following queries (i) to (v) based on the relations FACULTY and COURSES given below: Table: COURSES Page 8 of 9 C_ID F_ID CNAME DEPARTMENT FEES C21 C22 C23 102 106 104 Boolean Algebra Computer Network Biology ICT ICT Science 14000 20000 18000 5 C24 C25 C26 106 102 103 Python Programming BioTech Accountancy ICT Science Commerce 25000 30000 15000 Table: FACULTY 40. F_ID FNAME LNAME HIREDATE SALARY 102 103 104 105 106 (i) (ii) (iii) (iv) (v) Manoj Sharma 12-10-2012 12000 Jaya Arora 15-12-2014 9000 Sanjeev Chand 01-01-2016 14000 Rashmi Malhotra 02-04-2000 20000 Nithin Rao 12-12-2013 10000 To show all information of ICT department To list Course ID and Faculty ID of Science department. To list the Fname of teachers in Descending order of Fname. To display Course ID, Course name and Fees for ICT department. To display First name, Last name and Bonus where bonus for each faculty is 15% of salary. A binary file Student.dat has structure [RollNo, StName, Stream, Percentage]. i. Write a user defined function CreateFile() to input data for a record and add to Student.dat . ii. Write a function CountRec(Stream) in Python which accepts the Stream name as parameter and count and return number of students who have chosen the stream stored in the binary file Student.dat Page 9 of 9 5

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Mamta Gupta

(1)

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 


Tags : cbse pre boards, prelims 2015 - 2016, preliminary examinations, central board of secondary education, india schools, free question paper with answers, twelfth standard, xiith std, board exams, mock, model, sample, specimen, past, free guess papers.india, delhi, outside delhi, foreign, cbse class xii, cbse 12, 12th standard, cbse papers, cbse sample papers, cbse books, portal for cbse india, cbse question bank, cbse question papers with answers, pre board exam papers, cbse model test papers, solved board question papers of cbse last year, previous years solved question papers, free online cbse solved question paper, cbse syllabus, india cbse board sample questions papers, last 10 years cbse questions papers, cbse important questions, specimen / mock papers.  

© 2010 - 2025 ResPaper. Terms of ServiceContact Us Advertise with us

 

cbse12_pre_boards chat