Showing posts with label U-Paper. Show all posts
Showing posts with label U-Paper. Show all posts

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.

2014-15 (EVEN SEM)

NCS-201

B.Tech.

(Sem. II)THEORY EXAMINATION, 2014-15

COMPUTER SYSTEM & PROGRAMMING IN C

Time: 3 Hours]                                                                           [Total marks: 100

Note: Attempt all questions as per instructions

1.      Note: Attempt any FOUR parts. Each part carries equal marks. (5 X 4 = 20)
a.       Draw the memory hierarchical structure of a computer system. Explain each memory unit in brief.
b.      What is an operating system? Describe the functionalities of operating system.
c.       Describe Compiler, Interpreter, and assembler? Write the names of compiler that are used in C programming.
d.      What do you mean by Algorithm? Explain the properties of algorithm.
e.       Differentiate high level and machine level language.
f.       What is pseudo code? Difference between flowchart and algorithm with example.

2.      Note: Attempt any TWO parts. Each part carries equal marks.   (10 X 2 = 20)
a.       What do you understand by ASCII value of a character? Can we use expressions including both integer data type and character data type? Justify your answer.
b.      Write the difference between Type Conversion and Type Casting. What are the escape sequence characters?
c.       Convert following numbers into:
                                                              i.      (11010.0110)2                         =          (…)10
                                                            ii.      (110101011.0110110)2           =          (…)8
                                                          iii.      (2B6D)16                                =          (…)2
                                                          iv.      (AB4F.C1)16                          =          (…)10
                                                            v.      (54)6                                        =          (…)4

3.      Note: Attempt any TWO parts. Each part carries equal marks.   (10 X 2 = 20)
a.       Give the loop statement to print the following  sequence of integer
-6  -4  -2  0  2  4  6;
b.      What are the main principles of recursion?
c.       If int a = 2, b = 3, x = 0; Find the value of x = ( ++a, b+=a ).

4.      Note: Attempt any TWO parts. Each part carries equal marks.  (10 X 2 = 20)
a.       What are the different types of operator in C language and also write down the difference between the associativity and precedence of operators.
b.      (i) What is the role of SWITCH statement in C programming language? Explain with example.
(ii) Distinguish between actual and formal arguments and global and extern variable.
c.       Describe call by value and call by reference with example

5.      Note: Attempt any TWO parts. Each part carries equal marks.    (10 X 2 = 20)
a.       Write a program in C language to generate Fibonacci series.
b.      What do you mean by dynamic memory allocation? Explain the following functions in detail:
                                                              i.      free
                                                            ii.      calloc
c.       Write a program to add matrices of dimension 3 * 3 and store the result in another matrix.
 

2014-15 (ODD SEM)

NCS-101

B.Tech.

(Sem. I) (ODD SEM)

THEORY EXAMINATION, 2014-15

COMPUTER SYSTEM & PROGRAMMING IN C 

Time: 3 Hours]                                                                    [Total marks: 100

1.      Attempt any 5. Each question carries 5 marks.
a)      What are the classifications of computer? Explain any two in detail.
b)      Describe the functionalities of an operating system.
c)      Convert the hexadecimal number A9C5.DB4(16) to octal number.
d)     Draw a flowchart to find the sum and reverse of a given number.
e)      Discuss the various functionalities of compiler, linker and loader.
f)       What is storage class? Describe automatic, register, static and external with neat syntax.

2.      Attempt any 2. Each question carries 10 marks.
a)      Describe about the basic components of computers with a neat block diagram.
b)      Explain logical and bit operators with example.
c)      Write about the formatted and unformatted Input/Output functions in ‘C’.

3.      Attempt any 2. Each question carries 10 marks.
a)      Describe about the types of looping statements in ‘C’ with necessary syntax.
b)      Write a C program to find the multiplication of two matrices.
c)      What are the types of function? Write a C program to find the factorial of a given number using recursion.

4.      Attempt any 2. Each question carries 10 marks.
a)      How to declare an array? Explain about various operations of an array.
b)      What is enumerated data type? Write a C program to display months in the year using enum.
c)      Differentiate structure and union in ‘C’. Write a C program to store the student details using union.

