You are on page 1of 4

NAME: APARAJITHAN

SHAASTRA ID:
COLLEGE NAME: IIIT D&M KANCHEEPURAM
BRANCH/DEPARTMENT: COMPUTER ENGINEERING
CONTACT E-MAIL: COE15B002@IIITDM.AC.IN
CONTACT NUMBER: 9444929268

APPLICATION FOR
GAME DEVELOPMENT WORKSHOP SHAASTRA
2016

General Instructions:
The deadline for Submission is 8th December 2015. You can
submit early for some bonus points. Do not disturb the text
formatting. Use the same Word file for answering the
following Questions. Use only C/C++.
All questions must be submitted independently; In case
of any kind of Plagiarism found application will be rejected.
Also we will be restricting number of participants from each
college. So sharing your answers will eliminate your chance
of getting selected.
The applications have to be mailed in PDF format with the
subject as "{Shaastra ID}_{Yourname}". Failing to this
Application will not be considered.(remove braces)
The PDF file must have Name "{Shaastra ID}_{Yourname} .
Failing to this Application will not be considered.
The Application must be mailed on or before 8th December
2015. To the mail id:
game_development_workshop@shaastra.org
Answer as much as you can, do not get discouraged and end
up not submitting, because few questions are tricky and
difficult to understand. So solve as much as you can. Also do

not mail us back regarding doubts in any of the following


questions, give the best possible answers in case of
discrepancy.
1 What is the output of the following program?
#include<stdio.h>
Main() {
int i ;
i= 164 ;
printf( the value of i is %o\n,i);
}
Output: 244
%o prints the octal form of the given decimal integer.

2 __________ is the number of characters in string.


If we exclude the double quotes, then there are 6 characters.
3 For the given program fill in the blanks with
appropriate answers and write the output generated
by this program.
#include<stdio.h>
Main()
{
Int a[5][5]={ {1,2,3,4,5},
{11,12,13,14,15},{21,22,23,24,25},
{31,32,33,34,35},{41,42,43,44,45}};
______ z;
_____ ad = &a;
Printf(%____ is ________________\nad);
for(p=0;p<5;p++)
{for(q=p;q<5;q++)
{z=*(*(a+q)+q);
Printf(%____,z);}

Printf(\n); }
Return 0; }

4 Anything wrong with this code?


a)
T *pointer = new T[10];
delete pointer;
b)
T *pointer = 0;
delete pointer;
5 Read the following
#include<stdio.h>
Main()

Char A[5][10];
Int i, j ,k;
K=A;
for (i=0;i<5;i++)
for (j=0;j<10;j++)
if(&A[i][j] == str B) printf(success\n);
}
If we have to print maximum number of success . The str B is
an expression to be filled by you and it should not be &A[i][j].
(Hint: You can initialize srt B using first entry of A.)
a) What should be str B, if A is stored in row major order?

b) What should be str B , if A is stored in column major order?

6 Write a code for 3X3 Matrix Multiplication using C++.


Instead of using loose arrays, create a matrix class for
making objects and a Matrix multiplication function
which takes up Matrix type objects, and gives output
matrix.
7 Your motivation behind the Game Development
Workshop? Why you consider yourself as good
candidate for this workshop? Please answer briefly.

You might also like