Showing posts with label Mastek. Show all posts
Showing posts with label Mastek. Show all posts

Mastek Technical-aptitude test questions LIST NO. 1, Latest Mastek aptitude Placement Papers

Wednesday, July 6, 2011 Posted by Sangram Nandkhile 0 comments










Mastek Technical-aptitude test questions LIST NO. 1


Hi Readers,
You must have seem Mastek's overall placement Pattern in my last article, that was Mastek Aptitude test Paper Pattern-My review

They will be focusing on the Technical questions so i have googled some technical questions for you and i will be posting in this post.

I wont say these are the same questions i had seen in mastek but they are quite similar.
So i will request you to take a look at it.

Mastek Technical-aptitude test questions LIST NO. 1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Answers are marked in RED.
/*question number 1*/

int z,x=5,y=-10,a=4,b=2; 
z = x++ - --y * b / a;
What number will z in the sample code above contain?
Choice 1
5
Choice 2
6
Choice 3
10 [Ans]
Choice 4
11
Choice 5
12
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

/*question number 2*/
With every use of a memory allocation function, what function should be used to release allocated memory which is no longer needed?
Choice 1
unalloc()
Choice 2
dropmem()
Choice 3
dealloc()
Choice 4
release()
Choice 5
free() [Ans]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

/*question number 3*/
Code:
void *ptr;
myStruct myArray[10];
ptr = myArray;
Which of the following is the correct way to increment the variable "ptr"?
Choice 1
ptr = ptr + sizeof(myStruct); [Ans]
Choice 2
++(int*)ptr;
Choice 3
ptr = ptr + sizeof(myArray);
Choice 4
increment(ptr);
Choice 5
ptr = ptr + sizeof(ptr);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

/*question number 4*/
Code:
char* myFunc (char *ptr)
{
 ptr += 3;
 return (ptr);
} 
int main()
{
 char *x, *y;
 x = "HELLO";
 y = myFunc (x);
 printf ("y = %s \n", y);
 return 0;
}
What will print when the sample code above is executed?
Choice 1
y = HELLO
Choice 2
y = ELLO
Choice 3
y = LLO
Choice 4
y = LO [Ans]
Choice 5
x = O
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

/*question number 5*/
Code:
struct node *nPtr, *sPtr;    /* pointers for a linked list. */ 
for (nPtr=sPtr; nPtr; nPtr=nPtr->next)
{    
 free(nPtr);
}
The sample code above releases memory from a linked list. Which of the choices below accurately describes how it will work?
Choice 1
It will work correctly since the for loop covers the entire list.
Choice 2
It may fail since each node "nPtr" is freed before its next address can be accessed.
Choice 3
In the for loop, the assignment "nPtr=nPtr->next" should be changed to "nPtr=nPtr.next".
Choice 4
This is invalid syntax for freeing memory.
Choice 5
The loop will never end.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

/*question number 6*/
What function will read a specified number of elements from a file?
Choice 1
fileread()
Choice 2
getline()
Choice 3
readfile()
Choice 4
fread()
Choice 5
gets()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

/*question number 7*/
"My salary was increased by 15%!"
Select the statement which will EXACTLY reproduce the line of text above.
Choice 1
printf("\"My salary was increased by 15/%\!\"\n");
Choice 2
printf("My salary was increased by 15%!\n");
Choice 3
printf("My salary was increased by 15'%'!\n");
Choice 4
printf("\"My salary was increased by 15%%!\"\n");[Ans]
Choice 5
printf("\"My salary was increased by 15'%'!\"\n");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

/*question number 8*/
What is a difference between a declaration and a definition of a variable?
Choice 1
Both can occur multiple times, but a declaration must occur first.
Choice 2
There is no difference between them.
Choice 3
A definition occurs once, but a declaration may occur many times.
Choice 4
A declaration occurs once, but a definition may occur many times. [Ans]
Choice 5
Both can occur multiple times, but a definition must occur first.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

/*question number 9*/
int testarray[3][2][2] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
What value does testarray[2][1][0] in the sample code above contain?
Choice 1
3
Choice 2
5
Choice 3
7
Choice 4
9
Choice 5
11[Ans]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

/*question number 10*/
Code:
int a=10,b;
b=a++ + ++a;
printf("%d,%d,%d,%d",b,a++,a,++a);
what will be the output when following code is executed
Choice 1
12,10,11,13
Choice 2
22,10,11,13
Choice 3
22,11,11,11
Choice 4
12,11,11,11
Choice 5
22,13,13,13[Ans]


 Hope This helps.

Incoming search items:

  • Mastek Aptitude test Paper Pattern 
  • Latest Mastek Placement Papers
  • Mastek Pattern- 2011-2012

Labels:

Mastek Aptitude test Paper Pattern - Latest Mastek Placement Papers- Mastek Pattern- 2011-2012

Tuesday, July 5, 2011 Posted by Sangram Nandkhile 0 comments










Mastek Aptitude test Paper Pattern - 
Latest Mastek Placement Papers- 
Mastek Interview Pattern- 2011-2012

Hi guys,

Mastek can be great company to start your career but getting into mastek is difficult task freshers.I had tried for Mastek in last year in July 2010.

Let me tell you the overall pattern first.



Mastek Placement Drive Pattern:

i. Technical (70%)+ Aptitude test(30%)
ii. Technical Interview
iii.HR Interview

Technical + Aptitude test
 
Mastek always needs some good technical oriented brains (unlike Infosys )..so its but obvious for us to understand they are mainly focusing on the Technical part:
Major part was technical , i would say around (70% questions ) and 30 %  part was  aptitude test.

Every question has 4 or 5 options:
Technical part was on c,c++.
They give small snippets of codes of c,c++ and we need to find the Output of the code or to decide which is the right code from all the 4 options.  

Even if they don't mention but there will be sectional cut off.


You can expect questions on:
  • call by value
  • Call by reference
  • Inheritance
  • Loops with iteration over 100 loops( to find the outputs)
  • other OOPS concept
Please Google It for such questions..

Aptitude test was easy..please check Links shared at the end of the Post  for aptitude test.

Hope this will help you all in understanding the mastek placement pattern. 
I will be posting the questions similar  to mastek  in the next article.


All the best.


  SearchItems: 

Mastek placement papers 2011 , 
Download Mastek Placement papers.

Labels: ,
Related Posts Plugin for WordPress, Blogger...
 

Like Us

Alexa

Followers