SlideShare a Scribd company logo
FAZAIA INTER COLLEGE LAHORE CANTT A1
SEND UP EXAMINATION DEC, 2017 (Lahore Board)
Subject: Comp. Sc. Time allowed: 20 mins
Class: XII Max. Marks : 15
Name: ________________ Roll No: _____________ Section:
________
OBJECTIVE
SECTION – A
Q1. Circle the correct option i.e. A/B/C/D. Each part carries one mark only.
(i) The linker combines different library files to the ____________.
(A) executable file (B) source file
(C) object file (D) output file
(ii) Which of the following key is used to save a file?
(A) F2 (B) F3
(C) F5 (D) F9
(iii) Void occupy how many bytes in memory?
(A) zero (B) one
(C) two (D) four
(iv) Increment and decrement operators are ______________.
(A) bitwise operator (B) assignment operator
(C) unary operator (D) binary operator
(v) Which of the following is valid character constant?
(A) a (B) “b”
(C) ‘6’ (D) =
(vi) x-=y+1 means ______________
(A) x=x-y+1 (B) x=-x-y=1
(C) x=-x+y+1 (D) x=x-y-1
(vii)The ___________ statement switches the control outside the block in which it is
used.
(A) switch (B) case
(C) if (D) break
(viii) Formal arguments are also called _____________.
(A) actual arguments (B) original arguments
(C) dummy arguments (D) referenced arguments
(ix) The actual parameters are passed to a function in __________.
(A) function prototype (B) function calling
(C) function definition (D) none of the above
(x) On successfully closing a file, the fclose() returns ___________.
(A) NULL (B) 0 (zero)
(C) 1 (one) (D) FILE POINTER
(xi) An array subscript should be ___________.
(A) float (B) double
(C) int (D) an array
(xii)Which of the following type of file require largest processing time?
(A) sequential file (B) indexed sequential file
(C) random file (D) direct access file
(xiii) CREATE command is used to create a _________.
(A) table (B) view
(C) report (D) query
(xiv) A label is meaningful only to a _________________ statement.
(A) if (B) break
(C) if –else (D) goto
(xv)Database development process involves mapping of conceptual data model into:
(A) object oriented data model (B) network data model
(C) implementation model (D) hierarchical data model
FAZAIA INTER COLLEGE LAHORE CANTT A2
SEND UP EXAMINATION DEC, 2017 (Lahore Board)
Subject: Comp. Sc. Time allowed: 20 mins
Class: XII Max. Marks : 15
Name: ________________ Roll No: _____________ Section:
________
OBJECTIVE
SECTION – A
Q1. Circle the correct option i.e. A/B/C/D. Each part carries one mark only.
(i) The ___________ statement switches the control outside the block in which it is
used.
(A) switch (B) case
(C) if (D) break
(ii) Formal arguments are also called _____________.
(A) actual arguments (B) original arguments
(C) dummy arguments (D) referenced arguments
(iii) The actual parameters are passed to a function in __________.
(A) function prototype (B) function calling
(C) function definition (D) none of the above
(iv) On successfully closing a file, the fclose() returns ___________.
(A) NULL (B) 0 (zero)
(C) 1 (one) (D) FILE POINTER
(v) An array subscript should be ___________.
(A) float (B) double
(C) int (D) an array
(vi) Which of the following type of file require largest processing time?
(A) sequential file (B) indexed sequential file
(C) random file (D) direct access file
(vii) CREATE command is used to create a _________.
(A) table (B) view
(C) report (D) query
(viii) A label is meaningful only to a _________________ statement.
(A) if (B) break
(C) if –else (D) goto
(ix) Database development process involves mapping of conceptual data model
into:
(A) object oriented data model (B) network data model
(C) implementation model (D) hierarchical data model
(x) x=y+1 means ______________
(A) x=x-y+1 (B) x=-x-y=1
(C) x=-x+y+1 (D) x=x-y-1
(xi) The linker combines different library files to the ____________.
(A) executable file (B) source file
(C) object file (D) output file
(xii) Which of the following key is used to save a file?
(A) F2 (B) F3
(C) F5 (D) F9
(xiii) Void occupy how many bytes in memory?
(A) zero (B) one
(C) two (D) four
(xiv) Increment and decrement operators are ______________.
(A) bitwise operator (B) assignment operator
(C) unary operator (D) binary operator
(xv) Which of the following is valid character constant?
(A) a (B) “b”
(C) ‘6’ (D) =
FAZAIA INTER COLLEGE LAHORE CANTT
SEND UP EXAMINATION DEC, 2017 (Lahore Board)
Subject : Comp. Sc. Time allowed: 2 Hrs 40
mins
Class : XII Max. Marks: 60
Section-I
Q No 2: Attempt any SIX parts. All parts carry equal marks. (2 6) = 12
(i) How do we organize the file on storage media?
(ii) What is report generator?
(iii) What is a VIEW? How do we create it?
(iv) Write down the properties of relations.
(v) Briefly explain foreign key.
(vi) What is Data Modeling?
(vii) Briefly explain the term Modality.
(viii) Define the term attribute.
(ix) What is Cardinality?
Q No 3: Attempt any SIX parts. All parts carry equal marks. (2 6) = 12
(i) Differentiate between getch( ) and getche( ).
(ii) Briefly explain between #include directive.
(iii) Differentiate between linker and loader.
(iv) What is compound assignment statement?
(v) Why and where defauly keyword is used?
(vi) Briefly describe the basic control structures for writing programs.
(vii) Write a program that displays the ASCII code of the character typed by the user.
(viii) Write a program to find out the greatest value from the two given values by using
conditional operator.
(ix) Briefly explain the switch statement.
Q No 4: Attempt any SIX questions. All question carries equal marks (2 6) =
12
(i) What is a sential controlled loop?
(ii) Briefly explain do-while loop.
(iii) What is a function prototype?
(iv) What is a coercion of arguments?
(v) What is the lifetime of global variables?
(vi) Write a program to demonstrate the structure of a function.
(vii) Illustrate the difference between text and binary streams.
(viii) What is a file pointer?
(ix) Discuss any four file access modes.
Section-II
Note: Attempt any ONE question. (1 8) = 8
Q5. (a) Briefly describe the different Database Models.
(b) What are the four major components of the Database Systems.
Q6. Explain the following:
a) Physical Data Model
b) Conceptual Data Model
Section-III
Note: Attempt any TWO descriptive answers of the following questions. (2 8) =
16
Q7. Write a program that finds sum of the squares of integers from 1 to n. Where n is a
positive value entered by the user (i.e: sum=12
+22
+32
+…+n2
)
Q8. (a) Briefly explain the function which is used to read strings of characters from a
file.
(b) Define GOTO statement.
Q9. (a) What is return statement?
(b) Write a program that will append records in contact.txt file.
(vi) Briefly describe the basic control structures for writing programs.
(vii) Write a program that displays the ASCII code of the character typed by the user.
(viii) Write a program to find out the greatest value from the two given values by using
conditional operator.
(ix) Briefly explain the switch statement.
Q No 4: Attempt any SIX questions. All question carries equal marks (2 6) =
12
(i) What is a sential controlled loop?
(ii) Briefly explain do-while loop.
(iii) What is a function prototype?
(iv) What is a coercion of arguments?
(v) What is the lifetime of global variables?
(vi) Write a program to demonstrate the structure of a function.
(vii) Illustrate the difference between text and binary streams.
(viii) What is a file pointer?
(ix) Discuss any four file access modes.
Section-II
Note: Attempt any ONE question. (1 8) = 8
Q5. (a) Briefly describe the different Database Models.
(b) What are the four major components of the Database Systems.
Q6. Explain the following:
a) Physical Data Model
b) Conceptual Data Model
Section-III
Note: Attempt any TWO descriptive answers of the following questions. (2 8) =
16
Q7. Write a program that finds sum of the squares of integers from 1 to n. Where n is a
positive value entered by the user (i.e: sum=12
+22
+32
+…+n2
)
Q8. (a) Briefly explain the function which is used to read strings of characters from a
file.
(b) Define GOTO statement.
Q9. (a) What is return statement?
(b) Write a program that will append records in contact.txt file.

