Search This Blog

Wednesday, 1 July 2015

Computing fundamentals and C Programming-Model question paper for B.E/B.Tech Computer Science Engineering

1(a) What is the major change in the fourth-generation computers? What are the various characteristics of the computers of this generation? (6 Marks)
(b) What is a computer network? Describe different types of computer networks in use today. (6 Marks)
(c) What is an operating system? What are the various categories of operating systems? (4 Marks)
(d) How do we create and sort a list of data items? (4 Marks)
2(a) Write the algorithm to determine whether a number is positive, negative or zero. (3 Marks)
(b) What is high-level language? What are the different types of high-level languages? (5 Marks)
(c) Write a C program to calculate the sum of n integer numbers. (8 marks)
(d) A class of 50 students sits for an examination which has three sections A,B and C. Marks are awarded separately for each section. Draw a flowchart to read these marks for each student. (4 Marks)
3(a) Describe the process of creating and executing a C program under UNIX system. (6 Marks)
(b) The line joining the points (2,2) and (5,6) which lie on the circumference of a circle is the diameter of the circle. Write a program to compute the area of the circle. (6 Marks)
(c) A programmer would like to use the word DPR to declare all the double-precision floating point values in his program. How could he achieve this? (4 Marks)
(d) What is an unsigned integer constant? What is the significance of declaring a constant unsigned? (4 Marks)
4(a) Describe the purpose of commonly used conversion characters in a printif() function. (4 Marks)
(b) Given the values of the variables x, y and z. Write a program to rotate their values such that x has the value of y, y has the value of z, and z has the value of x. (6 Marks)
(c) Find errors if any, in the following switch related statements. Assume that the variables x and y are of int type and x=1 and y=2.
(i) switch (y);
(ii) case 10;
(iii) switch (x+y)
(iv) switch (x) {case 2: y = x + y; break};                                                          (4 Marks)
(d) Write a program to determine whether a given number is ‘odd’ or ‘even’ and print the message NUMBER IS EVEN or NUMBER IS ODD without using else option. (6 Marks)
5(a) Can we change the value of the control variable in for statements? If yes, explain its consequences. (4 Marks)
(b) How can we use for loops when the number of iterations are not known? (4 Marks)
(c) What is a dynamic array? How is it created? Give a typical example of use of a dynamic array. (6 Marks)
(d) Write a program that will count the number of occurrences of a specified character in a given line of text. (6 Marks)
6(a) Describe the limitations of using getchar and scanf functions for reading strings. (6 Marks)
(b) Compare the working of the following functions:
(i) strcpy and strncpy; (ii) strcat and strncat; and (iii) strcmp and strncmp. (6 Marks)
(c) s1, s2 and s3 are three string variables. Write a program to read two string constants into s1 and s2 and compare whether they are equal or not. If they are not, join them together. Then copy the contents of s1 to the variable s3. At the end, the program should print the contents of all the three variables and their lengths. (8 Marks)
7(a) Describe the two ways of passing parameters to functions. When do you prefer to use each of them? (6 Marks)
(b) What is prototyping? Why is it necessary? (4 Marks)
(c) What are the rules that govern the passing of arrays to function? (4 Marks)
(d) Write a function that will scan a character string passed as an argument and convert all lowercase characters into their uppercase equivalents. (6 Marks)
8(a) How does a structure differ from an array? (4 Marks)
(b) What is a ‘slack byte’? How does it affect the implementation of structures? (4 Marks)
(c) What are the arithmetic operators that are permitted on pointers? (4 Marks)
(d) Write a program that reads a file containing integers and appends at its end the sum of all the integers. (8 Marks)

No comments:

Post a Comment