Wednesday, March 27, 2024

C-Dac Question paper - Pattern 1 With Solution

  C-Dac Question paper - Pattern 1 With Solution

Fundamentals of Programming
1.The programming language that was designed for specifying algorithm
Address
ASCII
ALGOL
None of these options

2. _____ contains the addresses of all the records according to the contents of the field designed as the record key.
Index<------ans
Subscript
Array
File

3. _________ symbol is used for Processing of data.
Oval
Parallelogram<------ans
Rectangle
Diamond

4. __________ is the analysis tool used for planning program logic
Protocol
None of these options
PROLOG
Pseudocode

5. Machine language has two part format the first part is__________ and the second part is __________
OPCODE,OPERAND<------ans
OPERAND,OPCODE
DATA CODE,OPERAND
OPERAND,CODEOP

6. Language Primarily used for internet-based applications
ADA
C++
JAVA;------ans
FORTRAN


Ans : 

  1. ALGOL

  2. Index

  3. Parallelogram

  4. Pseudocode

  5. OPCODE, OPERAND

  6. JAVA


7. _________ is a point at which the debugger stops during program execution and awaits a further command.
Memory Dump
Watch point<------ans
Break point
None of these options
8. ________do not contain any program logic and are ignored by the language Processor
Protocol
Virus
Comment  <-------
None of these options

9. The component of data base management system is ________
Data definition Language
Data manipulation Language
Data definition Language and Data manipulation Language
None of these options


10. The quality of Algorithm is judged on the basis of_________
Time requirement
Memory Requirement
Accuracy of solution
All of these options<------ans

11. Advantages of using flow charts is
Effective Analysis
Efficient Coding
Time consuming
Effective Analysis and Efficient Coding<-----ans

Programming in C
12. The Real constants in C can be expressed in which of the following forms
Fractional form only
Exponential form only
ASCII form only
Both Fractional and Exponential forms<------ans

13. The program, which translates high-level program into its equivalent machine language program, is called
Transformer
Language processor
Converter
None of these options<------ans<!--[if !supportEmptyParas]-->

14. Consider the following statements. i.Multiplication associates left to right ii.Division associates left to right
iii.Unary Minus associates right to left
iv.subtraction associates left to right All are true <------ans
only i and ii are true
all are false
only iii and iv are true

15. What will be the value of variable a in the following code?
unsigned char a;
a = 0xFF + 1;
printf("%d", a);
0xFF
0x100
0 <------ans
0x0

16. What is the output of the following program?
#include <stdio.h>
void main()
{
printf("\n10!=9 : %5d",10!=9);
}
1<------ans
0
Error
None of these options
17. #include<stdio.h>
void main()
{
int x=10;
(x<0)?(int a =100):(int a =1000);
printf(" %d",a);
}
Error<------ans
1000
100
None of these options
18. Which of the following shows the correct hierarchy of arithmetic operations in C
(),**, * or /, + or -
(),**, *, /, +, -
(),**, /, *, +, -
(),/ or *, - or + <-----Ans

19. What is the output of the following code?
#include<stdio.h>
void main()
{
int a=14;
a += 7;
a -= 5;
a *= 7;
printf("\n%d",a);
}
112<------ans
98
89
None of these options

20. What is the output of the following code? #include<stdio.h>
#define T t
void main()
{
char T = `T`;
printf("\n%c\t%c\n",T,t);
}
Error
T t
T T
t t

