Faisalabad Board 2017
Computer Science
(Objective Type)
Inter (Part-2)                                                              

Note: Four possible answers A, B, C and D to each question are given. The choice which you think is correct that circle in front that question with Marker or Pen ink. 'Lining or filling two or more circles 'will result in zero mat k in that question. Write the letter A, B. C or D in the column. (Write correct "option) against each question also. If there k a contradiction in the bubble and hand written answer, bubble option will be considered correct.

  1. Relationship
  2. Cardinality
  3. Modality
  4. Attribute
  1. Sort key
  2. Composite key
  3. Candidate key
  4. Primary key
  1. Sorting
  2. Summarizing
  3. Clouting
  4. Classifying
  1. 2
  2. 3
  3. 4
  4. 5
  1. Record view
  2. Datasheet view
  3. Design view 
  1. Macro
  2. Table
  3. Form
  4. Report 

C-LANGUAGE 

  1. If
  2. Nested if
  3. If else
  4. Switch - case
  1. Relational
  2. Logical
  3. Assignment
  4. Comparison
  1. One
  2. Two
  3. Ten
  4. Many
  1. A
  2. “Hello”
  3. ‘6’
  4. =
  1. Period
  2. Comma
  3. Colon
  4. Semi colon
  1. Float
  2. Double
  3. Int
  4. Real
  1. ROM
  2. RAM
  3. HARD DISK
  4. Cache
  1. Infinite loop
  2.  Running loop
  3. Continuous loop
  4. Nested loop
  1. Break
  2. Terminate
  3. Exit
  4. End

SUBJECTIVE PART
SECTION B

2. Write short answers to any six parts from the following:

  1. Define program file.
  2. Write any two objectives of database management system
  3. Write the basic purpose of using views.
  4. Define an attribute. Give an example.
  5. How referential integrity can be achieved?
  6. Define partial dependency.
  7. List down any tow advantage of MS-Access.
  8. Write a query to display all records form a table employee.
  9. Write the use of columnar from in MS-Access

3. Write short answers to any eight parts of the following:

  1. What is #define directive?
  2. Describe delimiters.
  3. Define structure programming
  4. Differentiate between increment and decrement operators.
  5. How a variable is declared in C?
  6. State the purpose of escape sequence.
  7. Find the errors in the following piece of code:
    # include (stdio.h)
    VOID MAIN()
    { int a = 10;
    Printf("%f",a);
    }
  8. Trace the errors form the following piece of code:
    Include<stdio.h>
    Void main[]
    {printf('Pakistan');
    }T

  9. Trace output:
    void main()
    { int a,b;
    A = 10;
    B = 12;
    Int c = a+b;
    Printf("c = %3d",--C);
    }

4. Write short answer to any six parts.

  1. Why sentinel value is used in loop?
  2. What happens if break statement is missed in case block?
  3. Find errors:
    Void main()
    {
    Int a-2
    if(a = 1)
    Printf("OK");
    else
    printf("Cancle");
    gatch()
    }

  4. Show output:
    If(1 == 2)
    Printf("Programming");
    Else
    If(2 == 1)
    Printf("language")
  5. Show output
    int I, a = 3;
    for(i = 5; I>0;I--)
    {
    a = a+I;
    printf("%d\t",a);
    }

Section-III

Q 6. Convert into Do-While loop code:

int I = 1;
while( I < +10)
{
printf("a")
I - I + 1;
}

C-LANGUAGE

Note: Attempt and two question.

Q 7. Write basic structure of C program.
Q 8. Write a program in C-language that inputs temperature and display message according to following

Temperature

Message

Greater than 35

Hot day

Between 25 and 35 (inclusive)

Pleasant day

Less than 25

Cool day

Q 9. Define do- while loop? Explain its syntax with syntax, flowchart and example.