Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
66 views5 pages

Game Development: No. I Just Have The Interest To Learn About It

The document contains questions asked in a game development workshop interview to test the candidate's basic coding skills. The candidate provides responses to questions about prior experience, programming languages known, motivation to attend, and pseudo code examples for tasks like swapping variable values, checking for odd/even numbers, generating random numbers, differences between functions and classes, output expected from sample code, recursive factorial function, differences between queues, stacks and priority queues, and code for queue and stack classes.

Uploaded by

Bala Krishnan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views5 pages

Game Development: No. I Just Have The Interest To Learn About It

The document contains questions asked in a game development workshop interview to test the candidate's basic coding skills. The candidate provides responses to questions about prior experience, programming languages known, motivation to attend, and pseudo code examples for tasks like swapping variable values, checking for odd/even numbers, generating random numbers, differences between functions and classes, output expected from sample code, recursive factorial function, differences between queues, stacks and priority queues, and code for queue and stack classes.

Uploaded by

Bala Krishnan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Game

Development
Name : Balakrishnan s
Email ID : [email protected]
Shaastra ID : SHA1704414

1. Do you have any prior knowledge in game development?


No. I just have the interest to learn about it.

2. Do what languages can you code in? Do you have a good experience
in coding in C or C or C#?
I have good coding skills in c/c++
3. What is your motive to attend this workshop?
To gain some basic knowledge in game development.
4. To test your basic coding skills here are some questions: (pseudo
codes are also fine)
write a pseudo code to swap values in two integer variables 1)
normal method 2) using pointers.
Let the two int variables be a,b
a=a+b;
b=a-b;
a=a-b;
Pointer method
int *x,*y;
x=&a;
y=&b;
int temp;
temp=*x;
*x=*y;
[Type text]

*y=temp;

Game
Development

write a function that would return true if input is odd and false if
input is even.

bool fn(int n)
{
if(n%2==0)return false;
return true;
}
how do you generate a random integer in range(0,50) if rand()
gives any random integer?
rand()%51
what is the difference between a function and a class?
Function is a method or a procedure and Class is a user-defined
datastructure with its characteristic members and methods.
Int * x =
90; Int *y
= 180;
x= y;
y=x;
Print( x, *x, y, *y ) ;

Game
what is the output
you expect?
Development
X and y both have the address of y and *x,*y both give the output
of 180.
Write a recursive function to return factorial of an integer passed
to it

int fn(int n)
{
If(n==1)
Return 1;
Return n*fn(n-1);
}
What are the differences between queue, stack, priority queue.
Queue implements first in first out principle and maintains rear and front
values
Stack implements first in last out principle and maintains top values
Priority queue is similar to an ordinary queue except that in a priority queue
all the elements are always in a sorted order

write a class that can be used to


implement a queue
class Queue
{
int *data;
Int front;
Int rear;
Public:
Queue();
~Queue();
Int enqueue(int n);
Int dequeue();
Int display();
};

write a class that can be used to


implement a stack
[Type text]

class stack
{
Int top;
Int *data;
Public:
Stack();
~stack();
Int push(int n);
Int pop();
Int display();
};
*Please do not copy from others or from internet because it is really hard
for us to teach you anything if you dont know this basics.
*write only those things you know and leave blanks if you are not sure
about the answer

You might also like