How To Exam?

a knowledge trading engine...


Guru Gobind Singh Indraprastha Vishwavidyalaya 2003 B.Tech ETCS – 108 Subject : PROGRAMMING AND AUTO-CAD - Question Paper

Wednesday, 29 May 2013 04:25Web

First-Term exam
Second Semester [B.Tech]

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

Time : 1:30 Hours
Maximum Marks : 30

Note : Attempt any three ques. in all.

Q1
( a )
obtain errors with reasons, if any, in the subsequent statements:

m = ++n += 2;

int &r = n++;
2

( b )
Trace the subsequent code fragment, showing the value of every variable every time it changes:

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

( c )
What is the difference ranging from function declaration and function definition?
2

( d )
State the differences ranging from passing parameters by value and passing parameters by reference.
3


Q2
( a )
What is the difference ranging from a pointer and a reference variable?
2

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

( c )
Write declarations for

A constant pointer to an integer

A pointer to a constant integer
2

( d )
What is a dangling pointer? How is it dangerous?
2

( e )
State the difference ranging from 'continue' and 'break' statements with example.
2


Q3
( a )
Write a program to obtain the transpose of a two dimensional square array of integers.
5

( b )
discuss the coordinate systems of AUTO-CAD
5


Q4
( a )
Use the subsequent 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 subsequent command. Also show the direction for drawing the edges of the object.

Command : POLYGON (Enter)

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

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

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

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




( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Guru Gobind Singh Indraprastha Vishwavidyalaya 2003 B.Tech ETCS – 108 Subject : PROGRAMMING AND AUTO-CAD - Question Paper