21. The statement that prints out the character set from A-Z, is
for( a = `z`; a < `a`; a = a - 1)
printf("%c", &a);
for( a = `a`; a <= `z`; a = a + 1
printf("%c", &a);
for( a = `A`; a <= `Z`; a = a + 1)<----Ans printf("%c", a);
for( a = `Z`; a <= `A`; a = a + 1)
printf("%c", a);
22. The statement which prints out the values 1 to 10 on separate lines, is
for( count = 1; count <= 10; count = count + 1) printf("%d\n",count);
for( count = 1; count < 10; count = count + 1) printf("%d\n",count);<------ans
for( count = 0; count <= 9; count = count + 1) printf("%d ",count);
for( count = 1; count <> 10; count = count + 1) printf("%d\n",count);
23. What does the term `call-by-reference` refer to?
Passing a copy of a variable into a function. Passing a pointer to a variable into a function. <------ans
Choosing a random value for a variable.
A function that does not return any values.

24. What is the output of the following code? #include<stdio.h>
void swap(int&, int&);
void main()
{
int a = 10,b=20;
swap (a++,b++);
printf("\n%d\t%d\t",a, b);
}
void swap(int& x, int& y)
{
x+=2;
y+=3;
}
14, 24
11, 21 <------ans
10, 20
Error
25. What is the output of the following program code
#include<stdio.h>
void abc(int a[])
{
a++;
a[1]=612;
}
main()
{
char a[5];
abc(a);
printf("%d",a[4]);
}
100
612
Error<------ans
None of these options
26. which of the following is true about recursive function
i. it is also called circular definition
ii. it occurs when a function calls another function more than once
iii. it occurs when a statement within the function calls the function itself
iv. a recursive function cannot have a return statement within it"
i and iii<------ans
i and ii
ii and iv
i, iii and iv
27.What will happen if you assign a value to an element of an array whose subscript exceeds the size of the array?
The element will be set to 0
Nothing, its done all the time
Other data may be overwritten
Error message from the compiler

28. What is the output of the following code? #include<stdio.h>
void main()
{
int arr[2][3][2]={{{2,4},{7,8},{3,4},}, {{2,2},{2,3},{3,4}, }}; printf("\n%d",**(*arr+1)+2+7);
}
16 <------ans
7
11
Error
29. If int s[5] is a one dimensional array of integers, which of the following refers to the third element in the array?
*( s + 2 ) <------ans
*( s + 3 )
s + 3
s + 2

30. #include"stdio.h"
main()
{
int *p1,i=25;
void *p2;
p1=&i;
p2=&i;
p1=p2;
p2=p1;
printf("%d",i);
}
The output of the above code is :
Program will not compile <------ans
25
Garbage value
Address of I
31. What is the output of the following code? void main()
{
int i = 100, j = 200;
const int *p=&i;
p = &j;
printf("%d",*p);
}
100
200 <------ans
300
None of the above

32. void main()
{
int i=3;
int *j=&i;
clrscr();
printf("%d%d",++*j,*(&i));
}
What is the output of this program?
3 3
4 3 <------ans
4,address of i printed
Error:Lvalue required
33. What is the output of the following code? #include<stdio.h>
void main()
{
int arr[] = {10,20,30,40,50};
int *ptr = arr;
printf("\n %d\t%d\t",*ptr++,*ptr);
}
10 20
10 10<------ans
20 20
20 10

34. Which of these are reasons for using pointers?
1.To manipulate parts of an array
2.To refer to keywords such as for and if
3.To return more than one value from a function 4.To refer to particular programs more conveniently
1 & 3 <------ans
Only 1
Only 3
All of the above

35. struct num
{
int no;
char name[25];
};
void main()
{
struct num n1[]={{25,"rose"},{20,"gulmohar"}, {8,"geranium"},{11,"dahalia"}};
printf("%d%d" ,n1[2].no,(*&n1+2)->no+1);
}
What is the output of this program?
8 8
8 9 <------ans
9 8
8 , unpredictable
36. During initializing a union

Only one member can be initialised.
All the members will be initialised. Initialisation of a union is not possible.<------ans
None of these options
37. Self referential structure is one
a. Consisting the structure in the parent structure
b. Consisting the pointer of the structure in the parent structure
Only a
Only b
Both a and b
Neither a nor b
38. Individual structure member can be initialized in the structure itself
True
False
Compiler dependent
None of these options

39. Which of the following is the feature of stack?
All operations are at one end
It cannot reuse its memory
All elements are of different data types
Any element can be accessed from it directly<------ans


40. When stacks are created
Are initially empty<------ans
Are initialized to zero
Are considered full
None of these options

41. What is time required to insert an element in a stack with linked implementation?
(1)
(log2n)<------ans
(n)
(n log2n)

42. Which of the following is the feature of stack?
All operations are at one end
It cannot reuse its memory
All elements are of different data types
Any element can be accessed from it directly<------ans
43. Time taken for addition of element in queue is
(1)
(n)
(log n)<------ans


None of these options
44. When is linear queue said to be empty ? Front==rear
Front=rear-1
Front=rear+1
Front=rear<------ans

45. When queues are created
Are initially empty<------ans
Are initialized to zero
Are considered full
None of the above

46. What would be the output of the following program?
#include <stdio.h>
main()
{
printf("\n%c", "abcdefgh"[4]);
}
abcdefgh
d
e <------ans
error

47. Select the correct C code which will read a line of characters(terminated by a \n) from input_file into a character array called buffer. NULL terminate the buffer upon reading a \n.

int ch, loop = 0; ch = fgetc( input_file ); while( (ch != `\n`)&& (ch != EOF) ){buffer[loop] = ch; loop++; ch = fgetc(input_file );}buffer[loop] = NULL;

int ch, loop = 0; ch = fgetc( input_file ); while( (ch = "\n")&& (ch = EOF)){buffer[loop] = ch; loop--; ch = fgetc(]input_file ); }buffer[loop]= NULL;
int ch, loop = 0; ch = fgetc( input_file ); while( (ch <> "\n")&& (ch != EOF) ){buffer[loop] = ch; loop++; ch = fgetc(input_file ); }buffer[loop] = -1;
None of the above


