WELCOME TO IP UNIVERSITY QUESTION PAPERS WEBSITE

Through this website, an attempt is being made to provide all the previous year question papers on-line.
Currently work is underway only for the B.Tech. Stream question papers.
About Guru Gobind Singh Indraprstha University (GGSIPU)

Back to Homepage( ippapers.tripod.com )


(Please write your Roll No. immediately)

Roll No. ..................................

First-Term Examination

Second Semester [B.Tech]

Paper Code : ETCS – 108 Subject : PROGRAMMING AND AUTO-CAD

Time : 1:30 Hours

Maximum Marks : 30

Note : Attempt any 3 questions in all.

Q1

( a )

Find errors with reasons, if any, in the following statements:

  1. m = ++n += 2;

  2. int &r = n++;

2

( b )

Trace the following code fragment, showing the value of each variable each time it changes:

                        int x,y,z;
                        x=y=z=6;
                        x *= y +=z -= 4;

3

( c )

What is the difference between function declaration and function definition?

2

( d )

State the differences between passing parameters by value and passing parameters by reference.

3


Q2

( a )

What is the difference between a pointer and a reference variable?

2

( b )

How does main() in C++ differ from the main() in C?

2

( c )

Write declarations for

  1. A constant pointer to an integer

  2. A pointer to a constant integer

2

( d )

What is a dangling pointer? How is it dangerous?

2

( e )

State the difference between 'continue' and 'break' statements with example.

2


Q3

( a )

Write a program to find the transpose of a 2 dimensional square array of integers.

5

( b )

Explain the coordinate systems of AUTO-CAD

5


Q4

( a )

Use the following relative and absolute coordinate values in LINE command to draw the object

5

POINT

COORDINATES

POINT

COORDINATES

1

3,3

5

@3,5

2

@3,0

6

@3,0

3

@-1.5,3

7

@-1.5,-3

4

@-1.5,-3

8

@-1.5,3

( b )

Draw the output of the following command. Also show the direction for drawing the edges of the object.

Command : POLYGON (Enter)

Enter number of sides<4> : 8 (Enter)

Specify center of polygon or [Edge] : E (Enter)

Specify the first end point of edge : 3,6 (Enter)

Specify second end point of edge : 3,2 (Enter)

5


Back to top.