Subscribe:Posts Comments | Read Articles on Various Topics - Pro Articles

You Are Here: Home » Sample Placement Papers, Subex Test Papers » Subex Placement written paper feb 2005

Here is the whole written test paper for Subex (February 2005)
Written test Question Paper: One hour
There are 2 parts.
Part 1 : 20 C Questions (corect=+1, wrong= -1)
Part 2 : 2 Programming problems, out of which you need to answer 1 (have to write C
code for it)

Here are the sample questions / c programs
1.
#include
int main()
{
char *str = “Hello, world” ;
printf(“%5s” , str);
}
Output :

2.
int *ptr[10];
what is the above?
a) declaration of 10 pointers
b) declaration and defn of 10 pointers
c) declaration and defn of an array of 10 pointers
d) none

3.
#include
int main()
{
extern int i;
printf(“%d” , i);
}
a) garbage
b) 0
c) compiler error
d) linker error

4.
#include
void temp();
void temp(void);
int main()
{
temp();
}
void temp()
{
printf(“C is exciting!”);
}
Output :

5.
#include
void temp(int i)
{
if(i == 10) return;
i++ ;
temp(i);
printf(“%d” , i);
}
int main()
{
temp(1);
}
Output :
C language programming questions / coding questions or programs
6.
int func (int (*)(int) , int);
int cube(int n)
{
return (n*n*n);
}
int main()
{
prinf(“%d” , func(cube , 4));
}
int func(int (*tmp)(int in) , int n)
{
int res , i;
for(i = 1 ; i <= n ; i++)
res += *(tmp)(i);
return res;
}
Output :

7.
Some question on “strtok” function

8.
#include
int main()
{
char *str = “Hello, world”;
int i = sizeof(str);
for( ; i >= 0 ; i–)
printf(“%c” , str[i]);
}

9.
Some question on recursion

10.
#define MAX(A , B) ( A < B ? B : A )
#include
int main()
{
int a = MAX( 4+2 , 3*2) ;
printf(” %d ” , a);
}

11. Question involving sizes of structure and unions

Subex Paper Part 2 :
1) A program that recognizes date of any format mm/dd/yy, dd/mm/yy, etc. and displays it as mm/dd/yy

2) A text filename is given as a command line argument followed by a character as the
next argument. Store all sentences not beginning with that character (ignore case) in a seperate file.

Also see related Subex and other IT firms / mnc placement papers 2008, whole test question papers of placement exams with full detail, solutions and hints for engineers, graduates B.tech / BE ece (electronics), cse (computer science), ee (electrical engineering), IT branch, mechanical, civil, chemical, etc.

Related Posts

    Leave a Reply

    © Copyright 2010 Latestexams. All Rights Reserved | Privacy Policy | Terms & Conditions