48. What is the output of the following code ?
void main()
{
int a=0;
int b=0;
++a == 0 || ++b == 11;
printf("\n%d,%d",a,b);
}
0, 1
1, 1 
0, 0 <------ans
1, 0

Explanation - void main()

{

    int a=0;

    int b=0;

    ++a == 0 || ++b == 11;

    printf("\n%d,%d",a,b);

}


The expression ++a == 0 || ++b == 11; will evaluate to 1 because of the logical OR (||) operator.

However, the ++a and ++b will increment a and b respectively, but their values will not affect the overall result of the expression.

So, after this line executes, a will still be 0 and b will still be 0. Therefore, when you print a and b, the output will be:  0,0




49. What is the output of the following program? #define str(x)#x
#define Xstr(x)str(x)
#define oper multiply
void main()
{
char *opername=Xstr(oper);
printf("%s",opername);
}
opername
Xstr
multiply <------ans
Xstr

50. What is the output of the following code ? #include<stdio.h>
#include<string.h>
void main()
{
char *a = "C-DAC\0\0ACTS\0\n"; printf("%s\n",a); }
C-DAC ACTS
ACTS
C-DAC <------ans
None of these

51. #include<stdio.h>
void main()
{
while (1)
{if (printf("%d",printf("%d")))
break;
else
continue;
}
}
The output is
Compile time error
Goes into an infinite loop
Garbage values <------ans
None of these options
52. Select the correct C statements which tests to see if input_file has opened the data file successfully.If not, print an error message and exit the program.
if( input_file == NULL ){printf("Unable to open file.\n");exit(1); }


if( input_file != NULL ){printf("Unable to open file.\n");exit(1); }
while( input_file = NULL ){printf("Unable to open file.\n");exit(1);}
None of these options
53.The code
int i = 7;
printf("%d\n", i++ * i++);
prints 49
prints 56 <------ans
is compiler dependent
expression i++ * i++ is undefined
54. Recursive procedure are implemented by
Linear list
Queue
Tree
Stack<------ans

55. Which of these are reasons for using pointers?
1. To manipulate parts of an array
2. To refer to keywords such as for and if
3. To return more than one value from a function 4. To refer to particular programs more conveniently
1 & 3<------ans
only 1
only 3
None of these options

56. The expression x = 4 + 2 % -8 evaluates to -6
6
4
None of these options

