( Inter Part - II)
(Session 2015)
Computer Science
(Objective)
New Scheme
Paper (II)
Time Allowed:- 20 Minutes
Maximum Marks:. 17
NOTE:. Yon have four choices for each objective type question as A, B, C and D. The choice which you think is correct: fill that circle in front of that question number. Use marker or pen to fill the circles. Cutting or filling two or more circles will result in zero mark in chat question. Write PAPER C0DE, Which is printed on this question paper, on the both sides of the Answer Sheet and fill bubbles accordingly. otherwise the student win be responsible for the situation. Use of Ink Remover or correcting fluid is not allowed.
Q.1
(MS-ACCESS)
- How many table views are available in MS Access.
(A) 4
(B) 3
(C) 2
(D) 1
- How many form layouts are produced in MS Access
(A) 2
(B) 4
(C) 6
(D) 8
- A logical grouping of characters is a .
(A) Field
(B) Record
(C) File
(D) All
- A relation is analogous to
(A) File
(B) Field
(C) Record
(D) Row
- A relationship between-countries and capitals is
(A) one-to-one
(B) one-to-many
(C) many-to-many
(D) many-to-one
- In 3NF, a non-key attribute must not depend on
(A) Non key attribute
(B) Key attribute
(C) Composite key
(D) Sort key
- Which of the following is NOT database object
(A) Table
(B) Query
(C) Report
(D) MS Word
- C-Language The modulus operator is used fur
(A) Exponentiation
(B) Multiplication
(C) Division
(D) Integer remainder
- VISUAL BASIC The rectangle symbol in a flowchart indicates
(A) Condition
(B) Input
(C) Output
(D) Process
- C-Language Which of the following operators work with one operand
(A) Unary
(B) Binary
(C) Ternary
(D) None
- VISUAL BASIC In visual basic , a form is another name for
(A) Window
(B) Object
(C) Property
(D) Label
- C- Language An ampersand before the name of a variable denotes
(A) Actual Valve
(B) Variable name
(C) Address
(D) Data type
- VISUAL BASIC Which one is NOT a control
(A) Text box
(B) Close button
(C) Command Button
(D) Option button
- C- Language Which of the following function is used to read character from file
(A) fgetc ( )
(B) putc ( )
(C) fputs ( )
(D) fgets ( )
- VISUAL BASIC The prefix for naming a menu item is
(A) m
(B) mnu
(C) mne
(D) men
- C-Language int a=21; print f(“%d”, a %2); Result is
(A) 10
(B) 21
(C) 22
(D) 20
- VISUAL BASIC the property that changes text color is.
(A) font color
(B) Fore color
(C) Back color
(D) Text color
- C-Language the case block ends with
(A) End select
(B) End case
(C) Break
(D) Case Else
- VISUAL BASIC How many bytes are occupied by long data type in Visual Basic
(A) 4
(B) 12
(C) 8
(D) 16
- C-Language In if statement ,true is represented by
(A) 0
(B) 1
(C) 2
(D) 3
- VISUAL BASIC The MOD operator is used for
(A) Exponentiation
(B) Multiplication
(C) Division
(D) Integer
- C-Language Which statement is used to move the control to the start of loop body
(A) Break
(B) Switch
(C) Continue
(D) None
- VISUAL BASIC In Visual Basic which statement indicates the end of decision structure
(A) End-if
(B) Next
(C) End
(D) Else
- C-Language While loop is also called
(A) Conditional
(B) Wend loop
(C) Counter Loop
(D) None
- VISUAL BASIC In if statement false is represented by
(A) 0
(B) 1
(C) 2
(D) 3
- C-Language A value that can be sent to a function is known as
(A) Under defined
(B) Function
(C) Argument
(D) None
- VISUAL BASIC The interval property of timer control is set in .
(A) Minutes
(B) Hours
(C) Millisecond
(D) Seconds
Time Allowed: 3.10 hours
SECTION-II
Maximum Marks: 83
Computer Science (Subjective)
New Scheme
Paper (II)
2. Answer briefly any Eight parts form the following :- (MS - ACCESS) (8 x 2 = 16)
- Write names of four major components of the database system.
- What de you mean by Network Model
- What is purpose of data dictionary?
- Who is Data base administrator?
- Define entity.
- What is the purpose of using views?
- What criteria is used to select Le organization?
- When a relation is in 2NF?
- State the purpose of Scroll Bar.
- What is meant by RDBMS?
- Define OLE object.
- Describe List Box.
3. Answer briefly any Eight parts from the followings:- (C - Language ) (8 x 2 =16)
- What do you mean by bug':
- List two reasons why it would be preferable to write program in C rather than machine language?
- State the purpose of Body of Function.
- Convert the following
- statement in C expression x = eqution
- What do you mean by Assignment operator?
- Define Character Constant.
- Find the errors in the following code:
# include (Stdio. h) ;
# include (conio.h)
void: Main (void)
{
Print f (ok);
}
- Find the output of the following code:
int x,y,z;
. x=y=z=3 ;
x=4 ;
y = x;
z=2 ;
print f("%d%d%d",x,y,z);
- Find the output of the following statement.
Print f ("Good\n By \ n 2nd year" ) ;
- Find the errors in the following code:
Main ( );
{
Print (Hello)
}
- List important functions for Input and Output.
- Describe "getche" function.
OR
3. Answer briefly any Eight parts from the followings:- (Visual Basic) (8 x 2 =16)
- List three uses of logic flow diagram
- What is VBA?
- Stale the purpose of Naming controls.
- Define object events
- What is constant?
- Name the different form events
- What do you mean by unload?
- State the purpose of explicit declaration.
- Describe currency variables.
- Define symbolic constant.
- What is message box?
- State the term comments.
4. Answer briefly any Six parts from the followings:- (C - Language) (6 x 2 =12)
- Define selection statement.
- What is multiple if-else-if statement?
- Trace Me error
int x=3
int y=4;
if (x<y);
x++;
P.T.0
- Trace the output
int a=5 ;
if (a %2= = 0)
printf ("Even") ;
else
printf ("odd");
- Define the conditional loop.
- Write syntax of do-while loop.
- Write two advantages of using function.
- What is a local variable?
- Writ: two types file access methods.
OR
Visual Basic
4. Answer briefly any Six parts from the followings:- (6 x 2 = 12)
- What is the use of relational operators in Visual Basic?
- What is difference between integer variable and Long variable
- What are special variables?
- What is operator precedence?
- What is the purpose of inputbex and msgbox' in visual basic?
- Trace errors;
A as integer
Print (sum= a+b)
- Write syntax of repeat-until loop.
- What is a difference between for-next and while-wend loops.
- Trace the output
Print "Pakistan" & "Ziodabad"
SECTION --- II.
Note: Attempt any ONE question. (8 x 1=8)
MS ACCESS
5. What is Data Modeling? What are the ingredients of Data Modeling?
6. What is meant by degree and cardinality of a table .or relation? What are the important characteristics of a table or relation?
SECTION ----- III
Not : Attempt an TWO question either from "C - Language" OR from "Visual Basic". (8x2=12)
C - Language
7. Briefly describe the basic structure of C-Language program
Visual Basic
7. Explain different types of variables.
C- Language
8.Write a program in C-Language that accept a Number from the user and determine whether it is positive negative or zero.
Visual Basic
8.Write a program in visual basic that accept a Number from user and determine it is positive negative or zero.
C-Language
9. What is do – while loop? Write its syntax and discuss its working .
Visual Basic.
9. Discuss List Box properties in detail.
SECTION-IV
(PRACTICLA PART)
NOTE: Attempt any three parts.
- Explain the procedure for executing a saved Query?
- Explain the procedure to add new record through forms?
- Write a program that inputs base and height from the user and calculates area of a triangle by using the formula Area=1/2 base' height. (Attempt either in C or VB)
- Write a program that inputs a number from user and determines whether it is positive, negative or zero. using function? (Attempt either in C or VB)
- Write a program that displays "PAKISTAN' for live time using while loop? (In C or VB)