Sunday, April 17, 2016

2015-16 (ODD SEM)

NCS-101

B.Tech.

(Sem. I) THEORY EXAMINATION, 2015-16

COMPUTER SYSTEM & PROGRAMMING IN C

Time: 3 Hours]                                                                            [Total marks: 100

Note: Attempt all questions from all sections as per directions.

Section – A

1.      Attempt all parts of this section. Answer in brief.   (2 X 10 = 20)
a.       List five internal and external commands used in DOS operating system.
b.      Explain the basic structure of C program.
c.       How binary file differ from text file?
d.      Give difference between android and window OS.
e.       Differentiate between structure and union.
f.       What is void pointer? How is it different from other pointers?
g.      Justify operating system is a resource manager.
h.      Explain the dot (.) operator in C language with proper example.
i.        What do you mean by operator precedence?
j.        Write difference between implicit and explicit type casting.

Section – B

Attempt any five questions from this section.  (10 X 5 = 50)

2.      What are the difference types of functions? Write a program in C to sort list of names of students in an ascending order.
3.      Write a short note on top-down program development approach.
4.      Write a program in C to reverse a string through pointer.
5.      Write difference between call by value and call by reference using suitable example.
6.      What are the characteristics of an algorithm? Write an algorithm to find the sum of all the numbers divisible by 3 between 11 and 50.
7.      Illustrate and compare the static and extern storage classes with a relevant example in C.
8.      State the features of pointers. Write a C program to sort a given number using pointers.
9.      Differentiate between the following:
a.       High level language and low level language
b.      Linker and loader
c.       Logical error and run time error
d.      Algorithm and flowchart

Section – C
           
              Attempt any two questions from this section.    (15 X 2 = 30)

10.  What are the various types of files that can be created in C language? Also give different modes in which these files can be used with proper syntax. Write a program in C language to append some more text at the end of an existed text file.
11.  Attempt all parts:
a.       Write a C program to check whether a given square matrix is symmetric or not.
b.      Define data types in C. discuss primitive data types in terms of memory size, format specifier and range.
c.       List out various file operations in ‘C’. Write a C program to count the number of characters in a file.
12.  Attempt all parts:
a.       Write the difference between type conversion and type casting. What are the escape sequences characters?
b.      What are the different types of operators in C language and also write down the difference between the associativity and precedence of operators.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.