57. What is the output of the following code? #include<stdio.h>
main()
{
register int a=2;
printf("\nAddress of a = %d,", &a); printf("\tValue of a = %d",a);
Address of a,2 <------ans
Linker error
Compile time error
None of these options

58. What is the output of the following code? #include<stdio.h>
void main()
{
int arr[]={0,1,2,3,4,5,6};
int i,*ptr;
for(ptr=arr+4,i =0; i<=4; i++) printf("\n%d",ptr[-i]);(as the 0=4,for -1 it becomes =3)
}
Error
6 5 4 3 2
0 garbage garbage garbage garbage
4 3 2 1 0 <------ans

59. Which of the following is the correct way of declaring a float pointer:
float ptr;
float *ptr; <------ans
*float ptr;
None of the above
60.If the following program (newprog) is run from the command line as:newprog 1 2 3 What would be the output of the following?
void main (int argc, char*argv[])
{
int I,j=0;
for (I=0;I<argc;I++)
j=j + atoi(argv[I]);
printf("%d",j);
}
123
6
123
Compilation error<------ans


C-Dac Question paper - Pattern 1

 C-Dac Question paper - Pattern 1 

Fundamentals of Programming
1.The programming language that was designed for specifying algorithm
Address
ASCII
ALGOL
None of these options

2. _____ contains the addresses of all the records according to the contents of the field designed as the record key.
Index<------ans
Subscript
Array
File

3. _________ symbol is used for Processing of data.
Oval
Parallelogram<------ans
Rectangle
Diamond

4. __________ is the analysis tool used for planning program logic
Protocol
None of these options
PROLOG
Pseudocode

5. Machine language has two part format the first part is__________ and the second part is __________
OPCODE,OPERAND<------ans
OPERAND,OPCODE
DATA CODE,OPERAND
OPERAND,CODEOP

6. Language Primarily used for internet-based applications
ADA
C++
JAVA;------ans
FORTRAN

7. _________ is a point at which the debugger stops during program execution and awaits a further command.
Memory Dump
Watch point<------ans
Break point
None of these options
8. ________do not contain any program logic and are ignored by the language Processor
Protocol
Virus
Comment
None of these options

9. The component of data base management system is ________
Data definition Language
Data manipulation Language
Data definition Language and Data manipulation Language
None of these options
10. The quality of Algorithm is judged on the basis of_________
Time requirement
Memory Requirement
Accuracy of solution
All of these options<------ans

11. Advantages of using flow charts is
Effective Analysis
Efficient Coding
Time consuming
Effective Analysis and Efficient Coding<-----ans

Programming in C
12. The Real constants in C can be expressed in which of the following forms
Fractional form only
Exponential form only
ASCII form only
Both Fractional and Exponential forms<------ans

13. The program, which translates high-level program into its equivalent machine language program, is called
Transformer
Language processor
Converter
None of these options<------ans<!--[if !supportEmptyParas]-->

14. Consider the following statements. i.Multiplication associates left to right ii.Division associates left to right
iii.Unary Minus associates right to left
iv.subtraction associates left to right All are true <------ans
only i and ii are true
all are false
only iii and iv are true
15. What will be the value of variable a in the following code?
unsigned char a;
a = 0xFF + 1;
printf("%d", a);
0xFF
0x100
0 <------ans
0x0

16. What is the output of the following program?
#include <stdio.h>
void main()
{
printf("\n10!=9 : %5d",10!=9);
}
1<------ans
0
Error
None of these options
17. #include<stdio.h>
void main()
{
int x=10;
(x<0)?(int a =100):(int a =1000);
printf(" %d",a);
}
Error<------ans
1000
100
None of these options
18. Which of the following shows the correct hierarchy of arithmetic operations in C
(),**, * or /, + or -
(),**, *, /, +, -
(),**, /, *, +, -
(),/ or *, - or + <-----Ans

19. What is the output of the following code?
#include<stdio.h>
void main()
{
int a=14;
a += 7;
a -= 5;
a *= 7;
printf("\n%d",a);
}
112<------ans
98
89
None of these options

20. What is the output of the following code? #include<stdio.h>
#define T t
void main()
{
char T = `T`;
printf("\n%c\t%c\n",T,t);
}
Error
T t
T T
t t

21. The statement that prints out the character set from A-Z, is
for( a = `z`; a < `a`; a = a - 1)
printf("%c", &a);
for( a = `a`; a <= `z`; a = a + 1
printf("%c", &a);
for( a = `A`; a <= `Z`; a = a + 1)<----Ans printf("%c", a);
for( a = `Z`; a <= `A`; a = a + 1)
printf("%c", a);
22. The statement which prints out the values 1 to 10 on separate lines, is
for( count = 1; count <= 10; count = count + 1) printf("%d\n",count);
for( count = 1; count < 10; count = count + 1) printf("%d\n",count);<------ans
for( count = 0; count <= 9; count = count + 1) printf("%d ",count);
for( count = 1; count <> 10; count = count + 1) printf("%d\n",count);
23. What does the term `call-by-reference` refer to?
Passing a copy of a variable into a function. Passing a pointer to a variable into a function. <------ans
Choosing a random value for a variable.
A function that does not return any values.

24. What is the output of the following code? #include<stdio.h>
void swap(int&, int&);
void main()
{
int a = 10,b=20;
swap (a++,b++);
printf("\n%d\t%d\t",a, b);
}
void swap(int& x, int& y)
{
x+=2;
y+=3;
}
14, 24
11, 21 <------ans
10, 20
Error
25. What is the output of the following program code
#include<stdio.h>
void abc(int a[])
{
a++;
a[1]=612;
}
main()
{
char a[5];
abc(a);
printf("%d",a[4]);
}
100
612
Error<------ans
None of these options
26. which of the following is true about recursive function
i. it is also called circular definition
ii. it occurs when a function calls another function more than once
iii. it occurs when a statement within the function calls the function itself
iv. a recursive function cannot have a return statement within it"
i and iii<------ans
i and ii
ii and iv
i, iii and iv
27.What will happen if you assign a value to an element of an array whose subscript exceeds the size of the array?
The element will be set to 0
Nothing, its done all the time
Other data may be overwritten
Error message from the compiler

28. What is the output of the following code? #include<stdio.h>
void main()
{
int arr[2][3][2]={{{2,4},{7,8},{3,4},}, {{2,2},{2,3},{3,4}, }}; printf("\n%d",**(*arr+1)+2+7);
}
16 <------ans
7
11
Error
29. If int s[5] is a one dimensional array of integers, which of the following refers to the third element in the array?
*( s + 2 ) <------ans
*( s + 3 )
s + 3
s + 2

30. #include"stdio.h"
main()
{
int *p1,i=25;
void *p2;
p1=&i;
p2=&i;
p1=p2;
p2=p1;
printf("%d",i);
}
The output of the above code is :
Program will not compile <------ans
25
Garbage value
Address of I
31. What is the output of the following code? void main()
{
int i = 100, j = 200;
const int *p=&i;
p = &j;
printf("%d",*p);
}
100
200 <------ans
300
None of the above

32. void main()
{
int i=3;
int *j=&i;
clrscr();
printf("%d%d",++*j,*(&i));
}
What is the output of this program?
3 3
4 3 <------ans
4,address of i printed
Error:Lvalue required
33. What is the output of the following code? #include<stdio.h>
void main()
{
int arr[] = {10,20,30,40,50};
int *ptr = arr;
printf("\n %d\t%d\t",*ptr++,*ptr);
}
10 20
10 10<------ans
20 20
20 10

34. Which of these are reasons for using pointers?
1.To manipulate parts of an array
2.To refer to keywords such as for and if
3.To return more than one value from a function 4.To refer to particular programs more conveniently
1 & 3 <------ans
Only 1
Only 3
All of the above

35. struct num
{
int no;
char name[25];
};
void main()
{
struct num n1[]={{25,"rose"},{20,"gulmohar"}, {8,"geranium"},{11,"dahalia"}};
printf("%d%d" ,n1[2].no,(*&n1+2)->no+1);
}
What is the output of this program?
8 8
8 9 <------ans
9 8
8 , unpredictable
36. During initializing a union

Only one member can be initialised.
All the members will be initialised. Initialisation of a union is not possible.<------ans
None of these options
37. Self referential structure is one
a. Consisting the structure in the parent structure
b. Consisting the pointer of the structure in the parent structure
Only a
Only b
Both a and b
Neither a nor b
38. Individual structure member can be initialized in the structure itself
True
False
Compiler dependent
None of these options

39. Which of the following is the feature of stack?
All operations are at one end
It cannot reuse its memory
All elements are of different data types
Any element can be accessed from it directly<------ans
40. When stacks are created
Are initially empty<------ans
Are initialized to zero
Are considered full
None of these options

41. What is time required to insert an element in a stack with linked implementation?
(1)
(log2n)<------ans
(n)
(n log2n)

42. Which of the following is the feature of stack?
All operations are at one end
It cannot reuse its memory
All elements are of different data types
Any element can be accessed from it directly<------ans
43. Time taken for addition of element in queue is
(1)
(n)
(log n)<------ans
None of these options
44. When is linear queue said to be empty ? Front==rear
Front=rear-1
Front=rear+1
Front=rear<------ans

45. When queues are created
Are initially empty<------ans
Are initialized to zero
Are considered full
None of the above

46. What would be the output of the following program?
#include <stdio.h>
main()
{
printf("\n%c", "abcdefgh"[4]);
}
abcdefgh
d
e <------ans
error

47. Select the correct C code which will read a line of characters(terminated by a \n) from input_file into a character array called buffer. NULL terminate the buffer upon reading a \n.

int ch, loop = 0; ch = fgetc( input_file ); while( (ch != `\n`)&& (ch != EOF) ){buffer[loop] = ch; loop++; ch = fgetc(input_file );}buffer[loop] = NULL;

int ch, loop = 0; ch = fgetc( input_file ); while( (ch = "\n")&& (ch = EOF)){buffer[loop] = ch; loop--; ch = fgetc(]input_file ); }buffer[loop]= NULL;
int ch, loop = 0; ch = fgetc( input_file ); while( (ch <> "\n")&& (ch != EOF) ){buffer[loop] = ch; loop++; ch = fgetc(input_file ); }buffer[loop] = -1;
None of the above
48. What is the output of the following code ?
void main()
{
int a=0;
int b=0;
++a == 0 || ++b == 11;
printf("\n%d,%d",a,b);
}
0, 1
1, 1 <------ans
0, 0
1, 0

49. What is the output of the following program? #define str(x)#x
#define Xstr(x)str(x)
#define oper multiply
void main()
{
char *opername=Xstr(oper);
printf("%s",opername);
}
opername
Xstr
multiply <------ans
Xstr

50. What is the output of the following code ? #include<stdio.h>
#include<string.h>
void main()
{
char *a = "C-DAC\0\0ACTS\0\n"; printf("%s\n",a); }
C-DAC ACTS
ACTS
C-DAC <------ans
None of these

51. #include<stdio.h>
void main()
{
while (1)
{if (printf("%d",printf("%d")))
break;
else
continue;
}
}
The output is
Compile time error
Goes into an infinite loop
Garbage values <------ans
None of these options
52. Select the correct C statements which tests to see if input_file has opened the data file successfully.If not, print an error message and exit the program.
if( input_file == NULL ){printf("Unable to open file.\n");exit(1); }


if( input_file != NULL ){printf("Unable to open file.\n");exit(1); }
while( input_file = NULL ){printf("Unable to open file.\n");exit(1);}
None of these options
53.The code
int i = 7;
printf("%d\n", i++ * i++);
prints 49
prints 56 <------ans
is compiler dependent
expression i++ * i++ is undefined
54. Recursive procedure are implemented by
Linear list
Queue
Tree
Stack<------ans

55. Which of these are reasons for using pointers?
1. To manipulate parts of an array
2. To refer to keywords such as for and if
3. To return more than one value from a function 4. To refer to particular programs more conveniently
1 & 3<------ans
only 1
only 3
None of these options

56. The expression x = 4 + 2 % -8 evaluates to -6
6
4
None of these options

57. What is the output of the following code? #include<stdio.h>
main()
{
register int a=2;
printf("\nAddress of a = %d,", &a); printf("\tValue of a = %d",a);
Address of a,2 <------ans
Linker error
Compile time error
None of these options

58. What is the output of the following code? #include<stdio.h>
void main()
{
int arr[]={0,1,2,3,4,5,6};
int i,*ptr;
for(ptr=arr+4,i =0; i<=4; i++) printf("\n%d",ptr[-i]);(as the 0=4,for -1 it becomes =3)
}
Error
6 5 4 3 2
0 garbage garbage garbage garbage
4 3 2 1 0 <------ans

59. Which of the following is the correct way of declaring a float pointer:
float ptr;
float *ptr; <------ans
*float ptr;
None of the above
60.If the following program (newprog) is run from the command line as:newprog 1 2 3 What would be the output of the following?
void main (int argc, char*argv[])
{
int I,j=0;
for (I=0;I<argc;I++)
j=j + atoi(argv[I]);
printf("%d",j);
}
123
6
123
Compilation error<------ans


TCS Latest Technical and Aptitude Questions

TCS Latest Technical and Aptitude Questions - 2014

TCS Selection Procedures:

TCS Eligibility Criteria:

Candidates are required to have a minimum of 60% in both class 10th and 12th. Additionally, the academic gap should not exceed 2 years. During select placement visits, TCS extends direct interview opportunities to candidates with 85% and above marks throughout their academic journey (10th, 12th, and graduation).

Procedure for TCS Campus Placement:

TCS placement drives typically consist of three rounds:

  1. Written Test: The written test comprises questions covering quantitative aptitude, verbal reasoning, and logical reasoning. Consistent practice and effective time management during the written test are crucial for success. The test usually includes 35 questions to be solved within 60 minutes. Since 2013, TCS tests have incorporated negative marking, deducting 1/3rd marks for each incorrect answer. Therefore, candidates are advised to answer only questions they are certain about. Topics covered in the written test include equations, time and distance, number system, time and work, ratio and proportion, as well as probability for the quantitative section. The verbal section encompasses antonyms, synonyms, word usage, and vocabulary-based questions, while the reasoning section includes topics like blood relations, truth and lies, object arrangement, and number puzzles. Results are typically announced within 2-3 hours, and successful candidates proceed to the technical interview.

  2. Technical Interview: During the technical interview, candidates are assessed on their understanding of technical subjects studied during their graduation. Comprehensive knowledge across all semesters is essential, as interviewers may pose questions from any subject area. Candidates should be prepared to tackle questions confidently, and may even be given the opportunity to choose their preferred subject for questioning. Additionally, candidates are questioned about their college projects.

  3. HR Interview: The final round is the HR Interview, evaluating candidates' communication skills and conversational abilities. Only candidates who clear the technical interview proceed to this stage. The HR Manager typically initiates the interview with a request for a brief self-introduction, followed by related inquiries. Candidates can prepare using commonly asked HR Interview questions

Tuesday, March 26, 2024

Amdocs SQL Placcement papers with answers

 

MACRO?


Amdocs SQL Placcement papers with answers

1. float a=.7
if(a=.7)
printf("this");
else
printf("that");

2. switch(n)
case 1: printf("case 1");
case (2) : printf("default");
break;
what will be output??

ans: it will be error since case(2) is not allowed

3. u have to store data on the system which command is used .....

(a)fread (b)fwrite (c)read (d)write

4. what is data dictionary 

5. what is view.......

6. what is output of cal j 2005

7. In which message passing is fast .....options are 

(a)pipe (b) message passing (c) message queue (d) memory sharing 

ans : d

8. question on nice command that is how to change the priority

ans: change the priority of the process

9. context switching takes place....

a) kernel to user mode
b)user to user mode
c)kernel to kernel mode
d)one process to another process

