RTU Previous Year Question Papers BE All Branches Computer Programming and IT Feb 2011

RTU Previous Year Question Papers BE All Branches

Computer Programming and IT Feb 2011

 

1 (a) Design and explain the architecture of computer.

(b) What is difference between ROM and PROM?

OR

1. (a) What do you mean by Language Translators? Explain with example.

(b) Write difference between high level, assembly and machine language.

 

 

2(a) Calculate r s and (r-1) complement of (42)10.

(b) Convert (1000)2 to Gray code.

(b) Represent the following numbers in sign magnitude, l’s complement and 2’s complement representation. Assume word length = 16 bits :

(i)   (+34) 10

(n) (-38.2) 10

(iii)    (-76.8) 10

(iv)    (+45) 10

 

3. (a) Write a program of add two numbers and explain this program step by step with the help of flow chart.

(b) What are the data types in C? Explain with examples.

OR

(a) What are the advantages and disadvantages of C language?

(b) What is the difference between Constant and Variable?

 

4. (a)Write a program to check the input number is prime or not. What is difference between while and do-while loops?

(b) Write a program in C to print the sum of the following series :

OR

(a)  Explain Memory allocation for 2-D arrays.

(b) Explain the function fopen( ) used to open a file in C. What are the difference modes associated with fopen( ) ? Explain meaning of each one.

 

5 (a) Write a program to read a character and check whether it is vowel or not?

(b) What is the difference between pointer and structure?

OR

5 (a) What do you mean by function? How many types of functions are available in C?

(b)  Write a program to swap two numbers using pointer.

Leave a Comment