5.      Attempt any 2. Each question carries 10 marks.
a)      State the features of pointers. Write a ‘C’ program to sort a given number using pointers.
b)    What is the difference between break and continue in C? Describe the structure of switch-case with neat example.
c)  List out various file operations in ‘C’. Write a C program to count the number of characters in a file.

Thursday, October 2, 2014

2013-14 (EVEN SEM)

B.Tech.

(SEM. II) THEORY EXAMINATION 2013-14

COMPUTER PROGRAMMING

SECTION-A
 

1.      Attempt all parts of this section.                                                        (2 X 10 = 20)
a)      Why ‘C’ is called structured programming language?
b)      Explain the output of following:
#define SQUARE (x) x * x
void main ( ) {
int i;
i = 81/SQUARE (9);
printf(“%d”, i); }

c)      What is ASCII Code? Write ASCII Code in 8 bit for word “Hi”.
d)     Differentiate between conditional operator and switch.
e)      What is void pointer? How is it different from other pointers?
f)       What is function prototype? Why is it required?
g)      Write any four features of LINUX operating system.
h)      Find the output of the following code:
void main ( ) {
switch (0) {
case 0: printf(“0+3”);
case 0+1: printf(“0+5”);
default: printf(“Wrong Input”); } }         

i)        Define linker and explain its role in ‘C’ programming.
j)        Find the value of Y (assume Y is integer data type)
Y= 4 * 2 / 4 – 6 / 2 + 3 % 2 * 6 / 2 + 2 > 2 && 4 !=2

SECTION-B

2.      Attempt any three parts of this section. Each part carries 10 marks. (10 X 3 = 30)
a)      Draw a neat diagram of digital computer and explain the role of each functional unit.
b)      Convert the following:
                                                        i.            (B5C)16 – (92A)16 = ( ? )10
                                                      ii.            (10101011101.011)2 = ( ? )16
                                                    iii.            (916.125)10 = ( ? )4
                                                    iv.            (16)8 + (45)8 = ( ? )16
                                                      v.            (123)5 = ( ? )3

c)      Differentiate between pseudo code and algorithm. Write the characteristics of an algorithm. Draw a flow chart for printing Fibonacci series upto a term given by user.
d)     What is storage class in ‘C’? Explain different storage classes supported in C with suitable example.
e)      Write a program in ‘C’ to create a database of fifty students to store personal details such as Roll No., Name and Marks. Print all the details of student whose name is entered by user.

SECTION-C

3.      Attempt any two parts:                                                                       (5 X 2 = 10)
a)      Define number system. Why binary number system is used in computer?
b)      What is operating system? Explain main four functions of operating system.
c)      Define the following terms and give one example of each:
                                                              i.      Application Software
                                                            ii.      Symbolic Language
                                                          iii.      Data Error
                                                          iv.      Logical Error

4.      Attempt any two parts:                                                                       (5 X 2 = 10)
a)      Explain the different types of type conversion in ‘C’ with suitable example.
b)      Write a program in ‘C’ using conditional operator to find the largest among five numbers given by the user at run time.
c)      What is bitwise operator? Explain all bitwise operators in ‘C’ with suitable example.

5.      Attempt any two parts:                                                                       (5 X 2 = 10)
a)      Write a program in ‘C’ to print Pascal Triangle upto the rows given by user.
b)      Differentiate between break and continue with suitable example.
c)      Write a program in ‘C’ to convert a number in decimal system which is entered by the user to a number in hexadecimal system.

6.      Attempt any two parts:                                                                       (5 X 2 = 10)
a)      What is alternative to recursion? Write a program in ‘C’ to calculate the area and perimeter of a circle for a given radius using user defined single function which returns area and perimeter to the main function.
b)      Write a program in ‘C’ to read data from keyboard, write it to a file named PASCO, again read the same data from the file PASCO and display number of characters, number of vowels and number of lines contained in it on the screen.
c)      Write a program in ‘C’ to create a list of ten elements using dynamic memory allocation and display the sorted list.

7.      Attempt any two parts:                                                                       (5 X 2 = 10)
a)      Why C preprocessor is called preprocessor? Differentiate between statements
#include <facto.h> and
#include “facto.h”
Explain nested macros with suitable example.
b)      Write a program in ‘C’ to determine whether a string given by the user is palindrome or not without using strrev() function.
c)      Explain the architecture of LINUX operating system. Write any two file related and two directory related commands in LINUX with syntax.