10. what is the difference between dbms and rdbms options were given

11. u have a xwindow and u have to display clock on it then which command will be used??

12. what is fork..... and: to create a new process

13. cp xxx.txt edu

what will it do

ans: copy file xxx to directory edu.

14. if 4 represent as $** and 3 represent as *$$

based on it there were 4 questions....like
i) what is the value of $$$** + $**$*
in similar way rest of 3 questions

15. who provide the certificate

16. along with which hardware this is added...

17. where is security key retain

18. which algorithm is used to generate a key.....

19. to choose which two are similar in the given pattern....this type of four questions

I) i) 123456.876543 ii)123456.876943 iii) 123456.876543
(a)i & ii (b) i & iii (c) ii & iii (d)all are similar

20. main ()
{
int x=5;
x=x----1;
printf ("%d", x); 
} 
Output?

Monday, February 13, 2012

AMDOCS Written Exam Paper Pattern

AMDOCS Written Exam Paper Pattern

Experieance of a candidate -
Hi Amodocs Written pattern is as below :

There are two section


1. Aptitude section: This section consist of 3 sub section analytical reasoning, learning ability and logical reasoning.
a. analytical reasoning: in this section total 20 question in 20 minutes
1) If 50 student plays cricket and 30 plays football and 10 plays both find the total number of student in a class.
2) If  $ means less then, ? means not greater then, * not equal to and % means not not less then
 2.1) find one which implies P$Q*R like question.

