Emp-ID
Employee Name
Designati
Deptt-
Dta of Appointmen
Salary

 Home

 About us
 Contact
      Categories

 Notes

 Study abroad
 Immigration
 Student Loans
 Universities
 English Language
 Result
 Guesspaper
 Exam Tips
 Schools
 Colleges
   Other 2nd Year
    Guesspapers
BIOLOGY.
CHEMISTRY.
COMPUTER- SCIENCE.
ECONOMICS.
ENGLISH.
MATHEMATICS
PHYSICS.
PAK, STUDIES.
STATISTICS.

   Other Classes
    Guesspapers
9TH , 10TH.
1ST YEAR.
2ND YEAR.
BA ,BSC.
  Advertisement
 

           



       Guess Papers
      (for Class 2nd Year)
                                                       Class 2nd YEAR Federal Board 2009
Paper:Computer science (Objective Type)                                Time Allowed: Max.Marks:

Note:Use this paper to write the answers to the objective questions.No marks will be awarded for           cutting,over-writing or using a pencil.This paper must be tagged with the answer-book.
1.       Insert correct option.
                                      
(1)     Which of the following is not a language processor ?
          (a) Compiler             (b) Interpretor
          (c) Assembler           (d) Debugger
(2)     An instruction given to the compiler before the execution of the program is called.
          (a) Global variable     (b) Pre-processor directive
          (c) main( )                 (d) Both A and B.
(3)     The Process of converting source code into object code is called.
          (a) Compiling             (b) Linking
          (c) Executing              (d) Debugging
(4)      ...........cannot be changed at run time.
          (a) Logical error         (b) Constants
          (c) All of these           (d) Infinite loop.
(5)      Type double can accommodate numbers from.
          (a) -65535~ + 65534                              (b) 10-308~10+308
          (c) -22147483468~ + 2147483467        (d) 10-38~10+38
(6)      Errors in a computer program are also called.
          (a) Mistakes                 (b) Bugs,
          (c) Syntax errors           (d) Defects
(7)      Which of the following is used to terminate the execution of loop ?
          (a) Switch             (b) goto
          (c) break               (d) end
(8)      Which of the following operator has lowest precedence ?
          (a) !                 (b) = =
          (c) +                (d) =
(9)      Which of the following is a valid character constant ?
          (a) a                 (b) ''b''
          (c) '6'               (d) =
(10)    The conditional operator is some times called:
          (a) Unary operator        (b) Binary operator
          (c) Ternary operator      (d) Control statement
(11)    What will be the result of expression a+ = b ?
          (a) b+ = a      (b) a = ++b
          (c) a = a + b    (d) b = b + a
(12)    First line of function definition before the opening brace is called.
          (a) Function declaration                  (b) Function definition
          (c) Function declarator / header     (d) Call to function
(13)    .......provides the basic information about the function ot the compiler.
          (a) Prototype             (b) Functiopn defination
          (c) Library function    (d) Body of function
(14)    An attribute is a property or characteristics of.
          (a) Entity             (b) Database
          (c) Relation         (d) DBMS
(15)    Which of the following is know as collection of related data ?
           (a) ERD             (b) DBMS
           (c) Database      (d) Record
2.        Attempt any THIRTEEN parts.
(1)       What will be the output of the following program ?
           # include<stdio.h>void main(void)   { char ch; ch ='A'; do { printf (''%c'',ch); ch = ch =1;} while            (ch<=fzj;  }
(2)       What will be the value of a, b and c printed by the following program on the screen ?
           # include<stdio.h> void main(void) {int a, b, c; a=0; b=1; c=2;    a = b + c;      b=a++;    c=++b;             printf (''%d, %d'', a,b,c,);
(3 a)    Write an output statement to display the following on screen.The ''MS-EXCEL''is a spread sheet             application.
(b)       What causes the error message ''statement missing;''when this code fragmentt is compiled ?                   #include<stdio.h>  void main(void)    {       printf (''\ n''  printf (''l love pakisatn'');          }
(4)        What error message will be generated by C compiler after compiling these lines ?
            #include <stdio.h>          void main (void)     { x=10;      printf (''%d'',x);          }
(5)        Differentiate between.     (a) scanf  ( ) and gets ( )     (b) do while loop and for loop
(6)        What is the purpose of switch ( ) statement ? Explain with examples.
(7a)      Which operator is used to make compounds conditions in C language ?
(b)        In which case of selection, switch ( ) is preferred over if-Else construct ?
(8a)      What would happen if break is not used in switch( ).
(b)        What is the purpose of default: in switch( )?
(9a)      What is the purpose of format specifiers in C language ?
(b)        What is the meaning of \b, \f and \\ ?
(10)      What is the purpose of strcmp( ) function ?
(11a)    Write a C statement equivalent to.
              x=    b  - 4ac 
                        2a
(12)      If there is a function ''Add'' and it has three in parameters. The function returns the result of              addition of parameters then:
            (a) Write prototype of function.                (b) What will be the header of its function definition?
                                 (c) What will be the return type of function ?
(13)      Can a function returns more than onje value ? Explain with an example.
(14)      In how many modes a file can be opened in C.
(15)      Why we need a pointer to FILE structure in our program when we use standard input/output in a              file?
(16a)    What is the different between primary key and candidate key ?
(b)        What is ment by refrential integrity enforcement in database ?
(17a)     How are the entity, attribute, and instance of an entity are related to one another ?
(b)        Show the relation BORROWER (BORROWERID, Name , Address) and BOOK (BookID              Title, Author, Data Publiction, BorrowerID) in ERDiagram with the
             (i) Degree of relationship.           (ii) Cardinality.
            Attempt any THREE questions.
3.         Write a program to generate the following series of numbers.   2    4    6    10    16    26
4.         Write a program that reads a phrase and prints the number of lower case letters in it using a              function for counting.
5.a)      What are the responsibilities of a DBA ?
   b)      Explain the followings:
            (i) Primary key.        (ii) Secondary key.        (iii) Foreign key.
6.         A firm uses a database to keep details of its employees. Below is a part of data base.
                       (Note: Database is created in Ms-ACCESS)
 
 
(i)         Give appropriate data type to each field.
(ii)        Which key should be the primary key and why ?
(iii)       Is there any foregn key or candidate key in  this table ?Name the key if exists.
(iv)       Write the expression to find those employees who are getting salary more than RS.10,000/-in              query.

 

Copyright © 2009. All rights reserved( )® www.paknotes.com