More Related Content

PDF
Programming fundamentals using c++ question paper 2014 tutorialsduniya
TutorialsDuniya.com
 
PDF
Getting Started with C++
Michael Redlich
 
PDF
Getting started with C++
Michael Redlich
 
PDF
Samples of Competitive Examination Questions: Part XXIII
Ali I. Al-Mosawi
 
PDF
C++
ADITHYAM19
 
PPTX
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
Knowledge Center Computer
 
PDF
Computer science sqp
B Bhuvanesh
 
PDF
Bba 406 2015
VipulNirala
 
Programming fundamentals using c++ question paper 2014 tutorialsduniya
TutorialsDuniya.com
 
Getting Started with C++
Michael Redlich
 
Getting started with C++
Michael Redlich
 
Samples of Competitive Examination Questions: Part XXIII
Ali I. Al-Mosawi
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
Knowledge Center Computer
 
Computer science sqp
B Bhuvanesh
 
Bba 406 2015
VipulNirala
 

Similar to Fic (sendup dec17) cs lb (20)

PDF
Gate-Cs 1992
Ravi Rajput
 
DOCX
CXC CSEC Information Technology Multiple Choice Questions
Elliot Seepaul
 
DOCX
1. Which of the following is Stack structureA. FIFO (First .docx
ambersalomon88660
 
PDF
Systems Analysis and Design 9th Edition Kendall Test Bank
nsasadjike
 
PDF
Specialist marketing officer professional knowledge questions.pdf(1)
Nivi Mohanty
 
PDF
sad.pdf
Simrankaur3503
 
PDF
Top 40 Javascript Interview Questions and Answers.pdf
paldibya712
 
DOCX
Iwt long questions
Pinaki Bhusan Nayak
 
DOCX
Iwt long
Pinaki Bhusan Nayak
 
PPTX
20 basic computer mcqs
shah ali
 
PDF
NIMI COPA Question Bank Mock Test App MCQ
SONU HEETSON
 
PDF
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
Alex Stewart
 
PDF
Systems Analysis and Design 9th Edition Kendall Test Bank
nambanenci
 
PDF
Systems Analysis and Design 9th Edition Kendall Test Bank
rukamtamup
 
DOCX
Snsw mid-1 & 2 QB.docx.docx
VijayaDurga81
 
PDF
ASP.NET With C# (December – 2017) [Revised Syllabus | Question Paper]
Mumbai B.Sc.IT Study
 
DOC
ASSIGNMENT
Simranjeet Kaur
 
PDF
Systems Analysis and Design 9th Edition Kendall Test Bank
dykpawa
 
PDF
Systems Analysis and Design 9th Edition Kendall Test Bank
blphbbihd076
 
PDF
GUESS FUNDAMENTAL PAPER FOE CCAT Feb 2014
prabhatjon
 
Gate-Cs 1992
Ravi Rajput
 
CXC CSEC Information Technology Multiple Choice Questions
Elliot Seepaul
 
1. Which of the following is Stack structureA. FIFO (First .docx
ambersalomon88660
 
Systems Analysis and Design 9th Edition Kendall Test Bank
nsasadjike
 
Specialist marketing officer professional knowledge questions.pdf(1)
Nivi Mohanty
 
Top 40 Javascript Interview Questions and Answers.pdf
paldibya712
 
Iwt long questions
Pinaki Bhusan Nayak
 
20 basic computer mcqs
shah ali
 
NIMI COPA Question Bank Mock Test App MCQ
SONU HEETSON
 
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
Alex Stewart
 
Systems Analysis and Design 9th Edition Kendall Test Bank
nambanenci
 
Systems Analysis and Design 9th Edition Kendall Test Bank
rukamtamup
 
Snsw mid-1 & 2 QB.docx.docx
VijayaDurga81
 
ASP.NET With C# (December – 2017) [Revised Syllabus | Question Paper]
Mumbai B.Sc.IT Study
 
ASSIGNMENT
Simranjeet Kaur
 
Systems Analysis and Design 9th Edition Kendall Test Bank
dykpawa
 
Systems Analysis and Design 9th Edition Kendall Test Bank
blphbbihd076
 
GUESS FUNDAMENTAL PAPER FOE CCAT Feb 2014
prabhatjon
 
Ad

More from Fazaia inter college lahore (20)

DOC
Phy hssc-ii-bcd - copy
Fazaia inter college lahore
 
DOC
Phy hssc-ii-a2
Fazaia inter college lahore
 
DOC
Phy hssc-ii-a1
Fazaia inter college lahore
 
DOC
Phy hssc-ii-a1 -a2 copy
Fazaia inter college lahore
 
DOC
Math hssc-ii-a1
Fazaia inter college lahore
 
DOC
Math hssc-i-bc
Fazaia inter college lahore
 
DOC
Math hssc-i-a2
Fazaia inter college lahore
 
DOC
Math hssc-i-a1
Fazaia inter college lahore
 
DOC
Fic (sendup dec17) cs lb
Fazaia inter college lahore
 
DOC
Eng hssc-ii-bc
Fazaia inter college lahore
 
DOC
Eng hssc-ii-a2
Fazaia inter college lahore
 
DOC
Eng hssc-ii-a1
Fazaia inter college lahore
 
DOC
Eng hssc-i-a2
Fazaia inter college lahore
 
DOC
Eng hssc-i-a1
Fazaia inter college lahore
 
DOC
Chemistry hssc-ii-bcd -lahore board
Fazaia inter college lahore
 
DOCX
Chemistry send up examination examination 2017
Fazaia inter college lahore
 
DOC
Biology hssc-ii-bcd -lahore board - copy
Fazaia inter college lahore
 
DOC
Biology hssc-i-bcd
Fazaia inter college lahore
 
DOC
Biology hssc-i-a2
Fazaia inter college lahore
 
DOC
Biology hssc-i-a1
Fazaia inter college lahore
 
Phy hssc-ii-bcd - copy
Fazaia inter college lahore
 
Phy hssc-ii-a1 -a2 copy
Fazaia inter college lahore
 
Fic (sendup dec17) cs lb
Fazaia inter college lahore
 
Chemistry hssc-ii-bcd -lahore board
Fazaia inter college lahore
 
Chemistry send up examination examination 2017
Fazaia inter college lahore
 
Biology hssc-ii-bcd -lahore board - copy
Fazaia inter college lahore
 
Biology hssc-i-bcd
Fazaia inter college lahore
 
Biology hssc-i-a2
Fazaia inter college lahore
 
Biology hssc-i-a1
Fazaia inter college lahore
 
Ad

Recently uploaded (20)

PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PPTX
How to Apply for a Job From Odoo 18 Website
Celine George
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PDF
RA 12028_ARAL_Orientation_Day-2-Sessions_v2.pdf
Seven De Los Reyes
 
PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
PPTX
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
PPTX
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
PDF
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
How to Apply for a Job From Odoo 18 Website
Celine George
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
RA 12028_ARAL_Orientation_Day-2-Sessions_v2.pdf
Seven De Los Reyes
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 

Fic (sendup dec17) cs lb

  • 1. FAZAIA INTER COLLEGE LAHORE CANTT A1 SEND UP EXAMINATION DEC, 2017 (Lahore Board) Subject: Comp. Sc. Time allowed: 20 mins Class: XII Max. Marks : 15 Name: ________________ Roll No: _____________ Section: ________ OBJECTIVE SECTION – A Q1. Circle the correct option i.e. A/B/C/D. Each part carries one mark only. (i) The linker combines different library files to the ____________. (A) executable file (B) source file (C) object file (D) output file (ii) Which of the following key is used to save a file? (A) F2 (B) F3 (C) F5 (D) F9 (iii) Void occupy how many bytes in memory? (A) zero (B) one (C) two (D) four (iv) Increment and decrement operators are ______________. (A) bitwise operator (B) assignment operator (C) unary operator (D) binary operator (v) Which of the following is valid character constant? (A) a (B) “b” (C) ‘6’ (D) = (vi) x-=y+1 means ______________ (A) x=x-y+1 (B) x=-x-y=1 (C) x=-x+y+1 (D) x=x-y-1 (vii)The ___________ statement switches the control outside the block in which it is used. (A) switch (B) case (C) if (D) break (viii) Formal arguments are also called _____________. (A) actual arguments (B) original arguments (C) dummy arguments (D) referenced arguments (ix) The actual parameters are passed to a function in __________. (A) function prototype (B) function calling (C) function definition (D) none of the above
  • 2. (x) On successfully closing a file, the fclose() returns ___________. (A) NULL (B) 0 (zero) (C) 1 (one) (D) FILE POINTER (xi) An array subscript should be ___________. (A) float (B) double (C) int (D) an array (xii)Which of the following type of file require largest processing time? (A) sequential file (B) indexed sequential file (C) random file (D) direct access file (xiii) CREATE command is used to create a _________. (A) table (B) view (C) report (D) query (xiv) A label is meaningful only to a _________________ statement. (A) if (B) break (C) if –else (D) goto (xv)Database development process involves mapping of conceptual data model into: (A) object oriented data model (B) network data model (C) implementation model (D) hierarchical data model
  • 3. FAZAIA INTER COLLEGE LAHORE CANTT A2 SEND UP EXAMINATION DEC, 2017 (Lahore Board) Subject: Comp. Sc. Time allowed: 20 mins Class: XII Max. Marks : 15 Name: ________________ Roll No: _____________ Section: ________ OBJECTIVE SECTION – A Q1. Circle the correct option i.e. A/B/C/D. Each part carries one mark only. (i) The ___________ statement switches the control outside the block in which it is used. (A) switch (B) case (C) if (D) break (ii) Formal arguments are also called _____________. (A) actual arguments (B) original arguments (C) dummy arguments (D) referenced arguments (iii) The actual parameters are passed to a function in __________. (A) function prototype (B) function calling (C) function definition (D) none of the above (iv) On successfully closing a file, the fclose() returns ___________. (A) NULL (B) 0 (zero) (C) 1 (one) (D) FILE POINTER (v) An array subscript should be ___________. (A) float (B) double (C) int (D) an array (vi) Which of the following type of file require largest processing time? (A) sequential file (B) indexed sequential file (C) random file (D) direct access file (vii) CREATE command is used to create a _________. (A) table (B) view (C) report (D) query (viii) A label is meaningful only to a _________________ statement. (A) if (B) break (C) if –else (D) goto (ix) Database development process involves mapping of conceptual data model into: (A) object oriented data model (B) network data model (C) implementation model (D) hierarchical data model
  • 4. (x) x=y+1 means ______________ (A) x=x-y+1 (B) x=-x-y=1 (C) x=-x+y+1 (D) x=x-y-1 (xi) The linker combines different library files to the ____________. (A) executable file (B) source file (C) object file (D) output file (xii) Which of the following key is used to save a file? (A) F2 (B) F3 (C) F5 (D) F9 (xiii) Void occupy how many bytes in memory? (A) zero (B) one (C) two (D) four (xiv) Increment and decrement operators are ______________. (A) bitwise operator (B) assignment operator (C) unary operator (D) binary operator (xv) Which of the following is valid character constant? (A) a (B) “b” (C) ‘6’ (D) = FAZAIA INTER COLLEGE LAHORE CANTT SEND UP EXAMINATION DEC, 2017 (Lahore Board) Subject : Comp. Sc. Time allowed: 2 Hrs 40 mins Class : XII Max. Marks: 60 Section-I Q No 2: Attempt any SIX parts. All parts carry equal marks. (2 6) = 12 (i) How do we organize the file on storage media? (ii) What is report generator? (iii) What is a VIEW? How do we create it? (iv) Write down the properties of relations. (v) Briefly explain foreign key. (vi) What is Data Modeling? (vii) Briefly explain the term Modality. (viii) Define the term attribute. (ix) What is Cardinality? Q No 3: Attempt any SIX parts. All parts carry equal marks. (2 6) = 12 (i) Differentiate between getch( ) and getche( ). (ii) Briefly explain between #include directive. (iii) Differentiate between linker and loader. (iv) What is compound assignment statement? (v) Why and where defauly keyword is used?
  • 5. (vi) Briefly describe the basic control structures for writing programs. (vii) Write a program that displays the ASCII code of the character typed by the user. (viii) Write a program to find out the greatest value from the two given values by using conditional operator. (ix) Briefly explain the switch statement. Q No 4: Attempt any SIX questions. All question carries equal marks (2 6) = 12 (i) What is a sential controlled loop? (ii) Briefly explain do-while loop. (iii) What is a function prototype? (iv) What is a coercion of arguments? (v) What is the lifetime of global variables? (vi) Write a program to demonstrate the structure of a function. (vii) Illustrate the difference between text and binary streams. (viii) What is a file pointer? (ix) Discuss any four file access modes. Section-II Note: Attempt any ONE question. (1 8) = 8 Q5. (a) Briefly describe the different Database Models. (b) What are the four major components of the Database Systems. Q6. Explain the following: a) Physical Data Model b) Conceptual Data Model Section-III Note: Attempt any TWO descriptive answers of the following questions. (2 8) = 16 Q7. Write a program that finds sum of the squares of integers from 1 to n. Where n is a positive value entered by the user (i.e: sum=12 +22 +32 +…+n2 ) Q8. (a) Briefly explain the function which is used to read strings of characters from a file. (b) Define GOTO statement. Q9. (a) What is return statement? (b) Write a program that will append records in contact.txt file.
  • 6. (vi) Briefly describe the basic control structures for writing programs. (vii) Write a program that displays the ASCII code of the character typed by the user. (viii) Write a program to find out the greatest value from the two given values by using conditional operator. (ix) Briefly explain the switch statement. Q No 4: Attempt any SIX questions. All question carries equal marks (2 6) = 12 (i) What is a sential controlled loop? (ii) Briefly explain do-while loop. (iii) What is a function prototype? (iv) What is a coercion of arguments? (v) What is the lifetime of global variables? (vi) Write a program to demonstrate the structure of a function. (vii) Illustrate the difference between text and binary streams. (viii) What is a file pointer? (ix) Discuss any four file access modes. Section-II Note: Attempt any ONE question. (1 8) = 8 Q5. (a) Briefly describe the different Database Models. (b) What are the four major components of the Database Systems. Q6. Explain the following: a) Physical Data Model b) Conceptual Data Model Section-III Note: Attempt any TWO descriptive answers of the following questions. (2 8) = 16 Q7. Write a program that finds sum of the squares of integers from 1 to n. Where n is a positive value entered by the user (i.e: sum=12 +22 +32 +…+n2 ) Q8. (a) Briefly explain the function which is used to read strings of characters from a file. (b) Define GOTO statement. Q9. (a) What is return statement? (b) Write a program that will append records in contact.txt file.