b. logical reasoning
if + = / and - = * and / = + and * = - then
1) 2+4/5-7*8 equal to

c. learning ability  :  one passage is given we have to read the passage and find the answers.


2. Technical - Java, unix and sql

java:
1. some question on thread and trace the output of the program

sql:
some question on index and view and query related questions, some on permission and constraints question most of the theoretical questions.

unix;

1. command for comparing two files
2. cat file1 file2 >> file3 find output.
3. which command is used to create a sub processes
4. ls -l ! grep unix > temp.txt what is output.
5. how to delete 100 lines in vi editor using single command
6 which key is used to reach to the end of line
7. if temp.txt contains 100 lines how to print 11th line
-----------------------------------------
Test Date        : 02 Aug 2007, Test Location   : MNNIT Allahabad
AMDOCS PAPER 3rd AUGUST AT ALLAHABAD

Written test: online test of arround 2:30 hrs
there were two sections first one is apptitude section and second one is technical
there will be sectional cutoff in both of the section...each sections have 3-3 sub sections but they havn't individual cut off..

in technical section the three sub section was
i)c (it's on u'r choice u can choose java too)
ii)sql & dbms
iii)unix(in it some part of os too).

AMDOCS EXAM PAPER / INTERVIEW PATTERN Test Date : 14 Jul 2008 , Test Location : TSEC,MUMBAI

