How To Exam?

a knowledge trading engine...


Visvesvaraya Technological University (VTU) 2005 B.E Computer Concepts & C Programing - Question Paper

Wednesday, 12 June 2013 03:55Web


First Semester B.E Degree Examination, July/August 2005
Common to all Branches
Computer Concepts & C Programing

Full ques. Paper in attachment


Page No... 1    [    NEW SCHEME    ]    CCP13/23

jm

S

O

M

C

s

0

6

6

First/Second Semester B.E Degree Examination, July/August 2005

USN


Common to all Branches

Computer Concepts & C Programming

Time: 3 hrs.]    [Max.Marks : 100

Note: A nswer any FIVE full questions by selecting atleast ONE question from Part - A.

PART - A

1. (a) Explain with a diagram the physical and logical organisation of a computer.

(7 Marks)

(b)    Differentiate between :

i)    Primary & Secondary memory

ii)    Impact & Non-impact printer    (5 Marks)

(c)    Explain with a diagram any one of the secondary storage device. (5 Marks)

(d)    Define : High level language, assembly level language and machine level language.    (3 Marks)

2. (a) What Is O.S? Give the functions of an operating system.

[5 Marks) (6 Marks) (5 Marks) (4 Marks)


(b)    List the advantages of LAN, WAN and Internet.

(c)    List and give their usage of any five UNIX commands.

(d)    Differentiate between interpretor and editor.

PART - B

3. (a) Express the following mathematical expressions into *C expressions,

,V2 + *2/3 + 3/4

5/i + // 2


i)

a+b

)


7

iii) \/ic

+,e r

iv)


x stuffy

sv

V-


V)


(6 Marks)


oi+JT vi) 0 < x < 1


sm4sO_+2530


(b)    Find the finai values of the variables in the following program segment.

i)    int a,6,c ; float v, a= 10;

6 = 15;

c = h(a\ x = bja y = (float) b/a

ii)    int a, >; float x;

a = 25/10 +6.5; b = 25/10 +6.6;

X = 25/10 +6.6;    (SMarks)

(c)    If the variables i,j,k hold 123. 105.658 and 0.0006 respectively find the output obtained Irom the following

Pnntf(-\n%5d%8.2f%f,i,j,k);

Printf(\n%d\n%.1f\n%8.3f,i,j,k);

Printf(\n%2d\n%e\n%e,i,j,k);

{8 Marks)


Printf(\n%d)zilzS%.2elzi%.4f,i,j,k);

4.    (a) List out five rules to be foIJowed while having a variable. Give one example for e each rule with invalid case.    (6 Marks)

(b) Write general hierarchy of a Paranthesis free expression involving arithmatic, relational and logical operators.    (4 Marks)

(c) Some errors are there in the following program. Write the correct program. Program to find distance and slope between two points Float si,i/1,2f j/2

Scanf (%/%/%/%/, xl,xl,yl, a:2,y2);

Float 5, d;

D = sqr(pov}(;rl - 2,2) + pow(yl - y2,2));

S = yl - y2/x2 - cl;

Printf (.s = %fd = %f \ n,,ef,s);    (10 Marks)

5.    (a) Explain the use of break and continue statements in a loop. Supplement yoiar

* explanation with an example.    (6 Marks)

(b)    Compare while loop and do-while loop. Give one example for each. (6 Marks)

(c)    Write a program to print all the points with integer coordinates enclosed within

a circle of radius 4 units from origin.    (8 Marks)

6.    (a) Write an algorithm to count the occurance of digit 5 in a given integer number.

[6 Marks)

(b) What is an array ? How are they declared in C? What are the rules to be followed while using arrays?    (6 Marks)

(c) a and b are two integer arrays each with n elements. Write a program to find the array c such that

c[i] = a[i] + b{n - 1 - ]    (8 Marks)

7.    (a) What are user defined functions [UDF\? Why UDF are required for large

and complex problems?    (6 Marks)

n.-l

(b) Write a program for user defined function that returns aibi where a, and b

i=n

are arrays with n elements. Use the above user defined function to calculate.

x()2+x12+z22 +.........xl-i)*(yu2 +y\2 +2>22 +.....+3f_l)

xm\ +1+2 +.......Vnxyn_ 1

(10 Marks)

c) List bit wise operators and give example for any two.    (4 Marks)

8.    (a) Define auto, global, static and register variables and give one example for each.

(6 Marks)

(b)    Find the final values stored in the variables x,y,z at the end of the program.

MainQ

{

int x,y,z,*p,*q; x=10; y=15; p=&x; q = &z;

*q= *p + y -3; y=y- (*p);

*p=*q-z;

   (6 Marks)

(c)    Write a program to count the number of space in a given string. (6 Marks)

(d)    Find the values of variable x and m after execution of the following statements

f) x = 15;

m = x + + ;

ii) * = 15;

m    (2 Marks)







Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Visvesvaraya Technological University (VTU) 2005 B.E Computer Concepts & C Programing - Question Paper