Sie sind auf Seite 1von 3

KEN ACADEMY (CRASH PAPER-1) 2ND YEAR COMPUTER SCIENCE

SECTION A ( MARKS 15) Time Allowed : 20 Minutes NOTE :


Section- A is compulsory and comprises pages 1-2. All parts of this section are to be answered on the question paper itself. It should be completed in the first 20 minutes and handed over to the Vigilantes. Deleting / overwriting is not allowed. Do not use lead pencil. Insert the correct option i.e. A/B/C/D in the empty box given opposite each part. Each part carries one mark.

Q. 1

i. Which of the following format specifire is used for integer data type :
A. %d C. %s B. D. %c %f

ii. Which character signifies the beginning of an escape sequence? A. { C. // B. D. \ /

iii. The function used for input and output is stored in :


A. stdio.h C. string.h B. D. conio.h math.h

iv. which of the following relation operator represents Not Equal to?:
A. != C. =! B. D. => <==

v. Which of the following returns True if A=25 and B=35 :


A. A+B C. A!=B expression? A. ( ) C. / B. D. * + B. D. A>=B A=B

vi. Which choice has the highest order of precedence when computing an

vii. Which of the following key is used to compile a program:


A. ALT+F C. CTRL+S B. D. CTRL+F9 IALT+S

viii. void occupy how many bytes in memory? A. Zero C. Two B. D. One Four

ix. The programmer usually enters source code into a computer using:
A. Compiler C. Debugger called: A. Byte C. Character B. D. Record Field B. D. Text Editor Linker

x. A collection of data that consists of name, address and email of a person is

xi. Data that causes inconsistency lacks:


A. Good Data C. Data redundancy database is called : A. Attribute C. Record B. D. Field Entity B. D. Data integrity Data anomaly

xii. A person, place, thing, event or condition about which data is kept in the

xiii. Which field listed below is the most appropriate primary key? A. A persons name C. a persons birthday B. D. A persons street name a persons security code

xiv. An entity related to itself in an ERD model refers to : A. Recursive relationship C. Many-to-Many B. D. One-to-Many One-to-One

xv. Which of the following is used to associate entities with one another? A. Entity C. Identifier B. D. Attribute Relationship

____________________________________________________ For Examiners use only : Total Marks :

15

Marks Obtained :

KEN ACADEMY (CRASH PAPER-1) 2ND YEAR COMPUTER SCIENCE


Time Allowed : 2:40 Minutes NOTE : Total Marks B and C : 60

Section B and C comprise Pages 3 and questions therein are to be answered on the separately provided answer book . Answer THIRTEEN PARTS from Section B and attempt any THREE QUESTIONS from Section C. Use answer sheet. Write your answers neatly and legibly.

SECTION B ( Marks 39)


Q. 2 Attempt THIRTEEN questions. The answer to each part should not exceed 5 to 6 lines. ( 13 x 3 = 39 ) i. ii. iii. iv. v. vi. vii. viii. ix. x. xi. xii. xiii. xiv. xv. xvi. What are format specifire and sequence format? Write note on the following with example a) FOR LOOP, b) DO LOOP, c) DO-WHILE LOOP Write a program to display alphabets from A to Z using FOR Loop. Write the following statement in C language Z = area area What is difference .c and .cpp ? Write a structure of C Language with example. What are traditional file approach and database approach? What are ER diagram and ER Model? Explain it. What is indexing? Explain What is database object? Explain What are the field data type? Explain. What is referential integrity with example? How many relations keys? Explain with example. Write note on Entity, Relationship & Attribute What is the use of %x, %g %o? What is floating-point variables? Explain its declaration, bytes and range?

SECTION C ( Marks 21)


NOTE: Attempt any THREE questions. All questions carry equal marks ( 3 x 7 = 21 ) Q. 3 Write a program that performs all compound assignment operations on an integer Variable? 7 Q. 4 Write a program that inputs two numbers and exchanges their values. The program should display the values of variables before and after exchange. 7 Q. 5 Discuss that the C language is High Level, Low Level, Machine Level or Assembly Language. 7 Q. 6 Write a program prints a table of equivalent temperatures in both Fahrenheit and Celsius with an increment of 5 (range 50 100F) 7 3

Das könnte Ihnen auch gefallen