Inter (Part-II) Bahawalpur Board 2016
Computer
Part II (Objective Type)
Time Allowed: 20 MinutesĀ
Max. Marks: 17
Important Instruction
Note.Q.No.1 from sr, no.8 to 17 is of two types:- (i) C-Language (ii) Visual Basic. The candidates are required to attempt any one of them. While Q.No.1 from sr. no. 1 to 7 is compulsory for all candidates.
Note: For possible choices A,B,C,D to each question are given. Which choice is correct, fill that circle in front of that question number. Use marker or pen to fill the circules. Cutting or filling two or more circules will result in zero mark in that question.
- A collection of related field is:
(A) File
(B) Database
(C) Table
(D) Record
- Which of the following data model is more flexible?
(A) New work model
(B) Hierarchal model
(C) Relational model
(D) Object data model
- A relation is also known as:
(A) Table
(B) Tuple
(C) Entity
(D) Attributes
- In an E-R diagram, a rectangle represent a (n):
(A) Attributes
(B) Entity
(C) Relationship
(D)Field
- Two or more attributes having different names but same meaning are called
(A) Homonyms
(B) Aliases
(C) Synonyms
(D) Alternates Attributes
- Which key is used to move from field to field in table window in datasheet view?
(A)Tab
(B) Esc
(C) Enter
(D) Spacebar
- Which of the following is used to receive database and represent it to the user in a formatted way?
(A) Form
(B) Query
(C) Table
(D) Report
- A program syntax detected by:
(A) Linker
(B) Complier
(C) Loader
(D) Debugger
- Which term describes the kind of value that a variable can store:
(A) Data type
(B) Variable name
(C) Variable type
(D) Variable size
- The format specifier % u is used for:
(A) Integer
(B) Unsigned short
(C) Unsigned Float
(D) Unsigned long int
- Which of the given is not a valid escape sequence:
(A) /t
(B) /r
(C) /y
(D) /f
- In If statement false is represented by:
(A) 1
(B) 2
(C) 3
(D) 0
- Which of the given is used for making two way decision:
(A) If
(B) If else
(C) Nested If
(D) Switch
- Which statement is used to move the control to the start of the loop body :
(A) Continue
(B) Break
(C) Switch
(D) Default
- Semi colon is placed at the end of condition n:
(A) Switch
(B) For-loop
(C) While loop
(D) Do-While-loop
- Global variable are created in:
(A) ROM
(B) Cache
(C) RAM
(D) Hard Disk
- Which of the following character is used to mark the end of the string?
(A) \0
(B) /0
(C) \a
(D) \n
Inter (Part-II) Bahawalpur Board 2016
Computer
Part II (Subjective)
Time Allowed: 3.10 HoursĀ
Max. Marks: 83
Note:It is compulsory to any (8) parts from Q.No. 2 .No. 3 and Q.No.4 consist, of two parts i.e C- Language and Visual Basic. The Candidates have to attemptany one part each one these question i.e either C-Language or Visual Basic and will answer any (8) parts of question No.3. and any (6) parts of Q.No.4 Attempt Section-II according to given instruction .While attempt any (3) parts from Q.No.10
Section-III (Practice Part)
Question #2
- What is Data Processing?
- List any two types of keys.
- Write any two properties of Relation.
- What is Analysis in Database.
- Define Cardinality.
- What Is Partial Dependency in a Relation?
- What is Data Base Wizard?
- Name two table views available in MS - Access.
- Give one difference between form and Report.
- Write two responsibilities of a Database Administrator.
- Why file organization is important in Database Design.? Give two reasons.
- Write any two advantages of Integrated Development Environment.
C- Language
- List any four commonly used High Level Languages.
- Why the Source Code cannot be executed directly?
- Differentiate between Preprocessor directive and header file.
- Why is C known as strongly Typed Language?
- Write down two rules or declaring naming variable in C.
- List any two Important functions tor Input In C.
- Write down the name of any four escape character provided by C.
- Find the errors in the following code:
{
int n = 6 ;
n++,
Prini f( • % d , x ) ;
}
- Trace the Output.
int number = 6
int x = 0;
X = number ;
prini f( • % d , x ) ;
- Trace out error in the following code:
float r;
clrscr ( )
print f (“ enter radius);
scanf (“ % f “;r);
- Determine the output of the following code:
printf (* i=% 5D”’I)
printf (* i=% D”’I)
- Predict the output of the following code:
{
print f (. */n ** /n *** /n ****/n”);
}
Visual Basic
Question #3
- Define the process of analyzing the program in V.B.
- Why the source code cannot be executed directly?
- Why visual basic is called Even Driven Language?
- What is net platform?
- Write down any two major parts of VB IDE.
- Write any two events of VB for a form.
- Define property and event.
- How are event procedure named?
- Define variable in V.B.
- What is Cancelation and when would it be useful?
- What is the purpose of Val Function?
- What is assignment statement in V.B?
C- Language
Question #4
- Write two rules of Using Switch Case in C Program.
- Why Break Statement is used in a Switch ( ) Structure?
- Define the term Function.
- Write the use of New Lire Marker.
- Differentiae between Function Definition and Function Decleration.
- Trace the errors in the following codes :
void main ( )
int x,z;
if (x>y);
print f(. x is largest “);
else
print f (“y is largest”);
getch ( );
}
- Trace the output of the following codes:
int a=4,b=2,c=5;
if(a>b)
a=5,
if(c==a)
a=6;
a=7;
print f(“% d”,a);
print f(“%d”,a);
- Trace the error of the following code:
void main ( )
{
int x,y=5’
for (x=0;<3;x++)
if (y>=5)
print f (“% d”,x);
}
- Convert the following do-while loop,
int c=2;
do
print f(“%C”,C,);
While (C ++< =5);
Visual Basic
Question #5
- Differentiate between X or and EQV Logical Operators.
- Define Logical Expression.
- Dested Loop. Write its syntax.
- Define Line Input Statement.
- Write the purpose of Parameter.
- Differentiate between “Do - While- Loop While”
- Differentiate between passing Arguments by Value and by Reference.
- Define if then,”statement. write its syntax in visual Basic.
- Trace the output of the following Code.
a = 10
b=5
if a < b then
min = a
else
min =b
end if
Note: Attempt any one question. MS-ACCESS
Question #5 What is a File? Explain three types of Files from usage point of view. (8)
Question #6 What is Filter? Discuss different types of Filters used in MS-Access. (8)
Section II (Essay Type)
'Note Attempt any two questions either Prom" C Language " or visual Basic
C-Language
Question #7 What is an Error? Explain different types of Errors in C -Language . (8)
Question #8 Write a program in C - Language to accept a year from the Keyboard. Find out it is " Leap Year " OR " Not Leap Year " . (8)
( Hint I Leap Year is Divisible by 4 )
Question #9 Define For …Next Loop? Write its syntax and explain its working using Flow chart diagram.(8)
Section - III (Practical Part)
Note Attempt any three parts of this question. 5x3=15
Question #10
(A) Write a procedure to apply Primary Key in table. (5)
(B)Write a procedure to create report using Wizard. (5)
(C) Write a program to subtract two numbers in C-Language OR Visual Basic. (5)
(D) Write a program to print first 10 numbers in descending order in C-Language OR Visual Basic. (5)
(E) Write a program to compute a cube of a number using function in C - Language OR Visual Basic. (5)