0% found this document useful (0 votes)
369 views26 pages

2nd Year Computer Science Past Papers Zahid Notes

Helpful computer book

Uploaded by

malaikatariq37
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)
369 views26 pages

2nd Year Computer Science Past Papers Zahid Notes

Helpful computer book

Uploaded by

malaikatariq37
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/ 26
’ iw Inter Parl A-2016 Roll No. To be filled in by the candidate (NEW PATTERN) Paper Code.| 8 | 8{ 3] 14 Sessions; 2012-201482013-2015 Computer Science (objective Type) Time: 20 Minutes Marks: 17 NOTE: Write answers to the questions on objective answer sheet provided. Four possible answers A,B,C & D to each question are given.Which answer you consider correct, fill the corresponding circle A,B,C or D given in front of each question with Marker or pen ink on the answer sheet provided. MS-ACCESS 1.4, Storage and retrieval of data is related to: (A) Data Capturing (8) Data maniputation (C) Managing output result (©) Data finding 2. Insert command is used to insert: (A) New table (B) Newrecord = (C). View (©) Query 3. Arow of a relation is called a(n): (A) Aitribute (8) Entity (©) Tuple (0) Field 4. An enilly related to itself in an ERD model refers to: (A) tecursive relationship (®) One to many relationship (©) Many to many relationship (©) One to one relationship 5. In NF, which form of dependency is removed: (A) Functional (8) Non-functional (C) Associative (0) Transitive 6. To find four character name that starts with H,the criteria is specified as: (a) He (8) H?4 (©) HI (0) Hetae 7. Which autoform displays one record at a time? (A) Tabular (8) Columnar (C) Datasheet (©) Justiied C-Language 8. B was developed in the year: A) 1969-70 (©) 1968-75 (©) 1972-1988 (0) 1989-1904 8. Which of the folowing are valid variable names? ¢ (A) Long (8) Integer (C)_Not tong enough —(D) Both Band C 10. An ampersand(&) before the name of the variable name, defiotes: (A) Actual value (8) Variable name MC) Address (©) Data type 11, Format specifier is started with the symbol Re (a)? ®) % S os (0) # 12, Another term for a computer making a decisi (A) Sequential (B) selection (C) repetition (0) Iteration 13. Which ofthe following are valid case statements in a switch? (A) Caset: (8) Case x<4 (C) Case () Case 1.5; 14, How many types of loop structure are available in C language? ways ©) 3 (©) 2 ms 18. This means to increase a value by one: (A) Modulus (8) Increment (©) Decrement (0) None 416. Formal arguments are also calle: (A) Actual arguments (8) Dummy arguments (C)._Origi 117. Which mode opens only an existing fle for both reading and weitng arguments (0) Referenced arguments (A) we (8) " _ (ce) we (2) OR Visual Basic 8. Visual basic is a (A) Front end (8) Back end (C) Both "A" and"B" (0) None 9. The output of the compiler is called: (A) The program (B) Source code (C) Linked code (0) Object code 10. The naming prefix for a label control is: (A) lab (8) Ibe (©) 1 11. The property that changes tex! color is: (A) Back color ®) Fore color (©) Font color (0) Text color 12, Variable and constant names cannot contain a(n): (A) Number (8) Period | (©) Letter (0) Underscore 13, Which data type is used to handle a yes or No response: * (A) Boolean (8) Short | (@) Integer (0) Date 44. Allof the folowing are relational expressions except (Ay <> (8) & () = (D) >= 18. How many conditions are required to write an if...then...Else statement? (a) 0 (6) 1 (ce) 2 (0) 3 18. The keyword that makes the end of a Do structure is: (A) END DO. {B) Loop (©) ExitDo (2) GoDo 417. The increment ina for...Next loop can be: (A) Positive only (8) Negative only (C) Both Aand 8 (0) None 649-012-A-3¢ Inter PortI)-A-2018 [Roll No. To befilled in by the candidate| (NEW PATTERN) Subject Code | 6 | 0 | 8 | 3 Sessions; 2012-2014 & 2013-2015 Computer Science ¢ssay type) Time: 3:10 Hours Marks:-83 Section -I MS-ACCESS 2, Write short answers of any eight parts from the following. 2x8 =16 What is data? ii, What is fila? Define Data Set. fv, What are the properties of a relation? vv. What is foreign key? vi. Define entity,give examples also. Vil. Define Moduiaty. . Define functional dependency with example. ix, Whatis the use of MS-ACCESS? x. What is query? xi, What is the use of Data Sheet view? il, Define List box. C-Language Write short answers of any eight parts from the followi 2x8 =16 Who is a programmer? ‘What is an assembler? Iii, What is structured programming language? iv. Define expression, v. Why are comments used in program? vi. Write the given statement in C language. Z=(34y)(a%b?) vii, Trace the error . vill, Write the use of scanf function, integer x=: Printf("%d",x) S$ ix. Define escape sequence. x, What is the use of format specifier in Clanguage? xi, Trace the output xi Trace the output Print("Bookit Reading OP toat 3.14159; Printf(’is alt very good"); s Printf('#=%5.19" PrintfHabbit’); 3 4, Write short answers of any six parts frail the following. 2x6 =12 {. Describe selection structure. ii, Describe switch( ) statement ii, Trace the output Iv. Trace the error. void maing { void main( ){ int par int; : 25; i(R>0) printf("Good") getch()} Print((%e"1); geteh¢); } . What is counter variable? Vi. Trace the output void main( ){ int a: for (a=1; a<=100; 2=a*3) oe Print, getch( );} vil. What is function definition? vill. What is the use of formal parameter? ix. What do you'rfean by binary stream? OR Visual Basic Write short answers of any six parts from the following. 2x8 =16 1. Why i it important to identity a problem? Hi, What is object code? ill, Why source code cannot be executed directly? |v. What is concatenation of string? ¥. Define the USE of option explicit. vi, Describe the use of message box. vil, Write any two parameters of input box. Vili. What is goto statement? ix. Write the general form or syntax of Nested if. x. When should an if block is used instead of case block? xi, What is the purpose of case else? Xi. Briefly describe the working of Nested if. 4, Write short answers of any six parts from the following, 2x6 =12 I. Define it..then Else structure Ii, Define Do-Unti loop. Ii, What is the concept of sub keyword? iv. What is alignment Statement in visual basic? v. What is keydown event? Vi, Define relational operator. . Define comments in Visual Basic. viii, What is local variable? ix. Define logical error. Section -II MS-ACCESS Note: Attempt only one question from the following. ext=8 5. What are components of a logical model?Explain in detail. ¢ 08 6. Describe different data types used in MS-ACCESS. . 08 Section -1iT Note:Attempt any two questions either from “C-language¥r "Visual Basic". 7. Define language processor or translator?Discuss dllferent types of language processors? 08 8. Write @ program which inputs a number and tells whether itis even or odd? 08 8. Explain the working of while loop with flow chart and syntax. 08 Visual Basic 7. Define flowchart. Discuss different flowchart symbols used in visual basic. 08 8. Write a program in visual basie which inputs three numbers from user and tells maximum number from them, 08 8. Explain the working of Do Until Loop. 08 Section-IV (Practical) Bx3=15 Note: Answer any three parts from the following. 10(A). Explain the procedure for creating simple query. B, Howis auto report used to generate a report? CC. Write a program that subtract two numbers and show result on screen in C-language or using Visual Basic. D. Write a programm that inputs a number from the user and display a table of that number using for loop in (C-language or using For-Next loop in visual basic. E. Write a program in C-language that inputs two numbers in main function passes these numbers to funotion. ‘The function displays the maximum number or using Visual Basic, 650-012-A—- a, ner Parelee 2015 Roll No., ‘To bo filled in by the candidate (OLD PATTERN) PaperCode| 4 | 8|3|1 Session;2011-2013 Computer Science (orjective Type) ‘Time: 20 Minutes Marks: 15 NOTE: Write answers to the questions on objective answer sheet provided, Four possible answers A,B,C & D to each ‘question are given.Which answer you consider correc, fil the corresponding circle A,B,C or D given in front of each question with Marker or pen ink on the answer sheet provided MS-ACCESS 41.1, Which of the following type of file requires largest processing time? (A) Sequential fle (®) Random fle (C) Indexed sequential file (0) Direct access tite 2. Create comand is used to create a: (A) table (®) view (©) report (©) query 3. Relationship defines the logical connection between: (A) Fields (8) Records (©) Entities (©) None 4. In relational database, a table is also called a (A) Tuple (8) Relation (©) File (©) Schema 5. Extension of MS-Access database is: (A) mdb ®) .msdb (©) .mmadb (0) none 6. Assingle piece of information is called: (A) Field (8) Record (©) Entity (©) Attribute C-Language 7. Preprocessor directives are commands for: (A) Micro-processor —_(B) Language processor (C)_C-processor (©) C-compiter 8. Which ofthe following has lowest precedence? aw! @)+* © = © 9. The format specifier % is used for: ‘ (A) integer ©) Unsigned integer (C)-igned fost) Unsigned ong integer 10, If statement inside another if statement is called: (A) Branched if (@) conditional operator © Nested if (©) Retational operator ‘1, Which of the folowing is used for making two way. sion? (A) Irelse ©) itelse-t (©) Nested it (©) Switch 12, The statement that terminate loop: : (4) Terminate (@) Break (©) Exit (0) end 43, Semicolon is placed at the end of condition in: (A) Forloop (8) While loop (©) do-while toop (©) nested loop 44, Formal arguments are also called (A) Actual arguments (8) Dummy arguments {C) original arguments (0) referenced arguments 15. A file is stored in: (4) RAM (®) ROM (©) Harddisk (0) Cache OR Visual Basic 16. The lowest level at language is: wc (8) CH (©) Assembly (0) Java 17. Visual Basic is @ product of (A) Sun system ©) BM (©) Microsoft (0) Hewlett 48. The icon on the toolbox representes: (A) Program executable (8) VB controls (©) Shortcut to menu item (0) properties 419. Forms and controls are organized as (A) Properties (8) methods (©) Objects. (0) Events 20. Bytes occupied by integers in VB: a4 ©) 8 © 2 6 21. You can enter data in a contro! only when it has: (A) Tab order (8) Focus (©) Mask (©) Controt 22. Symbol of sting concatination is: | (A) ++ (8) -- () & (D) and 2, ‘Statement that indicates the end of decision structure: (A) Next (8) Endit (©) End (0) Else 24, Acontrol array can be added in {A) view mode (8) Debug window (©) Design mode (©) Print mode 695-012-A- Inter (Party -A2018, [Rott No. To be filed in by the canaldete| (OLD PATTERN) Subject Code | 4 | 8 | 3 Session; 2011-2013 Computer Science (essay type) Time: 2:10 Hours Marks: 60 Section -I MS-ACCESS 2. Weite short answers of any six parts from the following. 2x6=12 i. Define the erm data manipulation, Ji, Explain data independence. it, What is database key? Iv. Who is end user? \. Define the tem attribute vi. Whatis referential intesiy? Vil. Nome four database objects Vil, Whats degree ofa relation? ix, Wite two advantages of using forms. C-Language 3, Write short answers of any six parts from the following. 2xen2 |, Define lon-evel language il Differentiate between Assembly anguoge and High level language. ill Describe the term "machine independence’. _civs What is variable initialization? ¥. Define dentfirs in C tanguage. vi, Deseribe “getche" function Vil, Explain cer" function. ©” vil List some important function for input Ix. Trace out the error, Ss Void main (); Ss C } 4, Write short answers of any six parts from the following. 2x6=2 i. Whats the use of logical "OR" operator? il, How a file is closed? ii, Define Binary stream fv. Write dou the syntax of conditional operator. ¥. Define local variable. List some benefits of using functions vii. What happens if break statement is missed in case block? vii, List two difference between while and do while loop x. Write the expression for: a is either equal to 0 or greater than 0, OR Visual Basic 3. Write short answers of any six parts from the following 2x6=12 |. What is comping? 4. Whats NET platform? |. Whats VBA? iv. ‘Whats aiference between a projet fle anda form fle? % Mats he Pupose of name propery ofa contol? vi, What re thee slope for creatng VE projects? Vil. Deserve some events of VB for a form, ill, What i the use of keypress and keydown? 1x, How ate events procedure named? 4, Wrlte short answors of any six parts from the following. 2xeat2 |. Which statement is used to terminate the for Ul How many tines does the folowing loop execute? and while oop? a0 bo Print) untiva108y<30) printf("%d" x+y); Print("B"); iii, Whatis the use of i-else statement? iv. Why break statement is used in switch statement? v! Write down the syntax of do-while loop, What is the output of following code? vil. What are the two types of functions in C language? ix. Which function is used fo close a file in C language? OR Visual Basic 3. Write short answers of any eight parts from the following, 2x8 =16 i. List three uses of logic flow diagram. ii, What is VBA? State the purpose of naming controls iv. Define object events, v. What is constant? vi. Name different form events, vil. What do you mean by unload? Define explicit declaration ix. Describe currency variables. x. Define symbolic constant, What is message box? State the term comments, Write short answers of any six parts from the following, 2x6=12 Explain the use of input box. i. What are relational operators? iil, What isthe syntax of WHILE.....WEND loop? iv. What is @ counter controlied loop? ¥. What is the use of option buttons? vi, What are function parameters? Vil. What are Named constants in VB? vil What is Nested-t statement? ix. Define control array? Section -IT MS-ACCESS Note: Attempt only one question from the following. s 5. What is data modeling?What are the ingredients of data modeling> 08 6. Explain different date types available in MS-Access s 08 Section SII Note:Attempt any two questions either from "C-language’ or "Visual Basic", C-tahguage 7. How many types of operators are available in C?Describe brietly 08 8, Write @ program that inputs @ character from user and checks whether itis vowel or consonent using 08 switch statement? 9. What is ‘While loop"?Write its syntax. Explain its working with exemple. 08 Visual Basic 7. Define the process of analyzing a problem in etal 08 8. Write @ program in VB that inputs @ character from user and checks whether itis vowel or consonent?” 08 9. What is While-Wend loop?Write Its syntax.Explain ils working with example. os Section-IV (Practical) Note: Answer any three parts from the following. 10(A). Write @ procedure for sorting using menu, B. Write a procedure for running switchboard in MS Access, C. Write a program that accepts two numbers and exchange their values in C-language or in visual basic. D. Write a program that accepts two numbers from user and displays whether numbers are equal or not by using funetion in C-language or in Visual Basie, E, Write @ program that inputs a number from user and displays its table in C-language or in Visual Basic. 650-012-A. 7% Ine otasort [Roll No.. To be fitted in by the candidate Paper Code | 4| 8 | 3 | 1 Session; 2015-2017 Computer Science (Objective Type) Time: 20 Minutes Marks: 15 NOTE: Write answers to the questions on objective answer sheet provided. Four possible answers A,B,C & D to each question are given Wich answer you consider correc, fil the corresponding circle A,B,C or D given i front ofeach question with Marker or pen ink on the answer sheet provided, . MS-ACCESS 1.12 A database is an organized collection of __related data: (A) Physically 8) loosely (©) random (©) logically * 2: Apprimary key that consists of more than one attributes is called: = (A) Foreign key {B) Composite key (C) Primary key (©) Control key * 3. In.an E.R diagram, a rectangle represents a(n): ~ Entity (8) Attribute (©) Relationship (0) Fits 4, The output of the query is in the form of a: (A) Form (8) Report (©) Table (0) Query 5. Which data type is the default data type in MS-Access: (4) Text (@) Memo (C) Auto number (0) Number 6. A form within another form is called: (A) Main-form (8) Muttiform (©) Sub-form (©) Simple-form C-Language 7. A program's syntax error is detected by: (A) Debugger (B) Loader (C) Linker (0) Compiler 8, For A=4 and B=4 which expression evaluates as true? (A) A>=B (8) AB (©) AB (0) A&B 8. Which escape sequence can be used to begin a new line in C-language? aa @)\n Ct (0) b -10. Graphical representation of a program is called 2 = (A) Logical chart (B) Binary chart (©), iw chart (0) E-Rchart _ 11. In tfstatement.rue is represented by: ae (a) 0 8) 1 te) 2 ©) 3 * 42, The statement causes a loop to terminate early: (A) Exit (B) Terminate oh ©) End (D) Break 13. How many types of loop structures are present ii C? (ayt ©) 2 © 3 (0) 4 414, Global variables are created in A) Cache (8) ROM (C) Register (0) RAM 415. Which mode opens only an existing file for both reading and writing? aw @) "we" (©) "re" (0) "ae OR Visual Basic 7. The set of rules for wrting a program in any programing language is called: (4) Bug (8) Debug (C) A program (0) Syntax 6. Visual Basic is a product of (A) Microsoft @) 1m (©) Sun-System (0) Hewiett 9. The naming pre-fx for a Text box control is: (A) lab (8) txt (©) te (©) toi 10. Which of the following is @ valid VB data type? (A) Array (B) Char {C) Boolean (©) Int ‘11. The expression 3MODS has a value equal to: =. Ao (©) 3 os (0) 8 12) Allof the following are relational operators EXCEPT: we ®)= © 0) & ~ 13. Which of the following returns the true if A=25 and B=357 (ay ase (©) >=8 (©) Ac>B (0) A=B * 14, The keyword that marks the end of a WHILE structure: (4) END (®) LOOP (C) SKIP (0) WEND 45. Sentinel controlled loops are also known as: (A) Next oops (8) Conditional loops: (C) Counter loops (©) Nested loops 637-0120 38 Inter Part. 4.2017 Roll No. To be filed in by the candidate Session; 2015-2017 Computer Science ssa typ.) Time: 2:10 Hours Marks: 60 Section -I MS-ACCESS . 2. Write short answers of any six parts from the following. 2x6=12 ‘Why is report generator used in database system? I. What is the purpose of backup and recovery? i. Who is a database administrator? iv. Write the purpose of feasibility study. ~ v. What is the concept of transitive dependency? vi. Define repeating group. What do you know about RDBMS? ix, Enlist different types of forms in MS-ACCESS, C-Language 3. Write short answers of any six parts from the following. 2x6=12 |. What is the difference between machine language and assembly language? ‘What is meant by structured programming language? iii. Whet is meant by comments.Also give an exemple. iv, What is the difference between implicit and explicit type casting? v. Define format specifier with example, vi. Trace the errors. Define the term cardinality of a relation, . Find the output of the following code # Include # include void main () & main () { é =20, 2= printf("High level language") Se int. — 2=30; Z; printf (result=%d%d%d"x,y.2); viii, Find the errors ix, Define source code # include void Main( ) printf (%d%d" xy); , 4. Write short answers of any six parts from the following. 2x6 =12 1 Wie use off else if statement Describe nested oop . Find ener fom flowing cade iv. Find out fom the ftloning int yi int price=19; . iG ) if (pricel=10) print (yes) print price; \. Find out cutout of folowing vi. Convert wile into dowile int num=1; while (num<6) {printf ume pu . nt} vii. Describe user defined function. Vili. What is function call? - "ix. Compare binary and text stream. OR Visual Basic 3. Write short answers of any six parts from the following. 2x6 =12 1. What is properties window? fi. Define source code. lil, What is meant by structured programming language? iv. What is the difference between @ project file and a form file? vv. What is difference between machine language and _vi. Trace the errors. assembly language? Private bt-click() text = "welcome to VB" End sub vil. Find the errors. vii. Find the output of the following code. Private sub bt-click () private sub command! -click( ) option Explicit option explicit ye25 Dim xy.2 as integer Print("result="+z) End sub Print(result="8x8" "By&" “82) End sub ix. How are the properties set at design time and run time? 4, Write short answers of any six parts from the following. 2x6 =12 i. What do you know about Visual Studio? ii, Differentiate between z="p" and z=p. ill. Define operator precedence, iv, What igan assignment operator? ¥. Enlist about named constant. vi. HowSite character stored? vil. Show out the output. ifid error from following code. Dim mn Dim xy as integer m=40 se n=mxm print Result n print x%by; ix, Defing about foccs. Section -IT MS-ACCESS Note: Attempt omy one question from the following. axi=8 5. What is data modeting?Explain ingredients of data modeling 08 6. What are queries Explain types of queries. os Section -IIT Note:Attempt any two questions either from "C-language" or "Visual Basi Bx2=16 Clanguage 7. Write down step wise procedure for writing @ G Program. 08 8. Write @ program in C-language that inputs two numbers from user and finds whether they are equal or not. 08 8. What is while loop Write its syntax, also draw flowchart.Explain its working withthe help of an example. 08 Visual Basic 7. Explain application development steps in visual basic with example 08 8. Write @ program in V.B that inputs two numbers from user and finds whether they are equal or not 08 9, What is while-wend loop?Write its syntax,also draw flowchart Explain its working with the help of an example. 08 638-012-A-13000 C7 Inter {Pare -A-2017 Filled in by the candidate Paper Code 8} 3 I 1 Sessions;2013-2015&2014-2016 Computer Science (objective Type) ‘Time: 20 Minutes Marks: 17 NOTE: Write answers to the questions on objective answer sheet provided. Four possible answers A,B,C & D to each question are given Which answer you consider correct, fil the corresponding circle A,B,C or D given in front of each question ‘with Marker or pen ink on the answer sheet provided. : MS-ACCESS 4.1. Which of the following data model is more flexible: = (A) Network (8) Heirarchical (C) Relational (©) Object oriented * "2, Data inconsistency is caused by: : (A) Data organization (8) Data integrity (©) Data independence (D) Data redundancy 3. Primary key that consists of more than one attributes is: (A) Composit key (8) Candidate key (©) Foreign key (D) Alternate key + 4, Atable may have foreign keys: (A) one @) two (©) four (0) any number 5. In 3rd normal form, which form of dependency is removed? (A) Functional (8) Non-functional {C) Associative (0) Transitive ‘6. Which is a default data type of an attribute in table design? (A) Text (@) Number (C) Auto number (0) Memo -7. Which of the following is used to create and modify a form? (A) Form view (8) data sheet view (C) form design view —(D) new form view C-Language 8. Which ofthe following key combination is used to compile a ¢ program: (A) Criss (8) CirsFs. (©) Alea (©) Shit +F9 8, The number of bytes a double data type occupy in memory. (A) 04 (8) 08 ©) 10 0) 12 10. Which of the following format specifier is used for integer type dala? 1A) (®) %0 ©) % (©) %s - 11. Anampersand ' before the name of a variable denotes:. o> - (A) address (B) actual value 46) variable name (D) data type 412, Which programming structure makes only comparison? : (A) sequence (B) selection SS ©) repetition (0) itrative * 13. Which of the following is conditional operator? (A) Relational operator (B) Logical operat” (C) Temary operator (0) increment operator 14, What statement is used to move control to start of a loop? (A) continue (8) break (©) return (©) exit 18. Which ofthe following is executed once in @ for loop? (A) Decrement (8) Increment (C) Test condition (0) Initiaization 16. Variable declared outside of any function is: (A) global variable (8) local variable (C) static variable (D) automatic variable + 17, Which of the following mode creates new file? (ay 'w" 8) "we" (c) "" (0) "a" . OR Visual Basic 8. The number bytes used by long integer in visual basic. (a) 01 8) 02 (©) 04 (0) 08 8. The visual basic project is saved with extension: (A) Exe (®) .veP (©) fim (0) vB = 10. The Cint() method converts valid text int which type? AA) single (8) integer (©) double (0) floet 11. The MOD operator in VB is used for: ~ (A) Integer remainder (B) exponentiation (C) division (©) mutiplications 42. Which of the following is @ unary operator in VB? (a) AND (8) NOT (©) = + 43. A statement block in VB can consist of how many lines? (a) 01 (8) unlimited (C) at most 255 (©) 128 14, Which loop is suitable if the number of itrations are not known in advance? (A) Do...l00p...while(B) For...Next (C) Do....For (©) For...White 18. Setting the table index of a control to O wil: : (A) dispiays the control to right side {B)_ makes the control visible {(C) align the control to left {D) set the focus on it 16. You can enter data in a control only when it has the: (A) focus () property (©) tab order (©) method 17. When you run multiple form project visual basic automatically loads: (A) the first form saved —(B) the startup form (C) the last form saved (0) all the forms in application TAT-O12-AH ng Inter Part.tipA-2017 Roll No. To be filled in by the candidate jessions;&2013-2015&2014-2016 Computer Science ¢ssey type) ‘Time: 3:10 Hours Marks: 83 Section -1 MS-ACCESS Write short answers of any eight parts from the following. 2x8 =16 What is meant by data manipulation? li. Differentiate between candidate key and primary key. Write the purpose of using views. iv. Define parent and dependent table, \. Give any four examples of entity. vi. Which activities are involved in data analysis? “vii. Define relationship using an example. vil. Define the concept of synonym. . _ & Describe database object. x. What is the use of input mask? xi, Why is a list box used in form? + %lh What do you know about relational database management system(RDEMS). C-Language 3. Write short answers of any eight parts from the following, 2xa=16 + i Distinguish between source code and object code. What isthe use of "define" preprocessor? Describe the delimiters, 'v. Define user-defined identifier and give some examples ¥. Predict the output ofthe following code: Vi. Trace the error in the folowing code. void main () int 2b; : olrsor (}) int a=24 printi%a",a%2) ) c+; Printed, hd a,b); ~,_ Wil. Predict the output of the following code: vill. Desoibe field width specifier, also give any two examples . int x=5; printf, 96, 6d" x.x°4,x%a); x ” 3 Ra’ the empersend(&) used in scant function? —_ 5 What are integer constant2Give one example 31, Predict the output ofthe following code Trace the errors from the following code. void main () ‘ ¢ ‘ void main () intxy.a; 3 . ("a"), : ‘getch() Print scamanter x+y. y45, x42); } getehi "4, Write short answers of any six parts from the following. 2x6 =12 Write two advantages of switch statement Write the syntax of "i-else it-else statement? iit, Trace the error. iv. Trace output ‘void miain () o=5; { if (>a)! inta pepe fab * =p . print("Pakistan"); printf("%6d"p) else printf*Hold"); v. Trace output vi. Convert the following code into while loop = for {int i=1;i<=10;i84) While (k<=5) { { Printf("%éd\n"); Print (n'y } ) vit, What sa function call? viii, What is Binary Stream? ‘x. Why formal parameters are different from actual parameters? OR Visual Basic 3. Write short answers of any eight parts from the following. 2x8 i, Describe integrated development environment. What is code window? iil, Write any two steps for creating V.B project. /. Describe visual basic events.Give one example. V. What is the use of Keydown and keyup events? i. Trace the error from the following code: ifx=8; end if vii. Why is important to deciare variable before they can be used in V.8? vil, Explain the difference between constant and variable in V.B. ix, Predict the output of the following code: X. Trace the error of the following code Dim a As integer Dim n As integer Fora=0 to 10 printa q Next a End Sub xi, Predict the output of the following Code: xil. Predict the output of the following code: Dim A,B As integer Dim Nas integer N=10 B=2 Print NSN. Print A-B Print NON. Print ANB. 4. Write short answers of any six parts from the following, 2x6 =12 |. Write down two advantages of case statement Write.the syntax of “itelse-it statement, ii, Write any two pars of form object Wg is meant by hing a form? Wit any two mouse events, Wat is meen by method in visual basic? vit Whats function cal? vig Whats the use of keypress event? ix. When do we use variant datatpye? oe Settion -11 .MS-ACCESS Note: Attempt only one question from the followiiig. 8xt=8 5. Define database model?Describe different types of database models? 08 6. Define fiter.Explain different types of filters in MS-Access, 08 Section -IIT Note:Attempt any two questions either from "C-languago" or "Visual Basic" C-tanguage 7, What is meant by basic structure of C program?Discuss different parts of basic structure of C program os with the help of an exemple. 8. Write a ¢ program that inputs the number ofthe months ofthe year and display the name of the corresponding 08 ‘month using switch statement(eg if user enters 6, will display june). 9. What is do while( ) loop ?Write its syntax and diagram, Explain ils working with example. 08. Visual Basic 7, What is visual basic integrted development environment?Wrile down the steps of application development in 08 visual basic. 8. Write a visual basic program that inputs the number of the months of the year and display the name of the 08 corresponding month using select case(e.g if user enters 6 it will display june). 9. What is do while( ) loop? Write its syntax and diagram. Explain its working with example. 08 Section-IV (Practical) 5x3=15 Note: Answer any three parts from the following. 10(A). Write the procedure to create @ table in design view. B. Write a procedure to create a form using wizard C. Write a program to calculate the area of a circle in c-language or Visual Basic, Hint:Are D. Write a program to print numbers from 1 to 100 in c-language on visual basic. E. Write a program to compute square of a number using function in C-language or visual basic. 718-012-A~~- 1340 ar) york uw Pontasni Roll No. To be filled in by the candidate PaperCode| 4} 8| 3] 6 Session;2015-2017&2016-2018 Computer Science (objective Type) Time: 20 Minutes Marks: 15 NOTE: Write answers to the questions on ‘objective answer sheet provided. Four possible answers AB.C & D to each atiestion are given Which answer you consider corect, filth corresponding circle A.C or D given intont of each question with Merker or pen ink on the answer sheet provided 3 MS-ACCESS 41.1. The graphical query tool is known as: (A) Query arid (8) Design grid (C) Query form (0) Design form 2. A form within another form is called: 4A) Sub form (8) Main form (C) Muttiform (0) Header 3. The extension of image fie is: (A) ex! (@) doc (C) .bmp (©) ppt 4. Apprimary key that consists of more than one attributes is called: (A) Foreign key (B) Composite key {C) Mulli valued key (0) Global key 5. Merging the relation is also known as: (A) view integration _(B) view entities (C) view tables (P) view relations 6. A report may be based on: (A) Table (©) Fits (©) Byte (©) bits C-Language 7. While Loop is also called! (A) Conditional loop (B) Wend foop (C) Counter loop (©) Nested loop 8. Which is @ loop stunt? (A)it (8) ifelse (C) switch (0) for 8. Abuiltin function: < (A) cannot be redefined (B) can be redefined (C) catiriot return value (D) should be redefined 410. The following function is used to read character from a fle: .¢ (A) pute( ) (B) geto() SEP fouts() (D) fgets ) 11. The "exe" fle in c-language is produced by: & (A) Linker (8) Loader > (©) Comper (©) Interpreter 12. Variable cannot contain a(n): wa” (A) Number (B) Underscores" (C) Letter (0) Period 18. Which of the following is not valid Escape code? (ay it ew oy (0) ¥ 14, Another term for a conditional operator, (A) Ternary (8) Binary (©) Byte (0) iteration 15. Conditional operator takes: (A) one operand (8) Two operands (C) three operands (D) four operands . OR Visual Basic 7. Logical operator ~ A) And () = « <> 8. How do you find loop statement in following options? (A) ifelse ®) if (C) switch (0) for 9. The keyword use to terminate a Do structure: + (A) Loop (8) End do (©) Exitdo (0) End while 10. In counter controlled ioop itis important to dectare__and counter variable. (A) Identify ©) Initiaize (C) Size (0) Specity “11. The "exe" fle in visual basic is produced by: (A) Linker (@) Loader (C) Compiier (0) Interpreter 42. In Visual Basic variable cannot contain: (A) Number (2) Underscore (C) Letter (0) period 19. Which form property will put text into ttle bar of the form: (A) Title (8) Border text (©) Text (0) Header 14. Another term for a condition operator: (A) Ternary (8) Binary (©) Byte (0) Iteration 18, MoDt is (a) 20 1 © 0 (0) 2 837-012.A- Ae [Roll No. To be filed in by the candidate Into (Port 8 2018 Sessions;2015-2017&2016-2018 Computer Science ¢esay type) Time: 2:10 Hours Marks: 60 Section -I : MMS-ACCESS 2. Write short answers of any six parts from the following, 2x6 =12 “i. Define data manipulation li. Describe network model. |. Write any two uses of form. iv. Define the term cardinality ¥. Desoribe the term synonym. vi. Briefly explain normalization Vil, State the use of reports vill. Define iter. ‘x. Differentiate between fixed length and variable length field C-Language 3. Write short answers of any-six parts from the following. 2x6 =12 Differentiate between compiler and Interpreter. Define object code. State the purpose of header file, iv. What is assignment operator? ¥. Enist logical operators. vi. Define escape sequence. Find the error vili. Find the error Void main () void main () { { int o=7 inta=t0 prinie%ar.c; printie%a" ay; } BS ix. Write the output float print (968.4%); a 4. Write short answers of any six parts from the following. 2x6 =12 i. Find out two errors from following code, li, Find output from following code if x=ey) int price=10; printihetlo") if (price==10) {_ print(96d" price); Describe selection structure, ¥. Find out output from following code. int ij=0; for( i) { print'%d%a"i);) vil. What is function? ix: Define a stream. ) iv. Define sentinal values, vi. Convert while loop into Do while toop int while (1<=15) {print iti} Vili, Differentiate between function defination and declaration, OR Visual Basic 3. Write short answers of any six parts from the following. 2x6 =12 ‘Write any two properties of algorithm, ji, Why is assembly language called symbolic language? lil, How properties are set at design time and run time? iv. When is the visual basic in design time? ¥V, Define project explorer window. vi. Show the output | Dim A.B as integer A=10 “AA print B vii. Find the errors vill, Show output Option explicit Dim R,S,T as integer Dim D.E integer D=5 E=13 Fe(D°E)+7 Print F ix, Differentiate between structured and object oriented programming, 4, Write short answers of any six parts from the following. 2x6 =12 i, Define Expression. i. Define named constant. What is specified variable declaration? iv. How is character stored in VE? v. What data type is used in storing data? Vi. List out keyword with examples. vii. What is meant by data type? Vili. Show output of following Dim A,B..as integer 620 BNA Print B . x. How fo write following expression in VE. x x= “ 5-2 Section -IT MS-ACCESS ote: Attempt only one question from the following. axt=8 5. Define key and discuss ils different types. os 6. What is data type7Explain six cfferent datatypes available in MS-Access, oe Section -11T ote:Attempt any two questions either from “C-language" or “Visual Basic”. 8x2=16 C-language 7. What is bug and debuaging?Explain types of errors in C-program. os . Write @ program in C-language, which inpuls two numbers from the user and determines whether os the numbers are equal or not }9. What is While loop?\Write its syntax, also draw flowchart. Explain its working with the help of an exemple. 08 Visual Basic 7. What are controls ?Explain three basic controls in Visual Basic. os 8. Write @ program in Visual Basio, which inputs two numbers from the user and determines whether 08 the numbers are equal or not. 9. What is While-Wend loop?Write its syntax,also draw flowchart Explain its working with the help of an example. 08 638-012-1 wore ne Ponao |Roll No.. To be fited in by the candidate Paper Code | 8 | 8 | 3| 5 Session;2014-2016 Computer Science (objective type) Time: 20 Minutes NOTE: Write answers to the questions on objective answer sheet provided. Four possible answers A,B,C & D to each ‘quéstion are given. Which answer you consider correct, fil the corresponding circle A,B,C or D given in front of each question with Marker or pen ink on the answer sheet provided. 4, 2, 3, 10. "1 12, 18. 14, 16. 10, 11 12 8. 14 15 16. 17. Marks: 17 MS-ACCESS - The data in tables is entered in: (A) Design view (8) Normal view (C) Datasheet view (D) layout view Which of the following is used to retrieve data from database and represent it to the user in a formatted way? (A) Report (8) Form (©) Query (0) Table Which of the following is not a DBMS? (A) MS-Access (B) Excel (C) SQL server (0) Oracle SAL stands for: (A) Sort Query language (®) Seif Query Language (C) Seek Query Language (0) Structured Query Language ‘The foreign key is found in: (A) Parent table (8) Dependent table (C) Pivot table {D) Index table Inan ER-diagram, the rectangle represents: (A) Entity (©) Attribute (C) Relationship (P) None The goal of normalization is to (A) Get stable data structure (®) Remove constraints (C) Increase redundancy (0) Increase no. of retations C-Language (One execution of @ loop is known as a(n): (A) Cycle (®) Duration (C) eration (0) Test A loop which never ends is called: (A) Running toop (8) Continuous toop (C) nested loop (©) infinite oop The scant is a: 2 é (A) Built-in function (B) User defined function (C).¢‘Bocal function Ail is store © (A) RAM (6) ROM 246) Hard Disk Which data type is used to store a string value in ayatiable? (A) int (8) float ©) long Division by zero is an example of eS (A) Compile err (B) Runtime error (C) Logical error How many variables can be used in one printf function? (A) one (8) two (©) ten Which ofthe following is an output function? (A) print (®) getch (©) getche Which ofthe following statement is the simplest form of decision structure? (A) switeh (@) if statement (€) while loop Which of the following is equivalent to (p>=9)? (A) p=q)? (A) q) (D) Test (0) Infinite loop (©) keyword (0) Cache (0) String (0) None (D) many (D) input box (0) Nested If (P) Not(p>q) [Rott No. To be filed in by the candidate Computer Science ¢ssay type) Inter(Part- 42018 Session;2014-2016 Time: 3:10 Hours Marks: 83 7 Section -I . MS-ACCESS 2. Write short answers of any eight parts from the following. 2x8 =16 1, Distinguish between chekbox and radio button, «li List any two properties of a relation. v. Name any four data types available in MS Access. vil. How is referential integrity achieved? ix. Write any two advantages of using RDBMS. Differentiate between secondary key and primary key. iv. Whats the purpose of logical database design? vi. State the purpose of using normalization. vill, State the purpose of using reports in MS Access. x. Name two table views available in MS Access. Differentiate between data redundancy and data inconsistency. xi, Write eny two constraints for selecting a file organization. C-Language 3. Write short answers of any eight parts from the following. i. Briefly describe delimiter? What are run-time errors? ¥. Find errors in the following code statement. include ‘void main (}; { Printf(’Pakistan);, } Find out the output of folowing expression 20°(10/5-3))+13 ix, Define printf and scanf function xi, Predict the output of following. é Print (Pakistan\n Goodin County 4. Write short answers of any six parts‘from the foll i. List different types of control structures in C-language. ii. Trace the error from following code segment, int a,b,c; i(aseb==1), Printi(%d",0); ¥v. Write the output of the foliowing code inte=1;, do printf ("6a While (c++<=4); vil. What is function call? ~ ix. What is text file? x 2x Differentiate between syntax error and logical error? iv. Distinguish between implicit and explicit type casting, vi. Find errors in the following assignment. int abcd: char grade; s “Vili, Differentiate between gets and puts function x. Define assignment statement. xi, Preset output ofthe folowing: Prinif (‘Welcome \t to \t Lahore” 2x6 =12 Differentiate between break and continue statement. iv. Change the following code into while loop. int for(i jester Pakistan’); =10;i+) vi. Trace the error in the following code segment. inta for(a=1; ac=10; +4); Printf(%6f",a); vill, Define function Header. OR Visual Basic 3. Write short answers of any eight parts from the following. 2x8 =16 Define structure Programming, Why we need translators. Differentiate between property and method. Define integrated development environment. List down any two controls. vi. Describe the purpose of code window. vii. How are event procedure named. vill, Distinguish between keydown and keyup events, Describe Load method x. Find out errors in the following code. Ainleger ‘A=Contnt(TextB0. Msg) ‘Write down output of the following code. Write down output of following code. Dim a As Integer Dim a,b As Integer 0 220 Print alt0 6 Print’alb="Balb Print'aModb="SeModb 4. Write short answers of any six parts from the following, 2x6=12 i. Define Nested loop in Visual Basic Ui, What is index in an Array? Differentiate between-"Dim" and "Redim" iv. What is textile? v. Define For-NEXT loop working? vi. What is control array? vii. List three properties of Combox Box control vil. Write two Focus events. ix. How a function is called(invoked) in Visual Basic? Section -IT MS-ACCESS Note: Attempt only one question from the following. Bxt=8 '5. What is a key?Descrive any three types of keys used in database. 08. 6. Discuss different methods of modifying a table. 08 Section -IIT_ Note:Attempt any two questions either from "C-language” or "Visual Basic”. Bx2=16 C-language 7. What is the difference among Compiler Assembler and Inf@rpreter?Also give one example of a language in 0B which they are used. x 8. Write a program in C language that inputs three nugibers and finds maximum of them. 08 9. What is "While" loop? Write the syntax and drayits flowchart Expiain its working with example. 08 sual Basic 7. Write down the difference among complier,assembler and Interpreter?Aiso give one example of each 08 8. Write a program in VB that inputs three numbers and finds maximum of them. 08 8. What is "Do...While...Loop?Write the syntax and draw its flowchart. Explain its working with example. 08 Section-IV (Practical) BxS=15 Note: Answer any three parts from the following. 40(A). Write a procedure to create a form in MS-Access. B. Write a procedure to create a report in MS-Access. CC. Write a program in C or VB that inputs radius ofa circle and finds its area of circle by formula, A= 7 D. Write a program in C or VB that prints even integers from 10 fo 20 using for loop. E. Write @ function in C or VB that takes value of a variable as argument and returns its cube. 718-012-A- toe Inter@Port 1-8-2019 |Roll No.___re be fitted in by the candidate (For all sessions) Computer Science (objective Type) Time: 20 Minutes NOTE: Write answers to the questions on objective answer sheet provided. Four possible answers A,B,C & D to each ‘question are given. Which answer you consider correct, fil the corresponding circle A,B,C of D given in front of each question with Marker or pen ink on the answer sheet provided. 10. 4 12, 18, 14 16. 10. " 12 23 14. 16. 637-012-A-WHr He Paper Code | 8 | 8 | 3] 5 Marks: 15 (D) Many (0) Too! (0) Database (D) Tuple (0) Relationship (0) Partial (0) exit (0) for {D) Hard disk (0) File pointer (0) Logical error (0)! (2) (0) switch statement os () END (0) FOR...NEXT (0) 3 (0) Method (0) Load (D) Date (0) Ok only MS-ACCESS . The maximum number of tables in @ database are: (A) 01 (B) 02 {c) 03 In MS-Aocess, Find and replace command is found in: (A) File menu (8) Edit menu (©) View menu The logical grouping of characters is (A) File (8) Record (C) Field A virtual table that is constructed from other tables is called: (A) view (B) Table ({C) Relation In an ER diagram,a diamond represents: (A) Entity (8) Attribute “© File Which form of dependency is removed in 3NF? (A) Full Functional (B) Non-Funetional (C) Transitive C-Language ‘Which statement causes a loop to terminate early? (A) End (B) terminate (C) break Which of the following is a loop statement in C? (A) It-else-if (B) switch (C) itelse Giobal variables are created in: (A) ROM (B) RAM (C) Caches (On successfully closing a file in C,the felose() retums: s {A) 0 (zero) (B) NULL Division by zero (e.g, 6/0) is an exemple of < (A) Compiler error (8) Run time error 46) Syntax error Which of the following operators has lowest precedente’ (A) = (8) + a ©* The escape sequence for backlash is: s (ay (8) \o " (oe Anif statement inside another if statement is called (A) if statement (B) if-else statement (C) Nested if statement ‘When a relational expression is false, it has the vaiue: (Ayo (4 (co) 4 OR Visual Basic The statement that will immediately terminate a FOR...NEXT loop is: (a) EXIT (8) Terminate (©) Exit For Which of the following is a loop statement in visual basic? (A)IF..qThen..Eise(B) IF..ELSE (©) IF..ENDIF How many options can be selected if @ frame contains four option buttons? (ayo ®)1 (c) 2 Data can be entered in a control only when it has: (A) Focus (8) Mask (C) Event Which event detects the pressing of standard displayable character? (A) Keyboard (B) Keypress (C) Click ‘Which datatype is used to handle a Yes or No response? (A) Boolean (B) Short (C) Integer The default message box style is: (A) Retry cancel (B) Yes No Cancel (C) Yes No IF...END IF statement inside another IF statement is called: (A) IF_..END IF statement (6) IF...Then statement (C) Nested IF statement () IF.,.ELSE...IF The expression 15 MOD 4 has a value equal to: (A)3 (By) 5 () 7 (8 Inte Port 2019 Roll No. Tobe filled in by the canaidato| (FOr all sessions) Computer Science éssay type) ‘Time: 2:10 Hours . Marks: 60 Section -1 Ms-ACCESS 2. Write short answers of any six parts from the following. 2x6 =12 i. List file names from usage point of view. Who is a data administrator? + ii, Define attribute with exemple. jv. Why is Normalization used? ¥. Define data integrity Vi. Define form. State the use of wild cards. ‘What ate check boxes? Differentiate between data redundancy and data inconsistency. C-Language 3. Write short answers of any six parts from the following. 2x6 =12 Write the purpose of define directive. lil, What is the purpose of include directive? v. What is compound condition?Give an example. vil. Find errors include void main ( void ) ix. Write the use of printf( ) function with an example. 4. Write short answers of any six parts from the following, iDetermine the output 0) unjab");, printf ("Sindh"); i. Define compound statement. Vv. Determine the output int do { printf ("%d \n',n); nt; 3 While (nee! vii. Why is function used in program? ix. Compare binary and text stream, ji, Why do you include "stdio.h" header file in c-program? iv, Determine output of the code. int int y= Printi("%od \t %" xSby,x/y); vi. How an arithmatic overflow occurs? viii. Determine the output of the following code, infS=10; gp Iht b=12; SS inte; 2x6 =12 ii, Find the error Void main () { Far (int printf"%dn); } iv. What is nested loop? Vi. Find the error void main () IEF Uy printt("%ed" y);, } Describe function definition, OR Visual Basic 3. Write short answers of any six parts from the following. 2x6=12 4. What is program? li. Which language translator is used in visual basic? How visual basic code is executed? lv. Define the purpose of code window. Vv. Whatis difference between project and form Vi. Define event and method, vil, Determine the output. vill. Find ertors in the code. DIM x As Integer DIMx As float x=713 x35 print x xHe7.0 ‘x. What is active-x control? 4. Write short answers of any six parts from the following, 2x6 =12 What is nested loop? Determine the output i, Define compound statement, fil. Find the error Dim y=10; as integer Dim n=1 as integer, IFF y=6 than do print y print n nenet Loop Whiten: v. Determine output Vi. Find t68 error if (7%3=0) then 32° _DIMn=1 as Integer print ("Punjab'y; SS Form=t105 else RS print n print(*Sindh’); viii. Describe function definition. vil. Why is function used in program? ix. Compare binary and text stream, | Section -It MS-ACCESS Note: Attempt only one question from the following. oxt=8 5. Define data modeling.Explain ingredient of data modeling. 08 6. List down different data types in MS-Access, Discuss four data types. 08 Section -IIT Note:Attempt any two questions either from "C-language” or "Visual Basic", ax2=16 C-language 7. Define data type and describe three types in deta os | 8. Write @ program in C tanguage that inputs 2 number and finds whether it is positive, negative or zero 08 | 9. Define while loop and diferentiate while and do-whie loop in detail os Visual Basic | T. Define data type and describe three types in deta oe 8. Write a program in Visual basic that inputs a number and finds whether it is positive,negative or zero. 08 ‘9. What is Do-While loop?Discuss. flowchart,syntax and example of Do-While loop in detail, 08 638-012-A— Inter-(Part-II)-A-2021 Ww 7 : Roll No. To be fitled in by the candidate | (For all Sessions) | Paper Code [sfela|a| Computer Science (Objective Type) Time: 20 Minutes Marks:15 NOTE: Write answers to the questions on objective answer sheet provided. Four possible answers A,B,C & D to each question are given.Which answer you consider correct, fill the corresponding circle A,B,C or D given in front of each question with Marker or pen ink on the answer sheet provided. MS-ACCESS 4.1. Arithmetic manipulation of data is known as: (A) Summarizing (B) Classifying , (C) Sorting (D) Calculations 2. Anattribute is also known as: (A) Field (B) Table (C) Row (D) Relation 3. In ERD Model,the relationship between two entities is represented by a: (A) rectangular box (B) oval symbol (C) diamond symbol (D) line 4. Every relation must have a: (A) candidate key (B) primary key (C) secondary key (D) alternate key 5. Which of the following object of database is used to retrieve data from database? (A) Queries (B) Forms (C) Reports (D) Tables 6. Areferential integrity constraint is a rule that maintains consistency among the: (A) columns of two tables (B) two columns of same table (C) rows of two table (D). attribute of two tables C-Language 7. Every statement in aC program terminates with: ~ (A) Colon (B) Semicolon (C) Delimiters (D) comma 8. Preprocessor directives are commands for: (A) Microprocessor (B) Language processor (C) Loader (D) C preprocessor 9. Which of the following operators has lowest precedence: (A) = (B) ! (C) == (D) + 10. The logical not operator,denoted byl, is a: (A) Uniary operator (B) Ternary operator (C) Binary operator (D) Bitwise operator 41, The escape sequence for Tab is: (A) \f (B) \n (C) \r (D) \t 42. The format specifier %f is used for: ‘ (A) Character (B) Integer (C) Double (D) Float 43. A compound statement refers to a group of statements enclosed in: (A) () (B) {} (C) [] (D) "" 14. A loop inside the body of another loop is: (A) For loop (B) while loop (C) nested loop (D) infinite loop 45. Function prototypes for built-in functions are specified in: ‘ (A) source files (B) header files (C) object files (D) image files 637-12-A-1—-- Inter-(Part-II)-A-2021 Roll No. To be filled in by the candidate | (For all sessions) Coniputer Science Essay type) Time: 2:10 Hours Marks: 60 Section-| (MS-ACCESS) 2. Write short answers of any six parts from the following. 2x 6 =12 i. List two properties of relation. ii. What do you mean by primary key? iii. Define data modeling. iv. What is cardinality? v. How is MS-ACCESS loaded? vi. What are reports? vii. What is Join?Write its purpose. viii. Write uses of query. ix. Write two advantages of using a microsoft ACCESS IDE. (C-Language) 3. Write short answers of any six parts from the following. 2x 6 =12 i. Why is C known as strongly typed language? ii. Describe header file. iii. Write shortcut key to run a C-program. iv. Give any four examples of valid variable names. v. Differentiate between constant and variable. vi. What is high level language? vii. Determine the output of the following code viii. Find errors in the following code segment: int P=20 int m=0, n=5; if(P > 5) if(m%n>1) printf("OK"); printf("Success"); else printf("Failure"); ix. Write an expression in C-language for the given statement: age is from 18 to 25. 4. Write short answers of any six parts from the following. 2x6 =12 i. Write the syntax of printf and scanf functions. ii. Define the term stream in context of file handling. iii, What is meant by character input in .© iv. Find the errors in the following code segment. - C-programming language? oe a=10; Avg=0; While(a<=10); Avgt=a v. Trace the output of the following piece of code. vi. Determine the output of the following code segment. for(int x=1;x<=10;x=x+4) int j=5; printf("%d\n",x); While(j<=15) { printf("Pakistan\n") jFj+2; } vii. Write down any two benefits of functions. viii. What is meant by scope of variable? ix. Enlist escape sequences used for different purposes. Section -II (MS-ACCESS) 8x1=8 Note: Attempt only one question from the following. 5. Write four major components of database system. 08 6. Define functional dependency.How do partial dependencies affect a relation? 08 Section -III (C-language) 8x2=16 Note: Attempt any two question from the following. 7. Define programming language.Discuss two main types of programming languages. 08 8. What is control structure?Briefly describe basic control structures of C program. 08 9. Write a program that prints odd numbers between(1 to 100) using for loop. 08 638-12-A-----

You might also like