AMDOCS EXAM PAPER / INTERVIEW PATTERN

Test Date  : 14 Jul 2008 , Test Location   : TSEC,MUMBAI

 Experieance of a candidate -
110 students sat for the aptitude test out of which 20 where sortlisted and finally 10 were selected.i was one of them after getting rejected in Infosys and Accenture.

The recruitment process consists of the following rounds:

1) Aptitude test (General + Technical)
2) Technical Interview
3) HR Interview

APTITUDE TEST

The duration of the test is approximately 110 min. It was an online test . There were a total of 95 questions to attempt.

There is 60% sectional cut-off for both sections.that is what i heard but i dont think that they follow it strictly as i wont hv got 60%.it depends on the performance of ur batch.
every right ans has +1mark and wrong ans has  -0.25 marks.so be careful if u dont know leave the question.

test paper has many sets.

The aptitude test comprises mainly of two sections:
1) General Aptitude Test-contains 3 subsection
2) Technical Test-contains 3 subsection

General Aptitude test
The general aptitude test consisted of the following sub-sections:
1) quantitative ability 20 ques(25 min)-toughest part of the test as time is very less.questions were not so easy.i was able to do only 11 ques.trick(when u press submit time stops and ask for confirmation if u press cancel u will be brought back to question page)try this at ur own risk as they might rectify this fault.
3 ques on set theory(venn diagram) not so easy prepare set theory thourougly from R.S Agarwal.
2 ques on clock-damn easy took 1 min to get the ans.
next 5 ques was very easy.-no prep required
5 ques were like $ represents 1 and 0 represents * then 4 is represented as $**.some common airthmetic were given u hv to calculate result and just have to convert the no in binary.time consuming.
i forgot other ques but they where not so easy u hv to prepare R.S Aggarwal thouroughly.

