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

Computer Science 2023 Set - 4

Computer science sample question paper 2022-23

Uploaded by

Kira
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
83 views

Computer Science 2023 Set - 4

Computer science sample question paper 2022-23

Uploaded by

Kira
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 19
CLASS-xil (2022-23) SAMPLE QUESTION PAPER - 4 Computer Science (083) Maximum Marks: 70 Time Allowed: 3 hours General Instructions: This question paper contains five sections, Section A to E. All questions are compulsory. Section A have 18 questions carrying 01 mark each. Section B has 07 Very Short Answer type questions carrying 02 marks each. Section C has 05 Short Answer type questions carrying 03 marks each. Section D has 03 Long Answer type questions carrying 05 marks each. Section E has 02 questions carrying 04 marks each. One internal choice is given in Q35 against part c only. 8. All programming questions are to be answered using Python Language only. Section A Novae se Consider the following query ty SELECT name FROM class WHERE subject LIKE * Computer Science’; Which one of the following has to be added into the blank space to select the subject which has Computer Science as its ending string? ay% b)s oll de State true or false: ty) A dictionary can contain keys of any valid Python types. Carefully observe the code and give the answer. ty def function l(a): ane *2 >>>function ("hello") a) hello2 b) cannot perform mathematical operation on strings c) hello2hello2 d) indentation error The SQL statements to access and manipulate data in existing table is/are: ty a) System Control Statements b) Session Control Statements ) DDL d) DML. Which type of transmission media is the least expensive to manufacture? (ty Page 1 of 19 10. UL a) Twisted pair cable b) CAT cable ¢) Coaxial d) Fibre optic To read the remaining lines of the file from a file object infi, we use a) nfi.read( ) b) infi.readlines( ) ©) infi.read(all) d) infi.readline( ) A is a property of the entire relation, which ensures through its value that each tuple is unique in a relation, a) Rows b) Attribute ¢) Key d) Fields A database controls the connection to an actual database, established from within a Python program, a) fetch object b) database object ©) query object d) connection object Which function is used to read single line from file? a) readlines( ) b) readline( ) ©) readfullline( ) d) readstatement( ) LIFO stands for a) First in Last Out b) List of File Outputs c) None of these d) Last in First Out Which of the following functions will return the total number of characters in a string? a) count() b)all of these c) index() d) lend) What is the output of the below program? 0 def funo(x): print(’x is’, x) x=2 print(‘Changed local x to’, x) fune(x) print('x is now’, x) a) x is now 100 b) x is now 50 Page 2 of 19 Ul uy ( il fy a 15, 16. ) none of these d)x is now 2 Given the numeric variable Num1, which lines of code properly prints the value? a) print("%d") b) print(Num1) properly prints the value ) print("%d Num1") 4d) print("%d", Num) Find ODD parity bit for 10010001 a)2 bo ) none of these dt Which of the following is the fastest media of data transfer? a) Fibre Optic b) Untwisted Wire ©) Co-axial Cable d) Telephone Lines Assertion (A): Slice can be outside the range of positions. Reason (R): Slicing takes place position-wise and not index-wise in series objects. a) Both A and R are true and R is b) Both A and R are true but R is the correct explanation of A. not the correct explanation of A. ¢) Ais true but R is false. d) Ais false but R is true. Geometric arrangement of devices on the network is called a) media b)LAN ©) protocols 4) topology Assertion (A): pandas is defined as an open-source library that is built on top of the NumPy library. Reason (R): pandas provides fast analysis, data cleaning, and preparation of the data for the user. a) Both A and Rare true and Ris b) Both Aand R are true but R is the correct explanation of A. not the correct explanation of A. c) Ais true but R is false. d) Ais false but R is true. Section B Differentiate between a logical error and syntax crror. Also, give suitable ‘examples of each in Python, OR Write a program that takes any two lists Land M of the same size and adds their tt tl tt ft ty a) 21 elements together to form a new list N whose elements are sums of the corresponding Page 3 of 19 23. (i) Gi) 24, 23. [3, 1,4] and M [1, 5, 9], then N should elements in L and M. For instance, if L equal [4, 6, 13]. How is Coaxial cable different from Optical Fibre? (21 Following table represents information on sales representatives For Premiere RI Products and contains the Following data Fields for sales representations. Sales representative's number SLSRNUMB Sales representative's name SLSRNAME Sales representative's address SLSRADDR total commission paid to the sales representative TOTCOMM Sales representative's commission rate COMMRATE Write Python code to create the above table. A program having multiple functions is considered better designed than a program [2] without any functions. Why? Answer: 2 What will be the generated query string? query = "INSERT INTO books (title, isbn) VALUES!"{}’, {})"* format(‘Ushakiran’ 42568987036’) Which function do you use for connecting to a data from within Python? Find the errors in following code and write the correct code. RI 1=[a','b,'c''d'] v=6 for in: Ifij=v vay-2 print("v=", v, "1="\1) i, Underline the corrections. ii, Write the reasonterror next to it in the comment form. OR What is the difference between a keyword and an identifier? Consider a binary file Employee.dat containing details such as Pa] ‘empno:ename:salary (separator). Write a Python function to display details of those employees who are earning between 20000 and 40000, (Both values inclusive) OR What are the advantages of saving data in binary form and text form? Section C Page 4 of 19 27. @ (ii) 28. ‘What is the significance of the GROUP BY clause in a SQL query? BI OR Mr. Mittal is using a table with following columns : Name, Class, Streamed, Stream_name He needs to display names of students who have not been assigned any stream or have been assigned stream_name that ends with "computers He wrote the following command, which did not give the desired result. SELECT Name, Class FROM Students WHERE Stream_name = NULL OR Stream_name = “%computers” ; Help Mr. Mittal to run the query by removing the error and write correct query. Answer: (31 Find the errors in following code and write the correct code. s=[Il, 13, 15] for n in arange(len(s)): tot = tot + s(n) print(tot) i, Underline the corrections. ii, Write the reason! error next to it in the comment form. Find the errors in following code and write the correct code. x=True y = False false if x,y,z print" yes " else = print "no" i. Underline the corrections ii, Write the reason!error next to it in comment form. Trace the flow of execution for following programs: BI i, 1 def power(b., p): 2r=b**p 3 return r 4 5 def epower(a): 6a=a+2 7. a=power(a, 0.5) 8 return a 9 lon=5 11 result = epower(n) 12 print (result) Page 5 of 19 29. ii, 1, def increment(x) 2x=xt1 3. 4. # main program 5.x=3 6. print(x) 7. increment(x) 8. print(x) iii, 1. def increment(x): 2.2=45 3.x=x+1 4, return x 5 6. # main Ty=3 8. print(y) 9. y = increment(y) 10. print(y) W.q=77 12. print(q) 13, inerement(q) 14, print(q) 15, print(x) 16. print(z) Write a function that receives two tuples and creates a third that contains all elements of the first followed by all elements of the second. OR What will be the output of following programs? i, num =1 def myfunc(): return num print(num) print(myfune()) print(num) ii, num = def my func(): num = 10 return num print(num) print(myfunc() print(num) iii. num= 1 def myfunc(): global num num = 10 Page 6 of 19 [3] return num print(num) print(myfunc()) print(num) iv. def display () print ("Hello", end = display() print("there!") 30. What is the use of tell) function? 13] Section D 31. Answer (i) & (ii) OR (iii) & (iv) (51 (i) Write a program that reads a text file and then creates a new file where each character's case is inverted. (ii) Write a program to print the following type of statistics for the given file: 16824 lines in the file 483 empty lines 53.7 average characters per line 65.9 average characters per non-empty line. (iii) What is the use of flush() function? (iv) Read the code snippet. file= open(‘textfile.txt’,w') word" while word.upper() !="END': word = raw_input(Enter a word use END to quit’) file, write(word + \n') file.close() The above program is to create a file storing a list of words. What is the name of file on hard disk containing list of words? 32. Consider the following tables CARDEN and CUSTOMER and answer the Is] following parts of this question : ‘Table: CARDEN Ccode | CarName [Make Color | Capacity | Charges S01 A-Star Suzuki RED 3 14 503 Indigo Tata SILVER 3 12 502 Innova Toyota WHITE 7 1S 509 SX4 Suzuki SILVER 4 14 510 C Class | Mercedes [RED 4 35 Table: CUSTOMER CCode Chame Ceode Page 7 of 19 1001 Hemant Sahu 501 1002 Raj Lai 509 1003 Feroza Shah 503 1004 Ketan Dhal 502 Give the output of the following SQL queries : i, SELECT COUNT (DISTINCT Make) FROM CARDEN: ii, SELECT MAX(Charges), MIN(Charges) FROM CARDEN; iii, SELECT COUNT(*), Make FROM CARDEN; iv. SELECT CarName FROM CARDEN WHERE Capadty = 4; OR Write queries for (i) to (iv) and find outputs for SQL queries (v) to (viii), which are based on the tables Table: VEHICLE 'VCODE VEHICLETYPE PERKM VOL ‘VOLVO BUS 150 vo2 |AC DELUXE BUS. 125 VO3 ORDINARY BUS 80 VOS SUV 30 V04 CAR, 18 ‘Table: TRAVEL, ICNO |CNAME TRAVELDATE KM |VCODE — |NOP 101 K. Niwal 2015-12-13 200 |VO1 32 103 Fredrick Sym 2016-03-21 120 |V03 45 105 | Hitesh Jain 2016-04-23 450 |vo2 42 102 [Ravi Anish 2016-01-13 80 [vo2 40 John Malina 2015-02-10 65 vo4 2 Sahanubhuti 2016-01-28 90 |vos 4 Ramesh Jaya 2016-04-06 100 |VOl 25 ERKM is Freight Charges per kilometre. * Km is kilometres Travelled + NOP is number of passengers travelled in vehicle. i. To display CNO, CNAME, TRAVELDATE from the table TRAVEL in descending order of CNO ii. To display the CNAME of all customers from the table TRAVEL who are travelling. by vehicle with code VO1 or VO2 Page 8 of 19 h To display the CNO and CNAME of those customers from the table TRAVEL who ' travelled between 2015-12- 31 and 2015-05-01 1 e iv, To display all the details from table TRAVEL for the customers, who have travel 1 1 distance more than 120 KM in ascending order of NOP 1 1 y. SELECT COUNT (*), YCODE FROM TRAVEL GROUP BY VCODE HAVING lb COUNT (*) > 1 ' h vi, SELECT DISTINCT VCODE FROM TRAVEL ' vii. SELECT A. VCODE, CNAME, VEHICLETYPE FROM TRAVEL A, VEHICLE B 1 f WHERE A. VCODE = B. VCODE and KM < 90 1 # viii, SELECT CNAME, KM*PERKM FROM TRAVEL A, VEHICLE B WHERE 1 1 A.VCODE = B.VCODE AND A. VCODE 'V0S" ' e 33. Write a function to push any student's information to stack. 15] 7 1 Section E ' t 34. Read the text carefully and answer the questions: Woot f Learn Together is an educational NGO. It is setting up its new campus at Jabalpur 1 1 for its web-based activities. The campus has 4 compounds as shown in the 1 5 diagram below: 1 i 1 / ' t 1 t 1 t Center to center distances between various Compounds as per architectural ' " drawings (in Metre) is as follows: 1 # Main Compound to Resource Compound 110m 1 f Main Compound to Training Compound 115m 1 f Main Compound to Finance Compound 35m 1 f Resource Compound to Training Compound 25m 1 ft Resource Compound to Finance Compound 135m ' f Training Compound to Finance Compound 100 m 1 ‘The Expected Number of Computers in each Compound is as follows: 1 . h Main Compound 5 ' L Resource Compound Is ' h Training Compound 150 " be [Accounts Compound 20 ‘ 1 1 (i) Suggest the most suitable place (.e., compound) to house the server for this NGO. i ls Also, provide a suitable reason for your suggestion. ' Page 9 of 19 (ii) Suggest the placement of Repeater with justification. (iii) The NGO is planning to connect its International office situated in Mumbai, which out of the following wired communication link, you will suggest for very high- speed connectivity? i. Telephone Analog Line ii, Optical Fiber iii, Ethemet Cable OR ‘Suggest the placement of Hub/Switch with justification. 35. Read the text carefully and answer the questions: ia] Consider the following tables ACTIVITY and COACH: Table: ACTIVITY ACode ‘Stadium|ParticipantsNum | PrizeMoney|ScheduleDate 1001 eo 100% 16 10000 23-Jan-2004 1002 |HighJump |S!" 10 12000 12-Dec-2003 ‘Annex 1003 |Shot Put eae 12 8000 14-Feb-2004 1005 |Long Jump 2 9000 01-Jan-2004 1008 Piscuss Super 19 15000 19-Mar-2004 row Power ‘Table: COACH PCode Name ACode 1 Ahmad Hussain 1001 2 Ravinder 1008 3 Janila 1001 4 Naaz 1003 (i) Write SQL commands for the following statements: i. To display the names of all activities with their Acodes in descending order. ii, To display sum of PrizeMoney for the Activities played in each of the Stadium separately. (ii) Write SQL commands for the following statements: i, To display the coach's name and Acodes in ascending order of Acode from the table Coach. Page 10 of 19 h ii, To display the content of the Activity table whose schedule date earlier than 01- ' 01-2004 in ascending order of Participants Num. 1 1 1 1 h (iii) Give the output of the following SQL queries ' i, SELECT COUNT (DISTINCT Participants Num) FROM ACTIVITY; ' r ii, SELECT MAX (Schedule Date), Min (Schedule Date) FROM ACTIVITY: 1 1 1 1 ' ' ' 1 1 1 1 ' r 1 1 " 1 1 h 1 h 1 h ! 1 " 1 r 1 . 1 1 " 1 r 1 ' 1 ' 1 ' ' 1 ° ' 1 ' 1 ' " 1 r ' ' ' 1 ' Page 11 of 19 SOLUTION Section A 1.) % Explanation: % character matches any sub-string. 2. (b) False Explanation: False, keys must be of an immutable data type such as strings, numbers, or tuples. 3. (d) indentation error Explanation: Function body i.e, code inside the function starts with indentation, 4. (d) DML Explanation: Data Manipulation Language is used to manipulate data in existing tables, for instance UPDATE, SELECT, DELETE, INSERT. 5. (a) Twisted pair cable Explanation: Twisted pair cable is the least expensive transmission media. 6. (b) infi.readlines( ) Explanation: infi.readlines( ) 7. (©) Key Explanation: Key, Key is the constraint which specifies uniqueness. 8. d) connection object Explanation: connection object 9. (b) readline) Explanation: readline() reads the file one line at a time and returns the line as a string. 10. (d) Last in First Out Explanation: Last in first-out (LIFO) is a method used to account for inventory that records the most recently produced items as sold first. 11. (d) len) Explanation: len() 12. (b) x is now 50 Explanation: The first time that we print the value of the name x with the first line in the function's body, Python uses the value of the parameter declared in the main block, above the function definition. Next, we assign the value 2 to x. The name x is local to our function. So, when we change the value of x in the function, the x defined in the main block remains unaffected. With the last print function call, we display the value of x as defined in the main block, thereby confirming that it is actually unaffected by the local assignment within the previously called function. . (b) print(Num) properly prints the value Explanation: print(Num1), no need to define the type 14, (b) 0 Explanation: Parity refers to the number of bits set to | in the data item Even parity - an even number of bits are 1 Odd parity - an odd number of bits are 1 Page 12 of 19 a 16. 19, 20. A parity bit is an extra bit transmitted with a data item, chose to give the resulting bits even or odd parity Even parity - data: 10010001, parity bit 1 Odd parity - data: 10010001, parity bit 0 . (a) Fibre Optic Explanation: Fibre Optic, In Fiber optics, data is transmitted through modulated light ray. (a) Both A and R are true and R is the correct explanation of A. Explanation: Slicing means extracting the part of the series. Position is a number, which pandas assigns to series internally, so we will use that position to find the series slice, not the index of the element. .(d) topology Explanation: topology . (b) Both A and R are true but R is not the correct explanation of A. Explanation: pandas is defined as an open-source library that is built on top of the NumPy library and it provides fast analysis, data cleaning, and preparation of the data for the user. Section B Differences between logical error and syntax error are as follows: Logical Error Syntax Error . It occurs when statements are wrongly ‘It oceurs because of wrong : - written violating rules of the implementation of logic. programming language. With logical errors, the code is With syntax errors, the code is not syntactically correct and compiler will not |syntactically correct and compiler will show any error message. show the error messages. It produces the output, but undesired. _ It does not produce any output. e.g. in place of (c= a*b); if by mistake (c e.g. in place of (a= b): if by mistake (a a+b); is written, it will be a logical |-b); is written, it will be a syntax error, error. OR L=B.1,4] M=[1,5,9] In=len(L) 0 fora in range(In); N.append(L[a] +M[a]) print(N)4 Coaxial Cables is the most commonly used transmission media for LANs. It consists of solid wire cores surrounded by one or more foil or wire shields, each separated by some kind of plastic insulator whereas optical fibres consist of thin strands of glass or glass-like materials. Coaxial cables transmit electrical signals whereas Optical fibres transmit light signals or laser signals, Page 13 of 19 21 22. 23. 24, 25. import MySQLdb db = MySQLdb.connect ("“localhost", "Admin", "Ad123", "SALES") cursor= db.cursor() cursor.execute("DROP TABLE IF EXISTS sales_Representative") try: sql= "CREATE TABLE SALES_ Representative (slsrnumb integer, sIsrname char(25) not null, slsraddr char(100) not null, totcomm double, commrate double)" cursor.execute (sql) except db.close() Program having functions is considered better, because: i, It makes program handling easier as only a small part of the program is dealt with ata time, thereby avoiding ambiguity. ii, It reduces program size. iii. It makes a program more readable and understandable to a programmer thereby making program management much easier. . Answer: (i) "INSERT INTO books (title, isbn) VALUES ( ‘Ushakiran’, '42568987036')" (ii) The connect( ) function can be used to connect with a database from within Python. ‘a,b 'e'a] for j in range (len(1)): # (i) loop variable missing # (ii) loop variable i is used as index of list | in # the loop so i must get integer values from # iterator, thus range ( Len(L) ) given here IiJ+=v v=v*2# cannot be used with string and integer, but * can be used print ("v=",v, "I=", I) OR Keyword is a special word that has a special meaning and a specific operation. They are reserved words that convey a special meaning to the compiler/interpreter. . For example, if, clif, else, etc. are keywords. Identifier is the user-defined name given to a part ofa program viz. variable, object, function etc. Identifiers are not reserved. These are defined by the user but they can have letters, digits and a symbol underscore. They must begin with either a letter or underscore. For instance, _chk, chess, trial etc., are identifiers in Python. . def Readfile(): pen("Employee.dat", "tb+") -readline() while(x) Ixsplit if (20000>=float(|[2]}<=40000): Page 14 of 19 26. 27. print(x) x-i.readline() OR i, The binary files store the data in pure binary bytes form and hence can be used on any machine/hardware with appropriate software. There are no internal conversions added to data such as newlines ete. Binary files require appropriate software in order to be read and decoded. The machine takes less time to process binary files. ii. A text file is a computer file that is structured as a sequence of lines of electronic text. The text files store the data in human readable text format. These have some internal conversions like newlines(‘n) etc. Text files are human readable but are not portable enough. Section C The GROUP BY statement in SQL is used to arrange identical data into groups with the help of some functions. This grouping results into one summary record per group if group-functions are used with it. OR The given query is erroneous because it involves pattern matching. The correct operator to be used for pattern matching is LIKE. Also, there is NULL comparison and for it also incorrect operator is used. The correct operator for NULL. comparison is 1S. Thus, the correct SQL statement will be SELECT Name, class FROM students WHERE Stream-name IS NULL OR Stream-name LIKE "%computers . Answer: (i) s=[11, 13, 15] tot=0 # tot must be defined before being used for n in range(len(s)): # built-in function is range() not arange() tot=tot + s[n] #incorrect indentation and # sis list; to access its elements # square brackets are used (ii)x = True False Z= alse # either false must be a predefined variable or # use Boolean value False if or y and z: # Boolean values/expressions must be combined using # or/and/not operators to form a condition print ("yes") # () missing for print() else : print ("no") #() missing for print() L153 10311 9556575132534738 311412 i1+546473132-38 [Control did not return to function call statement (7) as no value is being returned by increment()] iil, 1 7 8391524344595 105 113 125 13514243 34> 14> 15> 16 Page 15 of 19 [Control did not return to function call statement (13) as its result is not being stored anywhere.] 1 29. def appendTuple(tuple!,, tuple2): 1 “This function will join two tuples into one’ L tuple3 = tuple! + tuple2 return tuple3 ' OR 1 1 These are the outputs to the above code segments: id 1 i 1 ' ii. 1 10 I iii 1 10 10 iv. Hello there! 30. tell() method tells the current position of the file pointer in the file. The integer returned by tell) method specifies the number of bytes from the beginning of the file till the current position of file object. Next read and write operation takes place at the current position of file pointer. Syntax: fileobject.tell), Section D 31. Answer (i) & (ii) OR (iii) & (iv) (i) file_pointer_in = open("Text.txt", r) chars = file_pointer_in.read() file_pointer_in.close() file_pointer_out.open(“reversecase.txt”, w) for char in chai if char.isupper(): elif ch.islower(): char = char.upper() file_pointer_out.write(char) file_pointer_out.close() (ii) filePointer = open("Read.txt", r) ilePointer.readlines() ' num_lines = len(lines) 1 blank_lines = 0 for i in range(0,len(lines)): if lines{i] =" ' blank_lines str = filePointer.read() 1 chars = len(str) filePointer.close() Page 16 of 19 print (num_fines, “lines in the file”) ' print (blank_lines, “empty lines”) 1 print float((chars/num_lines), "average characters per line") ' 1 print float ((chars/(num_lines - blank_lines)), "average characters per non-empty line”) ' (iiiyPhe flush) funetion forces the writing of data on dise still pending in output ' butters. 1 1 (iv)In the open() function, the file name is specified as "textfile.txt" and the file is 1 5 opened in write mode. The system creates the texifile.txt file on the hard disk. ' t 32. 1.4 1 ft 35 12 ‘ ft Invalid query 7 " . SX4 1 1 C Class h OR ' i, SELECT CNO, CNAME, TRAVELDATE FROM TRAVEL ORDER BY CNO. 1 1 1 ' CNAME FROM TRAVEL WHERE VCODE = 'VO1' OR VCODE = 1 "vo2' r iii. SELECT CNO, CNAME from TRAVEL WHERE TRAVELDATE BETWEEN ' r '2015-05-01' AND '2015-12-31' 1 oR 1 hb SELECT CNO, CNAME from TRAVEL WHERE TRAVELDATE > = '2015-05- . 01'AND TRAVELDATE < = '2015-12-31" ' iy, SELECT * FROM TRAVEL WHERE KM > 120 ORDER BY NOP: 1 t y [COUNT®) VCODE 1 t 2 Vol ' " h 2 voz ! vi. DISTINCT VCODE 1 ft vol 1 1 vo2 ' ls Vo03 h vo4 ' vos 1 ' vii, | VCODI VEHICLETYPE 1 r vo2 [Ravi Anish’ AC DELUXE BUS ' I CAR 1 ' l mit KM*PERKM ' hk Sahanubhuti 7 h 33. def push (stack): a =[] ' . rint "STACK BEFORE PUSH" Page 17 of 19 display(stack) s.append(input("Enter student rolino?")) s.append(raw_input("Enter student name")) s.append(raw_input("Enter student grade")) stack.append(s) def display (stack): IHlen (stack) print ("STACK CONTENTS") for i in range(1-1,-1,-1): print(stack{iJ) stack =[ ] print ("Creating Stack") n=input("Enter the number of students") for i in range (n) student =[] student append (input("Enter student rollno?")) student.append(raw_input("Enter student name")) student. append(raw_input(""Enter student grade")) stack.append(student) push(stack) display(stack) Section E 34, Read the text carefully and answer the questions: Learn Together is an educational NGO. It is setting up its new campus at Jabalpur for its web-based activities. The campus has 4 compounds as shown in the diagram below: Center to center distances between various Compounds as per architectural drawings (in Metre) is as follows: Main Compound to Resource Compound 110m Main Compound to Training Compound 115m Main Compound to Finance Compound 35m Resource Compound to Training Compound 25m Resource Compound to Finance Compound 135 m ‘Training Compound to Finanee Compound 100 m The Expected Number of Computers in each Compound is as follows: Main Compound Resource Compound Page 18 of 19 Training Compound [Accounts Compound 20 (i) The most suitable place to house the server is Training Compound as it has a maximum number of computers. (ii) Repeater: As per one layout, the repeater can be avoided as all distane; the compounds are <= 100 m. (iii)0ptical Ribre OR Hub/Switch: Training compound as it is hosting the server. 35. Read the text carefully and answer the questions: Consider the following tables ACTIVITY and COACH Table: ACTIVITY between ACode]ActivityName|Stadium _[ParticipantsNum | PrizeMoney|ScheduleDate 1001 |Relay 100 x 4|S*° 16 10000 23-Jan-2004 Annex, 1002 {High Jump — /S!*" 10 12000 12-Dec-2003 Annex 1003 shot Put er le 8000 14-Feb-2004 Power Star 2 “Jan 1005 |Long Jump [ANT |12 9000 O1-Tan-2004 Discuss Super 1008 10 15000 19-Mar-2004 ‘Throw Power Table: COACH PCode Name [ACode 1 Ahmad Hussain [1001 2 Ravinder [1008 3 Janila 1001 4 Naaz 1003 (i) i, SELECT Acodes, ActivityName FROM ACTIVITY ORDER BY ACode DESC; ii, SELECT SUM(PrizeMoney) FROM ACTIVITY GROUP BY Stadium: (i) i ELECT Name, Acode FROM COACH ORDER BY Acode; ii, SELECT * FROM ACTIVITY WHERE SchduleDate <'0]-Jan-2004’ ORDER BY ParticipantsNum; (ii)i.3 ii. 12-Dec-2003 19-Mar-2004 Page 19 of 19

You might also like