2nd Year Paper Computer Science


Objective
Roll No:-_____    Name: - ___________________          Time: - 20 Minutes         Marks:-  15
Note:   Write your Roll No. and Name on Space Provided.
            Overwritten, cutting using lead Pencil will carry you to Zero marks.
            Return this sheet to examiner after collapsing given time.

Q 1: Each question has four possible answers. Select the correct answer and encircle it.
         is invalid way to chose correct option and will result into loss of marks.

1.       A series of actions or operations are performed on data to get desired output is called.
a)      Data Manipulation   b) Data Processing           c)Data Capturing              d)Data Verification

2.       Which of the following enables the user to modify data structure without affecting existing program that use them?
a)      Data Dependence   b)  Data Independence c)Data Integration           d)Data Relationship

3.       Which of the following may be temporary file?
a)      Master File                 b) Transaction File           c)Backup File                      d)None

4.       A relation is analogous to a:
a)      File                                 b) Field                                 c)Record                             d)Row

5.       A two dimensional table of data is called a:
a)      Group                           b) Set                                    c)Declaration                     d)Relationship

6.       A value that cannot be divided further is called:
a)      Duplicated Value      b) Real value                      c)Atomic Value                d)All

7.       Which of the following is the correct association?
a)      File=Columns             b) Record=Row                 c)Field=Row                      d)Record=Table

8.       Microsoft Access saves the database with extensions:
a)      .mdb                             b) .sql                                    c) .db                                    d) .dbq

9.       The null character \0 is automatically added at the end of the:
a)      Character                    b) Variable                          c)String                                d)Expression

10.    & Operator refers to the:
a)      Address                       b) Memory Location       c)Memory Cell                  d)All

11.   Combination of Standard input and standard output devices is:
a)Scanner & Monitor      b) Keyboard & Monitor c)Touch Screen                d)Mouse & Monitor

12.   Logical NOT operator, denoted by !, is a:
a)      Ternary Operator     b) Bitwise Operator        c)Unary Operator            d)Binary Operator

13.   Expression int a=5.3 return value
a)           5                 b)       3                                  c)    3.5                                 d)Invalid

14.   Which is a numeric data type:
a)      Floating Point            b) Integer                            c)Both                                  d)None

15.   The extension of c source program is:
a)        .c                                   b)      .h                                  c)   .obj                                d)   .exe

Subjective
Roll No:-_____    Name: - ___________________          Time: - 02:10 Minutes   Marks:-  60

Q 2:- Write a short answers of any 18 of the following questions.
        I.             
What is the output of the following?
# include <stdio.h>
main(){
  int j=4,k;
  k=!5&&j;
     printf("\nK=%d" , k);
}
      II.             
What is the output of the following?
# include "stdio.h"
main(){
   int i = 65;
   char j='A';
   if (i==j)
      printf("C Is WOW");
   else
      printf("CIs Headache");
}
    III.             
What is the output of the following?
int main(){
   int ans=27;
   ans+=10;
   printf(“%d , ”, ans);
   cout<<ans<<",";
   ans-=7;
   printf(“%d , ”, ans);
   ans*=2;
   printf(“%d , ”, ans);
   ans/=3;
   printf(“%d , ”, ans);
   ans%=3;
return 0;  
}
    IV.             
What is the output of the following?
main(){
int count=10;
printf(“Count=%d”,count);
printf(“Count=%d”,count--);
printf(“Count=%d” , count);
printf(“Count=%d”,--count);
printf(“Increment Operate”);
printf(“Count=%d”,count);
printf(“Count=%d”,count++);
printf(“Count=%d” , count);
printf(“Count=%d”,++count);
return 0;  
}
      V.             
What is Identifier?
    VI.             
What is the use of gethch() function?
  VII.             
What is difference between pretest and posttest loop?
VIII.             
What is sentinel value?
    IX.             
Define structured programming language?
      X.             
Define Field Width Specifier?
    XI.             
What are floating point constants?
  XII.             
What do you mean by sequence structure?
XIII.             
What is compound Condition?
XIV.             
Why break statement us used in the switch statement?
  XV.             
What is control string in printf() function?
XVI.             
Define syntax error?
XVII.             
What are indexed sequential files?
XVIII.             
What is meant by access security?
XIX.             
What do you mean by Consistency Constraints?
  XX.             
List Different Objective of Databse?
XXI.             
What is the use of index in FMS and DBMS?
XXII.             
What is the key?
XXIII.             
List Different properties of relation?
XXIV.             
List Different facilities provided by the good RDBMS?
XXV.             
What is IDE?
XXVI.             
List major database object in database?
Section III (Each Question carry 08 Marks)
MS Access
Attempt any 1 of the following.
Q  3:- Explain different types of database models with diagram?
Q  4:- What is the database object? Discuss the database object to store and retrieve data?
C Language
Attempt any 2 of the following.
Q 5:-    a) Differentiate between switch case structure and if else structure?
            b) Discuss different format specifier in C Language?
Q 6:-    a) What is Conditional Operators?
b)      What is the limitation of simple if statement?
Q7:-     What is nested if structure? Define its working using flow chart?
           


Section III
Practical
Roll No:-_____    Name: - ___________________          Time: - 30 Minutes         Marks:-  15
MS Access
Attempt any one of the following. Each question carries 12 marks.

Q 1:-    a) Define the procedure of applying primary key?
b) What is the procedure of exiting MS Access?

Q 2:-    a) Explain the procedure of creating database in MS. Access
b)      What is the procedure of opening an existing database?


C Language
Attempt any one of the following. Each question carries 13 marks.

Q 2:-    a) Write a program which accepts amount as integer and display total number of Notes of Rs. 500, 100, 50, 20, 10, 5 and 1.For example, when user enter a number, 575,
the results would be like this...
500: 1
100: 0
50: 1
20: 1
10: 0
5: 1
1: 0 

b) Write a program that input 3 numbers. If a is not zero, find it is common divisor of b and c?

Q 3:-    a) A palindrome is a number or text phrase that reads the same backwards as forwards. For each example, each of the following five digits is palindrome: 12231, 54425, 24441 and 11611. Write a program that reads in a five-digit integer and determines whether it is a palindrome or not.
             Hint: Use the division and modulus operators to separate the numbers into individual
  Digits.

b) Write a program which accepts a character and display its ASCII value and next character.
Previous Post Next Post