The document contains important multiple-choice questions (MCQs) and topics related to Computer Science for the academic year 2023-24, specifically designed for students at Aspire Group of Colleges in Zafarwal. It covers various chapters focusing on database concepts, SQL commands, data relationships, and programming fundamentals. The document is authored by Prof. Muhammad Abu Baker Rashid, a lecturer in Computer Science.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
3 views10 pages
Computer Science Part 2 Notes
The document contains important multiple-choice questions (MCQs) and topics related to Computer Science for the academic year 2023-24, specifically designed for students at Aspire Group of Colleges in Zafarwal. It covers various chapters focusing on database concepts, SQL commands, data relationships, and programming fundamentals. The document is authored by Prof. Muhammad Abu Baker Rashid, a lecturer in Computer Science.
M.Phil. Computer Science, BSIT, B.Ed. (Secondary) ASPIRE GROUP OF COLLEGES, ZAFARWAL LECTURER COMPUTER SCIENCE MAIN DARMAAN ROAD, ZAFARWAL, NAROWAL ♣Chapter 1♣ (c) Composite key (d) Global key 9. No. of primary keys can exist in a table 1. A collection of raw facts and figures is (a) One (b) Two called (c) Three (d) Four (a) Data (b) Information 10. A row of a relation is called (c) Processing (d) None (a) Attribute (b) Entity 2. Storage and retrieval of data is related to (c) Field (d) Tuple (a) Data capturing (b) Data manipulation 11. An attribute is also known as (c) Managing results (d) Data finding (a) Table (b) Field 3. A set of related characters that represents (c) Model (d) Row a unit or data is called 12. In relational database system, a table is (a) Record (b) File also called (c) Field (d) None (a) Tuple (b) File 4. Which represents a collection of concepts (c) Schema (d) Relation that are used to describe the structure of as 13. The data in table is entered in database (a) Design view (b) Datasheet view (a) Data ware house (b) Database model (c) Normal view (d) Layout view (c) Data structure (d) Data type 14. A relation is also known as 5. SQL is used for (a) Table (b) Record (a) Structured Query Language (c) Field (d) File (b) Sort Query Language 15. A database containing all students in a (c) Self Query Language class would store basic data of students in (d) Seek Query Language (a) Record (b) Field 6. Which of the following data model is more (c) Cell (d) File flexible 16. In fixed field length, the number of (a) Network Model (b) Hierarchical model characters are (c) Relational model (d) Object data model (a) Predefined (b) Unlimited 7. Which of the following type of file require (c) Even (d) Odd largest processing time 17. Storage space is not wasted in (a) Sequential file (b) Random file (a) Fixed length field (c) Transaction file (d) Direct access file (b) Variable length field 8. Which of the following may be a temporary (c) Both a & b (d) None file (a) Master file (b) Transaction file ♣Chapter 3♣ (c) Backup file (d) None 1. Which of the following keys does not hold 9. Which of the following are major uniqueness property component s of database system? (a) Candidate key (b) Foreign key (a) Hardware (b) Software (c) Secondary key (d) Primary key (c) Data (d) All of them 2. An entity related to itself is called (a) Recursive relationship ♣Chapter 2♣ (b) One to One relationship 1. Insert command is used to insert (c) Many to One relationship (a) A new table (b) A new record (d) Many to Many relationship (c) A view (d) Dependencies 3. Database development process involves 2. CREATE command is used to create a mapping of conceptual data model into (a) Table (b) View (a) Object oriented data model (c) Report (d) Query (b) Network data model 3. SQL is used for (c) Implementation model (a) Data definition (b) data manipulation (d) Hierarchical model (c) Both a & b (d) Searching records 4. In ERD, the relationship between two 4. The foreign key is found in entities is represented by a (a) Parent table (b) Dependent table (a) Diamond symbol (b) Rectangle symbol (c) Pivot table (d) Index table (c) Oval symbol (d) Line 5. A table must have 5. In hybrid distribution which kind of (a) Primary key (b) Secondary key fragments is stored at only one site? (c) Composite key (d) Sort key (a) Critical (b) Non-critical 6. A logical grouping of characters is a (c) Both a & b (d) Only large (a) Record (b) File fragments (c) Field (d) None 6. Merging the relation is also known as 7. In a relational database, a single piece of (a) View integration (b) View entities information is called (c) View tables (d) View relations (a) Table (b) Record 7. Which of the following is used for associate (c) Entity (d) Attribute entities with one another 8. A primary key that consist of more than (a) Relationship (b) Attribute one attributes is called (c) Entity (d) Identifier (a) Foreign key (b) Primary key
M.Phil. Computer Science, BSIT, B.Ed. (Secondary) ASPIRE GROUP OF COLLEGES, ZAFARWAL LECTURER COMPUTER SCIENCE MAIN DARMAAN ROAD, ZAFARWAL, NAROWAL 8. A database consists of various components ♣Chapter 5♣ called 1. A database consists of various components (a) Properties (b) Tool called (c) Object (d) Entities (a) Tool (b) Properties 9. _________ types of relationships are used (c) Entities (d) Object (a) 2 (b) 3 2. Which of the following object is used to (c) 4 (d) 5 retrieve data from database 10. A person’s name, birthday and social (a) Queries (b) Forms security number are example of (c) Report (d) All of these (a) Attribute (b) Entities 3. The output of query is in the form of (c) Relationship (d) Descriptors (a) Table (b) Form 11. Which one is not related to an entity? (c) Report (d) Macro (a) Person (b) Concept 4. Microsoft Access saves the database file (c) Action (d) Object with extension 12. A relationship between countries and (a) .mdb (b) .msd capitals is an example of relationship (c) .mbd (d) None (a) One to One (b) One to Many 5. A record is a complete set of (c) Many to Many (d) None (a) Distinct fields (b) Related fields 13. In ER diagram, a rectangle represents (c) Designed fields (d) All of these (a) Attribute (b) Record 6. Type of language translator are (c) Entity (d) Table (a) 2 (b) 3 14. Which of the followings are data (c) 4 (d) 5 distribution strategies? 7. Which one is faster? (a) Centralized (b) Partitioned (a) Register (b) RAM (c) Replication (d) All (c) Hard disk (d) Floppy disk ♣Chapter 4♣ 8. ________ is not a database object 1. In 3NF, which dependency is removed? (a) Table (b) Query (a) Functional (b) Transitive (c) MS Word (d) Report (c) Partial (d) Non-functional 9. An IDE consist of 2. Which one refers to the correctness and (a) Text editor (b) Compiler consistency of data? (c) Debugger (d) All of these (a) Data independence (b) Data integration 10. A table is a two dimensional structure (c) Data integrity (d) Data model that consist of 3. The goal of normalization (a) X, Y Coordinates (b) Columns (a) Increase no.of relation (c) Rows (d) Both b & c (b) Get stable data 11. A record is a complete set of _____ fields. (c) Increase redundancy (a) Distinct (b) Related (d) None of these (c) Designed (d) All of them 4. In 2NF which form of redundancy is 12. The term commonly used to refer to removed software or program errors is (a) Functional (b) Partial (a) Crash (b) Short (c) Associative (d) Transitive (c) Down (d) Bug 5. In relation database a table is also called ♣Chapter 6♣ (a) Tuple (b) Relation 1. The data in table is entered in (c) File (d) Schema (a) Design View (b) Normal View 6. Two or more non-key attributes worked as (c) Datasheet View (d) Layout View a single key 2. How many types of relationships are there? (a) Primary key (b) Candidate key (a) 2 (b) 3 (c) Composite key (d) Secondary key (c) 4 (d) 5 7. Different attributes in two different tables 3. In relational database, a single piece of having same name as referred to as information is called (a) Homonym (b) Synonym (a) Field (b) Attribute (c) Acronym (d) All of those (c) Entity (d) Both a & b 8. Every relation must have 4. How many table views are available in MS (a) Secondary key (b) Candidate key WORD? (c) Primary key (d) Composite key (a) 2 (b) 3 9. A constraint between two attributes is (c) 4 (d) 5 called 5. In design view, you move from field to field (a) Functional relation using __________ button (b) Attributes dependency (a) Esc (b) Enter (c) Functional dependency (c) Tab (d) Spacebar (d) Functional relational constraints 6. The relationship between countries and 10. A foreign key is found in their capitals is an example of (a) Index table (b) Dependent table (a) Many to One (b) One to One (c) Pivot table (d) Parent table (c) Many to Many (d) None PROF. MUHAMMAD ABU BAKER [email protected] M.Phil. Computer Science, BSIT, B.Ed. (Secondary) ASPIRE GROUP OF COLLEGES, ZAFARWAL LECTURER COMPUTER SCIENCE MAIN DARMAAN ROAD, ZAFARWAL, NAROWAL 7. The graphical query tool is called (d) Removing virus from program (a) Query grid (b) Design grid 4. Which of the following languages require (c) Query form (d) Design form no translator 8. Find and replace command is found in (a) Assembly (b) Cobol (a) Edit menu (b) File menu (c) Machine (d) C, C++ (c) Tool (d) View menu 5. The “.exe” file is created by 9. Create command is used to create (a) Loader (b) Compiler (a) Table (b) View (c) Linker (d) Interpreter (c) Report (d) Query 6. Which of the following key is used to save 10. Which of the following is not a field the file in Turbo C++ property? (a) F2 (b) F3 (a) Field size (b) Format (c) F5 (d) F9 (c) Color (d) Index 7. Void occupy how many bytes in memory 11. The wildcard Sal[i]ma is (a) Zero (b) One (a) Salema (b) Salima (c) Two (d) Four (c) Both a & b (d) None 8. A function that doesn’t return any value has ♣Chapter 7♣ return type (a) float (b) null 1. Forms are designed for (c) void (d) int (a) Input data (b) Manipulate data 9. C language programs are divided into units (c) Modify data (d) All of these called 2. The form which contains the sub-form is (a) Section (b) Debug called (c) Functions (d) Syntax (a) Special form (b) Main form 10. In text file, data is stored in (c) Dialog (d) Child form (a) ASCII code (b) Binary code 3. How many are layouts of forms in MS (c) Octal code (d) Text code Access 11. The instruction x=y/0; will generate (a) 2 (b) 3 (a) Syntax error (b) Logical error (c) 4 (d) 5 (c) Runtime error (d) No error 4. The forms are the __________ end of our 12. Which of the following keys is used to database in MS Access compile a C program in C compiler? (a) Back-end (b) Front-end (a) F9 (b) Alt+F9 (c) Both a & b (d) None (c) Ctrl+F9 (d) Ctrl 5. __________ can be previewed on the screen before printing ♣Chapter 9♣ (a) Sub-form (b) Form 1. Variable are create in (c) Report (d) None (a) ROM (b) Cache 6. How many layouts are of reports? (c) Hard Drive (d) RAM (a) 2 (b) 3 2. Which of the following is valid character (c) 4 (d) 5 constant 7. A form within another form is called (a) a (b) “a” (a) Special form (b) Main form (c) ‘a’ (d) None (c) Sub-form (d) Child form 3. Which of the following data type offer the 8. Which control is used to select one and highest precision only one of multiple options? (a) float (b) long int (a) Radio button (b) Checkbox (c) long double (d) unsigned long int (c) List (d) Textbox 4. In C language, the sybol “=” represents 9. Forms are created in databases primarily (a) Comparison operator for (b) Assignment operator (a) Administrator (b) Managers (c) Equal to operator (c) Programmers (d) End users (d) None of these 10. The layout of a form which displays the 5. Relational operators are used to records in the shape of a table is (a) Establish a relationship among variable (a) Columnar form (b) Tabular form (b) Construct compound condition (c) Datasheet form (d) Justified form (c) Compare two values ♣Chapter 8♣ (d) Perform arithmetic operations 6. a += b is equivalent to 1. C language is a __________ language (a) a + b = b (b) a = ab (a) High level (b) Low level (c) a = a +b (d) b = b + a (c) Assembly (d) Machine 7. Variable and constant names can’t contain 2. Turbo C++ can compile for (a) Number (b) Underscore (a) C++ programs (b) C programs (c) Letter (d) Period (c) Both a & b (d) None 8. Which is not an arithmetic operator 3. Debug is the process of (a) + (b) / (a) Creating bugs in program (c) & (d) * (b) Identifying and removing bugs 9. Which of the following is a unary operator (c) Turbo C++ programs only PROF. MUHAMMAD ABU BAKER [email protected] M.Phil. Computer Science, BSIT, B.Ed. (Secondary) ASPIRE GROUP OF COLLEGES, ZAFARWAL LECTURER COMPUTER SCIENCE MAIN DARMAAN ROAD, ZAFARWAL, NAROWAL (a) ++ (b) + 9. __________ is not a valid escape sequence (c) +- (d) ? (a) \f (b) \r 10. Relational operators allows us to __________ (c) \b (d) \y numbers 10. Which of the following function is used to (a) Add (b) Multiply write character to a file (c) Compare (d) Divide (a) putc() (b) getc() 11. When the relational expression false, it (c) fputc() (d) fget() has the value 11. printf() function can show (a) Zero (b) Less than zero (a) Text (b) Values of variables (c) Greater than zero (d) One (c) Constant (d) All of them 12. Variable that holds a large group of 12. Which is a valid format specifier similar type of data is called (a) %10d (b) %7.2d (a) Scalar variable (b) Array (c) %-7f (d) All of them (c) Multiple value (d) Constant ♣Chapter 11♣ 13. Which operator has lowest precedence? 1. In if statement, false is represented by (a) + (b) = (a) 0 (b) 1 (c) ! (d) = = (c) 2 (d) 3 14. This means to increase a value by one 2. Conditional operator takes (a) Modulus (b) Increment (a) One operand (b) Two operands (c) Decrement (d) None (c) Three operands (d) Four operands 15. The symbols that perform operations on 3. The case block in switch() structure ends data are called with (a) Syntax (b) Operator (a) End select (b) End case (c) Relation (d) Operand (c) Break (d) Case el 16. Which is not a numeric data type? 4. Another term for conditional operator (a) float (b) int (a) Binary (b) Ternary (c) char (d) All (c) Byte (d) Iteration 17. The number of bytes used by int data type 5. Find the loop statement from the following (a) 2 bytes (b) 4 bytes (a) if else (b) if (c) 8 bytes (d) 32 bytes (c) for (d) switch 18. Which of the following is the example of 6. Completing repetitions of a loop in a unit prefix increment? time is called (a) a++ (b) ++a (a) Selection (b) Sequence (c) a+ (d) All of them (c) Loop (d) Iteration 19. Which of the following is not a logical 7. The type of expression x > y is operator? (a) Arithmetic (b) Logical (a) && (b) < (c) Relational (d) Comparison (c) || (d) ! 8. If x = 10 and y = 20, what will be the output ♣Chapter 10♣ of instruction if(x>y) printf(“Hello”); else 1. The function getche() is defined in printf(“Pakistan”); (a) stdio.h (b) conio.h (a) Pakistan (b) Hello (c) math.h (d) string.h (c) Hello Pakistan (d) None 2. The escape sequence for backslash is (a) \\ (b) \ ♣Chapter 12♣ (c) \b (d) \r 1. A loop within a loop is called 3. The format specifier %u is used for (a) Nested loop (b) Complex loop (a) interger (b) unsigned short (c) Infinite loop (d) Dual loop (c) unsigned float (d) unsigned long int 2. Functions that are the part of language are 4. Scanf() function is used to input called (a) Numeric values (b) String value (a) Intrinsic (b) Built in functions (c) Both a & b (d) None (c) Language defined (d) All 5. Getch() is a part of 3. Which is unconditional control transfer (a) stdio.h (b) conio.h statement (c) math.h (d) All (a) for (b) goto 6. ASCII code for a character is displayed (c) if (d) while using format specifier 4. This means to decrease a value by one (a) %d (b) %f (a) Modulus (b) Increment (c) %c (d) %x (c) Decrement (d) None 7. Format specifier is started with symbol 5. One execution of loop is called (a) ? (b) & (a) Iteration (b) Cycle (c) * (d) % (c) Duration (d) Test 8. Which of the following function is used to 6. While loop is also called write string to a file (a) do while loop (b) for loop (a) puts() (b) gets() (c) Conditional loop (d) All (c) fputs() (d) fgets()
M.Phil. Computer Science, BSIT, B.Ed. (Secondary) ASPIRE GROUP OF COLLEGES, ZAFARWAL LECTURER COMPUTER SCIENCE MAIN DARMAAN ROAD, ZAFARWAL, NAROWAL 7. Which statement is used to move the (c) scanf() (d) both a & b control to the start of the loop body? 7. Which mode can create a new file for user? (a) Continue (b) Break (a) “w” (b) “w+” (c) Switch (d) Next (c) “r+” (d) “a-*-” 8. Which of the following loop is a counter loop? SHORT QUESTIONS (a) for (b) while (c) do while (d) if ♣ CHAPTER 1 ♣ 9. How many times the instruction will 1. What is a file, field and record? execute? (x = 1; x < 5; x++) 2. What is data and information? (a) 3 (b) 4 3. What is data processing? (c) 5 (d) 6 4. Differentiate between master and 10. There are _____ loop statements in C language. transaction file. (a) 3 (b) 4 5. Compare sequential and direct or (c) 5 (d) 6 random files. 6. Define database and database ♣Chapter 13♣ system. 1. Function prototypes for built in functions are specified in 7. Who is an end user? (a) Source files (b) Header files 8. What is database model? (c) Object files (d) Image files 9. What is database management 2. Global variables are created in system? (a) RAM (b) ROM 10. What are the four major (c) Hard Disk (d) Cache components of database system? 3. Which of the following looks for the 11. Write a short note on database prototypes of functions used in a program? system. (a) Linker (b) Loader 12. What do you mean by data (c) Compiler (d) Interpreter integrity? 4. A built in function 13. What are the disadvantages of (a) Can’t be redefined(b) Can be redefined (c) Can’t return value (d) Should be DBMS? redefined 14. Define File Processing System. 5. Memory is allocated to a variable at the ♣ CHAPTER 2 ♣ time of its 15. Differentiate between fixed length (a) Definition (b) Declaration and variable length. (c) First reference (d) None 16. Define an attribute? Give an 6. Formal arguments are also called example. (a) Actual argument (b) Dummy argument 17. Distinguish between primary key (c) Original argument and foreign key. (d) Referenced argument 18. Define the term relation or table. 7. Built-in function as stored in Give an example. (a) ROM (b) RAM 19. Explain the properties of a (c) Cache memory (d) Hard Disk relation. ♣Chapter 14♣ 20. What is a view? And what is its 1. A file is stored in purpose? (a) RAM (b) Hard Drive 21. What is key? Enlist different types (c) ROM (d) Cache of keys. 2. Which of the following mode open only an 22. Define Primary key and Composite existing file for both reading and writing primary key. without destroying previous data 23. Define Candidate key and (a) “w” (b) “w+” Alternate key. (c) “r+” (d) “a+” 24. Define Foreign key and Secondary 3. Which of the following is used to write a key. string to the file? (a) puts() (b) putc() 25. Define Control key. (c) fputs() (d) fgets() 26. What is the role of database 4. A binary stream is a sequence of administrator? (a) Bits (b) Bytes 27. Write a short note on data (c) Kilobytes (d) Gigabytes administrator. 5. The fopen() function uses parameters ♣ CHAPTER 3 ♣ (a) 1 (b) 4 28. What is analysis? Enlist different (c) 3 (d) 2 6. Which function sends output to a file? steps involved in analysis. (a) printf() (b) fprintf() PROF. MUHAMMAD ABU BAKER [email protected] M.Phil. Computer Science, BSIT, B.Ed. (Secondary) ASPIRE GROUP OF COLLEGES, ZAFARWAL LECTURER COMPUTER SCIENCE MAIN DARMAAN ROAD, ZAFARWAL, NAROWAL 29. What do you mean by data ♣ CHAPTER 6 ♣ modeling? 65. What is a data type? Enlist 30. Define Entity with an example. different data types available in MS 31. Define Attribute with an example. Access. 32. Define Relationship with and 66. Distinguish between relationship example. and join. 33. What is the difference between 67. List three methods to create a entity class and entity instance. relation or table in MS Access. 34. Define the term redundancy. 68. List some advantages of query. 35. Define entity. Give an example. 69. Differentiate between design and 36. What is a relationship in database? datasheet views. 37. Define One-to-One Relationship 70. What is Field Format? with diagram. 71. Write a short note on input mask. 38. Write a short note on One-to-Many 72. Define freezing and hiding. Relationship. 73. What is degree of relation? 39. What do you know about Many-to- 74. How data integrity achieve? Many Relationship? 40. Define ER diagram with example. ♣ CHAPTER 7 ♣ 41. What is database design? Write the 75. Write down the procedure to names of its types. create a form. 42. What is cardinality? Also give an 76. Differentiate between form and example. report. 43. Write integrity constraints. 77. What is form? Write its uses. 44. Define modality with example. 78. What is Columnar form? 45. Write down the steps of data 79. Define Tabular form. distribution strategy. 80. Compare datasheet form and 46. What is file organization? justified form. 81. Define Checkbox and Radio Button. ♣ CHAPTER 4 ♣ 82. What is the concept of Sub form? 47. What is meant by data integrity? 83. What do you know about 48. Define the terms synonym. Columnar report? 49. What the term homonym means? 84. Write a short note on switchboard. 50. What is normalization? Draw its 85. Define linking and switchboard. diagram. 86. What is Tabular report? 51. What is database anomaly? Write 87. Shortly explain the radio button. insertion, deletion and modification anomalies. ♣ CHAPTER 8 ♣ 52. Define functional dependency. 88. What is structured programming? 53. What is meant by partial 89. Define unstructured programming. dependency? 90. Define the terms bug and debug. 54. What are database anomalies? 91. What is compiler and interpreter? 55. Write down the conditions for a 92. How does compiler works? Write table to be in 2NF. shortcut key to compile and execute a program. ♣ CHAPTER 5 ♣ 93. What are delimiters? 56. What is an IDE (Integrated 94. Differentiate between source code Development Environment)? and object code 57. Define query and database objects. 95. Write a difference between low 58. Write the procedure to create a level and high level languages. new database in MS Access. 96. Which is the most difficult error 59. Write a comparison of form and and why? report. 97. Distinguish between preprocessor 60. Write a short note on RDBMS directives and header files. (Relational Database Management 98. Write a short note on System). programming language. 61. Write down the uses of Query. 99. What are different steps of 62. What do you know about database executing C program? object? 100.What do you know about Main 63. Why table object is most Function? important? 101.What are statement terminators? 64. How report is created? 102. What is assembler?
M.Phil. Computer Science, BSIT, B.Ed. (Secondary) ASPIRE GROUP OF COLLEGES, ZAFARWAL LECTURER COMPUTER SCIENCE MAIN DARMAAN ROAD, ZAFARWAL, NAROWAL 103. Define C statement. 139. What is selection structure? 104. What is debugging? Write its types. 105. What is header file? Write any 140. What is the limitation of simple two header file in C. “if” statement? 106. What is compiling? 141. Define if statement with two ♣ CHAPTER 9 ♣ alternatives. 107. Write names of data types used 142. Write the working of multiple if to store data in C language. statement. 108. Define keywords with examples. 143. What is function call? Draw its 109. What are variables? flow chart. 110. What is variable declaration? 144. What is nested if statement? 111. Write down C statement to Write its syntax. declare three character 145. Why we need switch statement variables in one line. while we have nested if else 112. Define variable initialization. statement? 113. What are standard identifiers? 146. What is sequence structure? 114. What do you know about user 147. Write a short note on loop defined identifiers? constructs. 115. What is variable definition? ♣ CHAPTER 12 ♣ 116. What are keywords? 148. What is while loop? Write its 117. What is compound statement? syntax. 118. Define range and precision. 149. Write the working of while loop 119. Shortly define type casting. with flow chart. 120. What is constant? Give an 150. Write the working of do-while example. loop with flow chart. 121. Write a short note on assignment 151. Differentiate between while and statement. do-while loop. ♣ CHAPTER 10 ♣ 152. What is for loop? Draw its flow 122. What is an escape sequence? chart. Give an example. 153. Write the working of for loop. 123. What is standard input and 154. Difference between counter output? controlled loop and sentinel 124. What is the use of scanf( ) controlled loop. function? Write its syntax. 155. Define Break and Continue 125. What is format specifier? Write statements. four examples. 156. What do you know about Goto 126. Define getch() function. statement? 127. What is getche() function? 157. Define nested loop with example. 128. Define clrscr() function. 158. Can we use if and goto statement 129. Define gets and puts. to construct a loop? 130. What is control string? 159. Draw the flowchart of for loop. 131. Write printf() function in string 160. What is sentinel control loop? form. ♣ CHAPTER 13 ♣ 132. Define size of operator. 161. What is function? Explain its 133. How character datatype prints importance. character? 162. Write different functions of C ♣ CHAPTER 11 ♣ language. 134. What happens if break is missed 163. What do you know about in case block? function header and function 135. Distinguish between simple if body? and if statement with two 164. Define function declaration and alternatives. function initialization. 136. Write down the syntax of if-else 165. What is function definition? structure. Write down the places of 137. Define conditional operator? defining a function? Write its syntax with examples. 166. What is function call? 138. What is control structure? Write 167. How does a function return a the name of types. value? And how can this value be used?
M.Phil. Computer Science, BSIT, B.Ed. (Secondary) ASPIRE GROUP OF COLLEGES, ZAFARWAL LECTURER COMPUTER SCIENCE MAIN DARMAAN ROAD, ZAFARWAL, NAROWAL 168. What is the difference between 12. How would you create, edit, local and global variable? compile, link and execute a 169. What is meant by scope of local program? and global variable? 13. Define bug. Explain different types 170. What are formal and actual of bugs in C language. parameters? ♣ CHAPTER 9 ♣ 171. What is function definition? 14. Write down the rules for naming 172. What do you know about built-in variables in C language. function? 15. What are operators? Define ♣ CHAPTER 14 ♣ different types of operators in C 173. Difference between text and language with example. binary stream. 16. What is constant? Explain different 174. What is the use of Newline and types of constants. EOF in files? ♣ CHAPTER 10 ♣ 175. What is file pointer? 17. Write a program which converts 176. Why is it important to close a distance in kilometers into meters. file? 18. Write a program which calculates 177. List different ways to write data the area of square. in text files? 178. What is string and how it can be ♣ CHAPTER 11 ♣ declared and initialized? 19. Explain the if-else-if with 179. List types of input and output flowchart. streams. 20. Explain the nested-if statement with flowchart. LONG QUESTIONS 21. Briefly explain the if-else ♣ CHAPTER 1 ♣ statement. Also draw its flowchart. 1. What is database model? Explain ♣ CHAPTER 12 ♣ different types of database models. 22. What is “for” loop? Explain its 2. What are the advantages and working with flow chart and disadvantages of database example. management system? 23. Define “While” loop. Briefly 3. What is database system? Explain describe the working of while loop. different components of database 24. What is “do-while” loop? Describe system. its working with flow chart. ♣ CHAPTER 3 ♣ 25. What is nested loop? Explain its working with examples. 4. Define data modeling. What are the ingredients of data modeling? 5. Briefly describe the logical IMPORTANT PROGRAMS database design process with help ♣ CHAPTER 10 ♣ of diagram. 1. Write a program that calculates 6. What is a relationship? Explain the and print area of square types of relationships. 2. Write a program that adds two ♣ CHAPTER 5 ♣ floating numbers and shows their 7. Explain the database objects to sum store and retrieve data. 3. Write a program that displays the ♣ CHAPTER 6 ♣ use of escape sequence 8. What is field property? Discuss 4. Write a program that exchange the different field properties in detail. values of two variables and print 9. Explain different data types actual and exchanged values available in MS Access. 5. Write a program that inputs distance in kilometers and ♣ CHAPTER 8 ♣ converts it into meters 10. What is language translator / preprocessor? Explain different ♣ CHAPTER 11 ♣ types. 1. Write a program that inputs two 11. Write a detail note on structure of numbers from the user and finds C language. whether 2nd number is square of 1st number.
M.Phil. Computer Science, BSIT, B.Ed. (Secondary) ASPIRE GROUP OF COLLEGES, ZAFARWAL LECTURER COMPUTER SCIENCE MAIN DARMAAN ROAD, ZAFARWAL, NAROWAL 2. Write a program that inputs two numbers from the user and prints Extras the larger one on screen 1. Write a program that prints 3. Write a program in C, which inputs numbering from 1 to 100 year and prints whether it is leap year or not 2. Write a program that calculates 4. Write a program that inputs two cube of a number using function. numbers from the user and finds whether numbers are equal or not. 3. Write a program that displays first 5. Write a program that inputs a ten numbers and their sum using number from the user and finds while loop whether it is positive, negative or zero 4. Write a program that calculates 6. Write a program that inputs three average of three numbers numbers from the user and finds the smallest number using nested 5. Write a program that displays first if 10 odd numbers and their sum 7. Write a program that inputs a using while loop character from the user and finds whether it is vowel and 6. Write a program that inputs a consonants. number from the user and finds 8. Write a program that inputs a whether it is even or odd weekday number from the user and prints the name of the day on 7. Write a program that inputs length screen using switch statement. and width from the user and 9. Write a program that inputs two calculates area of rectangle numbers and one arithmetic operators (+, - , *, /) from the user and applies operations according to the entered operator. ♣ CHAPTER 12 ♣ 1. Write a program that displays first ten numbers and their sum using while loop 2. Write a program to find the factorial of number entered by the user using while loop 3. Write a program to find the factorial of number entered by the user using do-while loop 4. Write a program to find the factorial of number entered by the user using for loop 5. Write a program that inputs a number from the user and displays the table of that number using for loop 6. Write a program that displays first 10 odd numbers and their sum using while loop 7. Write a program to calculate the square of a positive number. Also handle negative numbers properly.