Trending ▼   ResFinder  

CBSE Class 12 Pre Board 2021 : Computer Science (Kendriya Vidyalaya (KV), Lucknow Region)

7 pages, 90 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 ...

KENDRIYA VIDYALAYA SANGATHAN, LUCKNOW REGION II Pre-Board Examination C l a s s X I I : Computer Science (083) Session: 2020-21 Maximum Marks: 70 Time Allowed: 3 hours 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. Section II has two case studies questions. Each case study has 4 casebased 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 questions 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 b. Question Number 1 2 3 4 5 PART A 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. Which of the followings are valid variable names in Python? (i) Emp-Code (ii) FOR (iii) Emp_Code (iv) 2020SalesDetail Given the List L = [5,7,8,11,45,80] , Write the output of print(L[::-1]) Marks Allotted Which of the following statement is True in context to a mode in CSV File Handling operations in Python? (i) It allows to write data only in existing file (ii) It allows to write data in file, if file not exists it will create new file if exists it will overwrite the previous content. (iii) It allows to write data in file, if file not exists it will create new file, if exists it will add new data at the end of previous content. (iv) It allows performing both read and writing operation on file. What will be result of following arithmetic expression? 50 + 20 % 50 (i) 50 (ii) 70 (iii) 100 (iv) 80 Suppose a tuple T is declared as T = (20,21,45,67), which of the following is valid to add new item 100 in tuple? (i) T = T + 100 (ii) T = T + (100) (iii) T = T + (100,) (iv) T.append(100) 1 1 1 1 1 1 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Suppose a Dictionary D is declared as D = { Roll :1, name : Jatin , Per :90} Write print() statement to print all the Keys of above dictionary A Tuple T is declared as T = (11,22,33,44,55,66,77,88) What will be the output of print(T[:3]+T[3:])? Name the Python library module which need to be imported to invoke the following function: (i) floor() (ii) load() Name the protocol used for dividing your message into smaller data packets. On which date, India IT Act was notified? 1 Sujatha, is working as a database developer in SolutionA2Z corporation. She was assigned a task to give the list of those employees who are currently not working on any project. For this she has written the following Query: SELECT * FROM EMPDETAIL WHERE PROJECT_ASSIGNED = NULL; But Query is not producing any output. Re-write the correct query to help Sujatha to perform the required task. A following Query was written to search for those students who scored percentage 90 or above and output in ascending order of their name (Based on Table STUDENTS (ROLL, NAME, PERCENTAGE) as: SELECT * FROM STUDENTS ORDER BY NAME WHERE PERCENTAGE>=90; But Query is producing error. What could be the possible reason of error? Which of the following is not an aggregate function of MySQL? (i) SUM() (ii) AVERAGE() (iii) AVG() (iv) COUNT() Aggregate Function MAX() and MIN() can be applied on NUMBERS, TEXT and DATE data type. (TRUE/FALSE) Give one example of each (i) Guided Media (ii) Un-guided Media 1 Identify the correct dictionary declaration (Qtr1), if the keys of dictionary are Jan , Feb , Mar and the values are 31,29,31. (i) Qtr1 = [ Jan =31, Feb =29, Mar =31] (ii) Qtr1 = { Jan :31, Feb :29, Mar :31} (iii) Qtr1 = { Jan =31, Feb =29, Mar =31} (iv) Qtr1 = {Jan:31,Feb:29,Mar:31} If the following code is executed, what will be the output of the following code? name="ComputerScienceExam " print(name[:10:2]) Identify the correct Query to display all the tables in current database. a. SHOW DATABASES; b. SELECT * FROM DATABASES; c. SELECT * FROM TABLES; d. SHOW TABLES; Write the expanded form of IPR. 1 If any column (X) of a table (T) depends upon the primary key column(Y) of another table (T2) then this column (X) will be known as? a. Primary Key b. Unique Key c. Alternate Key d. Foreign Key Why Switch is known as Intelligent Hub? 1 2 1 1 1 1 1 1 1 1 1 1 1 1 22 SECTION II Both the Case study based questions are compulsory. Attempt any 4 sub parts from each question. Each question carries 1 mark Venkatesh, a database developer created a Table RESULT to store the ROLL, NAME, STIPEND, SUBJECT, AVERAGE and DIVISION of Students as: Column Name Data Type ROLL int NAME varchar(20) STIPEND int SUBJECT varchar(20) AVERAGE int DIVISION varchar(20) RESULT ROLL 1 2 3 4 5 6 7 NAME SHOBHIT ANMOL VAIBHAV SHAKEEL ANANYA UPENDRA SUJOY STIPEND SUBJECT AVERAGE 400 ENGLISH 44 650 MATHEMATICS 76 350 ACCOUNTS 71 250 IP 58 450 CS 92 650 PHYSICS 35 200 GEOGRAPHY 49 4 DIVISION THIRD FIRST FIRST SECOND FIRST THIRD SECOND (i) 23 Based on the above table definition and data, Identify the attribute best suitable for the Primary Key. (ii) Write down the Degree and Cardinality of Table RESULT (iii) Write down query to display name of those who secured FIRST division (iv) Now Venkatesh, wants to display RESULT in ascending order of AVERAGE. Write the query for same. (v) Venkatesh wants to display the structure of the table RESULT, i.e. name of the attributes and their respective data types that he has used in the table. Write the query to display the same. Chinmayee is working as a CSV programmer; She has written the following code to add Dish Name and Price in CSV file along with their heading and read back the data from the file. But she is missing with some statements in her code, As a programmer, help her to achieve the task: import _______ #Line 1 def addDish(Dishes): heading=["Dish Name","Dish Price"] with open("dishes.csv","w") as mycsv: mywriter = csv.writer(mycsv,lineterminator='\n') mywriter.________ (heading) #Line 2 mywriter.________ (Dishes) #Line 3 def showDish(): with open("dishes.csv","r") as mycsv: myreader = csv.reader(mycsv) t=0 for row in ________: #Line 4 if t>0: print(row[0],'#',row[1]) t+=1 print("Total Dishes=",t-1) addDish([["Dosa",120],["Idli",80],["Samosa",50]]) showDish() #Line 5 3 4 (i) (ii) (iii) (iv) (v) 24 25 26 27 28 29 Name the module She should import at Line 1 Fill in the blanks in Line 2 to add headings in CSV file Fill in the blanks in Line 3 to complete the write operation Fill in the blank in Line 4 to read all data of CSV file What will be the output produced after executing Line 5 PART B SECTION - I Evaluate the following expressions: a) 20 // (15 % 8) * 2 ** 2 b) not(10>20) or (8>8) and (11==11) Differentiate between Hackers and Crackers. OR Differentiate between HTML and XML. Expand the following terms: a. GSM b. ISP c. FTP d. URL What is default parameter in function? Give suitable example to illustrate the use of default argument. OR Differentiate between local and global variable with suitable example. Rewrite the following code in Python after removing all syntax error(s). Underline each correction done in the code. a=5 work=true b= hello a =*100 FOR i in range(10): if i%7=0: continue What possible output is expected to be displayed on screen out of (i) to (iv) at the time of execution of the program from the following code? Also specify the minimum & maximum values that can be assigned to variables NUM. import random LANGUAGES=['PYTHON','JAVA','C++','LISP'] NUM = random.randint(1,3) SELECTED="" for I in range(NUM,0,-1): SELECTED = SELECTED + LANGUAGES[I] print(SELECTED) (i) LISPC++JAVAPYTHON (ii) PYTHONJAVAC++ (iii) LISPC++JAVA (iv) JAVAC++LISP 2 2 2 2 2 2 30 What do you understand by Candidate Keys? What are the major factors to keep in mind while selecting Primary Key from Candidate Keys? 2 31 Samantha is a Python programmer working on a project where she needs to connect Python program to MYSQL. Following information are available with Samantha to connect like: Name of Server = localhost, Name of user = root, Password = admin Database = empdb Now, you are supposed to help Samantha to create connection with MySQL using the above information. 2 32 import mysql.connector as MySQL cn = _______________________ # fill the code to establish connection Explain any two aggregate function of SQL with suitable example. 4 2 33 Find and write the output of the following python code: def EncryptIt(message,char): L = len(message) message2 = "" for i in range(L): if message[i].islower(): message2+=message[i+1] elif message[i].isupper(): message2+=message[i].lower() elif message[i].isdigit(): message2+=char else: message2+=message[i-1] print(message2) EncryptIt("Ex@m2021Online*",'$') 2 SECTION II 34 Write a function in Python ChangeIt() which accepts a List (L) as arguments and divide all those elements by 5 which are divisible by 5 and multiply rest of the element by 7. Sample Input Data of List(L) is: L = [20,36,9,60,25,18,2,30] Content of List(L) after calling function ChangeIt() L = [4,252,63,12,5,126,14,6] 3 35 Write a function DISPCOUNT3() in Python to read the content of text file NOTES.TXT and display only those word which has only 3 characters in it. Also display count of it i.e. how many 3 letters words present in file. If the sample content of NOTES.TXT is THEN THE DOG CALLED THE CAT. EVERYONE PULLED AND THE CAT HELD ON TO THE DOG S TAIL. THE CARROT DID NOT MOVE Then the output should be: THE DOG THE CAT AND THE CAT THE THE DID NOT Count = 11 OR Sanjana, has create a text file to store some text in an article. After saving the article as COMPUTERS.TXT , she realized that she has wrongly type alphabet A in place of alphabet E everyone in the word COMPUTER. Write a function DISPLAYTEXT() in Python that would display corrected version of entire article of the file COMPUTERS.TXT with all occurrence of A in word COMPUTER as an E on screen. If Sanjana has stored the following content in the file COMPUTERS.TXT: I SELL COMPUTAR. I HAVE A COMPUTAR. I NEED A COMPUTAR. I WANT A COMPUTAR. I USE THAT COMPUTAR. MY COMPUTAR CRASHED. The function DISPLAYTEXT() should display the following output: I SELL COMPUTER. I HAVE A COMPUTER. I NEED A COMPUTER. I WANT A COMPUTER. I USE THAT COMPUTER. MY COMPUTER CRASHED. 3 36 Write the output of SQL Queries (i) to (iii) based on SHOP table 3 5 37 38 SHOP Code Item Company Qty City Price 102 Biscuit Hide & Seek 100 Delhi 10.00 103 Jam Kissan 110 Kolkata 25.00 101 Coffee Nestle 200 Kolkata 55.00 106 Sauce Chings 56 Mumbai 55.00 107 Cake Britannia 72 Delhi 10.00 104 Maggi Nestle 150 Mumbai 10.00 105 Chocolate Cadbury 170 Delhi 25.00 (i) Select COUNT(DISTINCT CITY) FROM SHOP (ii) Select Item, Qty*Price As Amount from SHOP where Company= Nestle (iii) Select sum(Price),Max(Price) from SHOP where CITY in ( Delhi, Mumbai ) Write a function in python, Push(Employee,name) and Pop(Employee) to add a new employee name in List of Employee and delete an Employee from a List of Employee, considering them to act as push and pop operations of the Stack data structure implemented in the form of Employee List. OR Write a function in Python PUSH(MStack,Names), where Names is a list of names. From this list push all names beginning from letter M in stack (MStack) implemented by using a list. Display the stack (MStack) if it has at least three names, otherwise display message Not enough candidates . SECTION III Knowledge Mining Organization has setup its new center at Chennai for its office and web based activities. It has 4 blocks of buildings as shown in the diagram below: Center to Center distance between various blocks: ADMIN TO RESEARCH RESEARCH TO FINANCIAL FINANCIAL TO MARKETING ADMIN TO MARKETING RESEARCH TO MARKETING ADMIN TO FINANCIAL 50 150 25 170 125 90 M M M M M M Number of Computers ADMIN RESEARCH FINANCIAL MARKETING (i) (ii) (iii) 25 150 50 10 Suggest the most suitable location to install the main server of this organization to get efficient connectivity. Suggest the best cable layout for effective network connectivity of the building having server with all the other buildings Suggest the placement of the following device with justification: a) Repeater b) Switch 6 3 5 (iv) 39 40 Suggest the topology of the network and network cable for efficiently connecting each computer installed in each of the buildings out of the following: Topologies : Bus Topology, Star Topology Network Cable : Single Pair Telephone Cable, Co-axial Cable, Ethernet Cable (v) The organization is planning to link its front office situated in the city in hilly region where cable connection is not feasible, suggest an economic way to connect it with reasonable high speed? Write SQL queries for (i) to (v) based on the following given tables ACTIVITY & COACH ACTIVITY ACode ActivityName Stadium NOP Prize ScheduleDate 1001 Relay 100x4 Star Annex 16 10000 2004-01-23 1002 HighJump Star Annex 10 12000 2003-12-12 1003 Shot Put Super Power 12 8000 2004-02-14 1005 Long Jump Star Annex 12 9000 2004-01-01 1008 Discuss Throw Super Power 10 15000 2004-03-19 COACH PCode Name ACode 1 Sujatha Arnold 1001 2 Ravindra Sharma 1008 3 Jenelia 1001 4 Imran Khan 1003 (i) To display name of all activities and Number of Players (NOP) of those activities which are conducted in Star Annex Stadium in descending order of their NOP. (ii) To display the name of activity and Stadium of those activities which are organized in month of January. (iii) Write a query to display first ScheduleDate of Star Annex . (iv) To display name of stadium uniquely. (v) To display ActivityName, Name of Coach from the tables ACTIVITY & COACH which are organized in Super Power A binay file "book.dat" has structure [bookno, ISBN, title, author, publisher]. i. Write a user defined function EntryBook() to input data for a record and add to Book.dat ii Write a function CountBook(publisher) in Python which accepts the publisher as parameter and count and return number of books for that publisher in the binary file OR A binary file "CORONA.DAT" has structure (statename, noofinfected, recoveredPercent, deathPercent). Write a function countrecovered() in Python that would read the content of the file "CORONA.DAT" and display the details of those statename where recoveredPercent between 60 to 90 . Also display number of states falling in this range. 7 5 5

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Srinivasu Bajinki

(1)

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