2)comprehension(15 min)-damn easy.my passage was on connecting computer.i even dont hv to read the passage as i know 8 ans out of 10.it took me 7 min in total to find remaining 2 ans and crosscheck my ans with the passage.
3)15 easy questions(15 min) on substitution ques like + is *,* is -etc,pattern matching,reasoning.it will take no more than 12 min.

Technical Test
The technical test includes three sub-sections:

- SQL (15 min)
- UNIX (15 min)
- Language (15 min) (Here you can choose between C, C++ or Java)
  I chose C for the language test.

1)C ques were very easy if u know even a little bit of c u will be able to do 15-16 ques. 20ques(25 min)-ample time.
a)int a=10;
b=a++ + ++a;
print(b);
ans-22
b)what is the function used to read n write a specified no of line from file?

AMDOCS PAPER Exam Paper / Interview Pattern - AMDOCS PAPER 3rd AUGUST AT ALLAHABAD


AMDOCS PAPER Exam Paper / Interview Pattern

AMDOCS PAPER 3rd AUGUST AT ALLAHABAD

Written test: online test of arround 2:30 hrs
there were two sections first one is apptitude section and second one is technical
there will be sectional cutoff in both of the section...each sections have 3-3 sub sections but they havn't individual cut off..

in technical section the three sub section was
i)c (it's on u'r choice u can choose java too)
ii)sql & dbms
iii)unix(in it some part of os too).

in apptitude section the three subsection was
i) arithematic
ii)simple apptitude n small puzzles
iii)comprehension
TECHNICAL SECTION
I) C section       25 min    20 ques
1)float   a=.7
     if(a=.7)
        printf("this");
     else
        printf("that");

2)switch(n)
      case 1: printf("case 1");
      case (2) : printf("default");
        break;
     what will be output??
ans:it will be error since case(2) is not allowed


3) u have to store data on the system which command is used .....(a)fread (b)fwrite (c)read (d)write
In c questions were mainly related with pointers(arround 5-6 questions), 2 questions from command line argument, 1 questions related to size of  structure, 2 on string pointer, 1 on preprocessor, 1 on bitwise operator,1 on just declare, the node of link list, 1 on tree whose inorder and preorder is given., 1 on continue..

II) Sql section           15 min    10 ques
i)  what is data dictionary ..........4 options were given
ii)  what is view.......
iii)  2 questions were on transactions  redo undo table was given
iv) given a table u have to find all those customer name and id which not belong to city california or messchustte or his name is jackson