Showing posts with label Recruitment. Show all posts
Showing posts with label Recruitment. Show all posts

NeST Recruitment 2012 - General ability test and Technical ability test




NeST Software Campus Recruitment 2011-2012




  NeST Software (Network Systems & Technologies ) , a division of SFO Technologies and part of the NeST Group of companies, is a technology company which offers customized software and hardware development services for engineering applications and product development services for customers worldwide.

The selection process includes:
   1. Offline General ability test and technical ability test.(1 hr. 30 mints)
   2. Personal interview (for those who gets short listed in the written test)
NeST aptitude test  consist of 4 sections with 85 questions and total time of 90 minutes.

Section 1: Verbal Ability
This section is to test your language skills & verbal abilities. The section consist of 20 questions which should be answered in 20 minutes. The section contains the following types of questions.
  • Read passage & answer question.
  • Fill in the blanks ( Grammar  ).
  • etc.
 Section 2: Logical Ability
This section is to test your logical skills. The section consist of 20 questions which should be answered in 20 minutes. The section contains the following types of questions.
  •       Select best conclusion from given statements.
         Eg: St1:All men are hard working.
               St2: Suresh is a man.
a.Suresh is hard working.
b.Suresh is not hard working.
c.Suresh is not a man.
d.Men are not hard working.

  • Complete the sequence of numbers.
  • Choose the best matching figure for the series of pictures.
  • Find odd picture from a set of pictures.
  • Find similar picture for the given picture from the option pictures.
  • Find code for given code.
          Eg:  If ABCD --> BCDE  then  PQRS -->  ?
         a)QRSU
         b)QRSV
         c)QRSW
         d)QRST

  • Read a tabular information & answer questions.



A
B
C
1



2



3




Questions regarding filling of the cells A1,A2…C3 with the numbers 1-9 satisfying given conditions.

Eg: What will be the position of 7 in the table?
     a.A1   b.B1   c.C1   d.C3

Section 3: Programming Ability
This section is to test your programming skills. The section consist of 15 questions which should be answered in 30 minutes. The section contains the following types of questions.
  • An algorithm will be given (such as prime number generation). Finding output.
  • Choosing correct algorithm for given problem.
              Eg: Abundant numbers
  • A flow chart will be given. Choosing correct output for the given input.
  • Other questions:
1.       Which operator in c++ can not be overloaded?
a.+     b.-     c.++     d.?:
2.       Preprocessors are expanded at the stage of
a.Compilation   b.Pre compilation    c.Loading    d.Linking


Section 4: IT Concept
This section is to test your knowledge in IT. The section consist of 30 questions which should be answered in 30 minutes. The section contains theory questions (operating systems, microprocessors, computer organization, etc…)


Shredskerala - Oracle Campus Recruitment Aptitude Questions - Basic Computer Knowledge - Java Aptitude Questions



Shreds Kerala 
Oracle Financial Services Campus Recruitment - 2012

Aptitude Questions
 

BASIC COMPUTER KNOWLEDGE APTITUDE SECTION – Sample Questions
Java- Aptitude Questions
Basic level of the Java assessment. This is to test your skills in Fundamentals of java, Object Oriented P rogramming, Collections and Generics , etc...


Question Number 1

Which of the following correctly maps the default values of the array elements of the types indicated?

a. String → "null"
b. float → 0.0
c. boolean → true
d. char → '\u0000'


Question Number 2 
What will be the output of the following code snippet?
public class LoopTest  {
public static void main(String[] args)  
{
int[] aLoop = {1,3,5,7,9}; 
for(int x : aLoop) 
{ 
for(int j = 0; j < 3; j++) 
{ 
if(x > 4 && x < 8) continue; 
System.out.print(" " + x);
if(j == 1) break; 
continue; 
}
continue;
}
}
}

a. 1 1 3 3 9 9
b. 1 3 3 9 9
c. 5 5 7 7
d. 1 3 9


Question Number 3 
Select from below options what is the right order in which the compilation units (class, interface, package and import statements) must appear in a file?

a. Package declaration
 Import statements
 Class, interface definitions
b. Import statements
Package declaration
Class, interface definitions
c. Package declaration
Class, interface definitions
Import statements
d. None of these


Question Number 4 
Which of the following statements will NOT cause an early termination of the loop?

a. continue
b. return
c. System.exit()
d. break


Question Number 5

Consider the following lines of code:

byte xValue=64; 
byte yValue=5;
byte zValue= (byte)(xValue*yValue);

After execution, what is the value of zValue?

a. 320
b. 0
c. 64
d. 645


Question Number 6 
Select the static methods which are defined in the java.lang.String class.

a. valueOf
b. length
c. indexOf
d. compare


Question Number 7 
Which of the following code fragments will compile without errors?

a. float f = 56.66;
b. boolean v = false,i;
c. double d = 34.56L;
d. char c = "d";

Question Number 8

Which of the following options correctly places a file named 'Test.java' in a directory 'src/test/'?

a. package src.test.Test.java;
b. package src;
package test;
public class Test
{
}
c. package src.test;
public class Test
{
}
d. package src/test;
public class Test
{
}


Question Number 9
 
Which of the following is the result of compiling and running the following program?

public class Test  
{ 
public static final String TEST = "test"; 
public static void main(String[ ] args)  
{ 
Test b = new Test(); 
Sub s = new Sub(); 
System.out.print(Test.TEST);
System.out.print(Sub.TEST) ; 
System.out.print(b.TEST); 
System.out.print(s.TEST); 
System.out.print(((Test)s).TEST); 
}  
} 
class Sub extends Test { public static final String TEST= "test1"; } 


a. testtest1testtest1test
b. test1test1test1test1test1
c. testtesttesttest1test
d. testtesttesttest1test1


Question Number 10
With respect to the below code choose the correct option.
public class Test
{
private static String var1; 
private int var2;
private String var3; 
void method1() 
{
String var4;
}
void method2() 
{
}
void method3() 
{
}
}
a. var4 is an instance variable
b. var2 is a class variable
c. var1 is a class variable
d. var3 is a local variable


Question Number 11 
What will be the output of the following program?
class Parent
{
private final void callParent()  
{
System.out.println("Parent");
}
}
public class Child extends Parent
{
public final void callParent()
{
System.out.println("Child");
}
public static void main(String [] args)
{
new Child ().callParent();
}
} 
a. Child
b. Compilation fails
c. Child
d. Parent
Parent


Question Number 12
Consider a method with the below signature.
void test(Double r)
Which of the following invocations will result in a compiler error?

a. test(2)
b. test(.2d)
c. test(2D)
d. test(2.0)

Question Number 13 
Which of the following statements is TRUE about the program given below?

interface Test1 { } 
interface Test2 extends Test1 { } 
class Test3 implements Test2 { }
class Test4 extends Test3 implements Test2 { }
public class Test 
{
public static void main(String[] args)
{
System.out.println(new Test4() instanceof Test3); //line 1
System.out.println(new Test4() instanceof Test2);//line 2
System.out.println(new Test4() instanceof Test1);//line 3
System.out.println(new Test3() instanceof Test4);//line 4 
System.out.println(new Test3() instanceof Test1);//line 5
}
}

a. All lines will evaluate to true
b. Only line 1 and 2 will evaluate to true
c. All lines will evaluate to true and only line 4 will evaluate to false
d. Lines 3 and 5 will evaluate to false

Question Number 14
Consider the following code segment:

import myLibrary.*;
class TestClass
{
// code for the class... 
}

What should be the name of this file in order to compile and run the code segment successfully?

a. TestClass
b. TestClass.java
c. Any filename with the extension .java
d. TestClass.class


Question Number 15 
Which of the following keywords cannot be used for an abstract method in abstract class?

a. abstract
b. static
c. public
d. void


Question Number 16
Consider a method with the below signature.
public void testDouble(double a)
Which of the following invocations will result in a compiler error?

a. testDouble(0.5+0.1)
b. testDouble(0.3,0.2)
c. testDouble(0.2f)
d. testDouble(0) 

Question Number 17
 
A __________ is a collection with no duplicate elements.
a. List
b. Set
c. Map
d. Queue


Question Number 18
Which of the following is a Java collection interface?

a. ConcurrentSkipListSet
b. LinkedBlockingDeque
c. ConcurrentSkipListMap
d. NavigableMap

Question Number 19 
Which of the following methods is to be used for adding elements to a generic Map?

a. insert()
b. put()
c. addvalue()
d. add()


Question Number 20
What is the legal syntax for accessing collection loop in generics?
a.
void printList(Collection<Object> c)  
{
for (Object e =c)
{
System.out.println(e);
}
}
b.
void printList(Collection<Object> c)
{
for (int count=0 ; count < c.size();)
{
System.out.println(e);
}
}
c.
void printList(Collection<Object> c)
{
for (c)
{
System.out.println(e);
}
}
d.
void printList(Collection<Object> c)
{
for (Object e : c)
{
System.out.println(e);
}
}

Oracle Financial Services Campus Recruitment - 2012 - Aptitude C++

Oracle Financial Services Campus Recruitment - 2012

Aptitude Questions
 

BASIC COMPUTER KNOWLEDGE APTITUDE SECTION – Sample Questions

C++  Aptitude Questions
Basic level of the C++ assessment. No points will be deducted for wrong answers. Questions are from Fundamentals , Object Oriented Programming , Arrays, Strings, Files etc .


Question Number 1

What will be the output of the following program?

int main(){
if(cout << "Hello ")

{
cout<< "Universe \n";
}
else
{
cout<< "World \n";
}
return 0;
}

a. Universe
b. Hello Universe
c. World
d. Hello World


Question Number 2 
What will be the output of the following program?

#include<iostream.h>
int main()
{
int i, j =5;
{
for (i= 0; i<= j; i++)
cout << i;
j++;
}
return 0;
}

a. 024
b. 0123456
c. Prints an infinite loop
d. 012345


Question Number 3 
What will be the output of the following code sample?

#include <iostream>
using namespace std;
int main ()
{
int a, b;
int result;
a = 5;
b = 2;
a = ++a;
result = a - b;
cout << result;
return 0;
}

a. 4
b. 3
c. 5
d. Compiler error


Question Number 4 
What does the following expression find?

if(X%4==0&&X%100!=0||X%400==0)

a. Prime number
b. Armstrong numbers
c. Invalid expression
d. Leap year


Question Number 5
Which one of the following actions call the copy constructor?

a. Passing an argument by reference
b. Passing an argument by using a pointer
c. Passing an argument by value
d. All of these


Question Number 6 
What will be the output of the following program?

#include<iostream.h>
class node
{
public:
virtual void display(int i)
{
cout<<"Iam in node"<<endl;
}
virtual int display(int i)
{
cout<<"I am in overloaded display"<<endl;
}
};
class derived:public node
{
private:
void display()
{
cout<<"Iam in derived"<<endl;
}
};
int main()
{
node *n;
derived d;
n = &d;
n->display();
getch();
}

a. Compiler error
b. Iam in derived
c. I am in overloaded display
d. Iam in node


Question Number 7
How can the constructor handle a failure?

I. By returning a value as status.
II. By throwing exception.
III. No error handling can be done.

a. I only
b. II only
c. III only
d. I and II


Question Number 8
Which one of the following statements is TRUE about the following program?

#include<iostream.h>
class Base
{
public:
Base(void)
{
}
virtual ~Base(void){}=0;
};
int main ()
{
return 0;
}

a. Class inherited from base must override the destructor of base
b. Above code has a syntax error
c. Above code doesn't have any error
d. A destructor cannot be pure virtual


Question Number 9
What is the default access level assigned to members of a class?

a. Friendly
b. Private
c. Abstracted
d. Protected


Question Number 10
Which of the following is TRUE about Virtual Functions?

a. Virtual Functions of the Base class must always be implemented in its Derived class
b. Pure virtual function must never have a body
c. Pure virtual function cannot be static
d. The call to a Virtual Functions work slower than normal function calls


Question Number 11
Which one of the following statements holds good for C++?

a. When a base class is either Privately or Publicly inherited, the private members of the base class never gets inherited in the derived class
b. When a base class is either Privately or Publicly inherited, None of the members of the base class gets inherited in the derived class
c. When a base class is either Privately, Only private members of the base class gets inherited in the derived class
d. When a base class is either Privately or Publicly inherited, the private members of the base class gets inherited in the derived class too


Question Number 12
Which of the following are valid places from where a function can be invoked in C++?

a. main() function
b. Another function
c. Within itself
d. All of the above


Question Number 13
How many times does the loop execute?

#include <iostream.h>
int main(void)
{
static int i = 0;
do
{
++i;
}while(i>=10);
}

a. 1
b. 10
c. 0
d. Infinite


Question Number 14
What are member functions in C++?

a. Any nonstatic function declared outside a class declaration is called member function
b. Any static function declared inside a class declaration is called member function
c. Any static function declared outside a class declaration is called member function
d. Any nonstatic function declared inside a class declaration is called member function


Question Number 15
What will be the output of the following code ?

#include <iostream.h>
class A
{
public:
virtual void example()=0;
};
class B:public A
{
public:
void example()
{
cout<<"One";
}
};
class C:public A
{
public:
void example()
{
cout<<"Two";
}
};
void main()
{
A* arra[2];
B e1;
C e2;
arra[0]=&e1;
arra[1]=&e2;
arra[0]->example();
arra[1]->example();
}

a. One
b. No Output
c. OneTwo
d. Compiler error


Question Number 16
Which of the following header files are part of Standard Input/Output Library?

1. iostream
2. fstream
3. sstream
4. iomanip

a. 1 only
b. 2 & 3 only
c. 1 & 2 both
d. All of these


Question Number 17
Which class is the ifstream derived from?

a. istream
b. fstream
c. iostream
d. ofstream


Question Number 18
What will be the output of the following program?

int main(void)
{
char x[]={'h','e','l','l','o'};
x[sizeof(x+1)] = '\0';
cout << x;
return 0;
}

a. hell
b. hello followed by some junk values
c. Runtime error
d. hello


Question Number 19
What will be the correct way, if we want to read the file file.bin in binary mode and want to place the file pointer at the end?

a. ifstream myfile ("file.bin", ios::in | ios::app | ios::binary);
b. ofstream myfile ("file.bin", ios::in | ios::ate | ios::binary);
c. ofstream myfile ("file.bin", ios::in | ios::app | ios::binary);
d. ifstream myfile ("file.bin", ios::in | ios::ate | ios::binary);


Question Number 20
What will be the output of the following program?

#include <iostream.h>
int main ()
{
char myword [] = { 'H', 'e', 'l', 'l', 'o', '\0' };
char myword1 [] = "Hello";
cout<< myword<< " " << myword1;
}

a. Runtime error
b. Hello H
c. Hello Hello
d. Compiler error 

Oracle Recruitment 2012 - Aptitude Questions - Basic Computer Knowledge

Oracle Financial Services Campus Recruitment - 2012

Aptitude Questions
 
BASIC COMPUTER KNOWLEDGE – Sample Questions

C - Aptitude Questions
This is the Basic level of the C assessment. No points will be deducted for wrong answers. 


Question Number 1
Which among the following are TRUE?
I. User has to explicitly define the numeric values of enumerations.
II. User has a control over the size of enumeration variables.
III. Enumerations cannot take negative values.
IV. Enumerations can have an effect local to the block if desired.
a. I and II
b. IV only
c. III and IV
d. II and III


Question Number 2
What will be the output of the following program?
struct emp
{
int length;
char* name;
};
int main()
{
char *vName = "Joseph";
struct emp *eVar = (struct emp*)malloc(sizeof(struct emp));
eVar->length = strlen(vName);
eVar->name = (char*)malloc(eVar->length+1);
strcpy(eVar->name, vName);
printf("%d %s\n", eVar->length, eVar->name);
free(eVar->name);
free(eVar);
return 0;
}
a. 6 Joseph
b. Compiler error
c. JunkValue Joseph
d. Runtime error


Question Number 3
Sizes of integral types are defined in which of the following headers?
a. ctype.h
b. stdarg.h
c. limits.h
d. cmath.h

Question Number 4
What will be the output of the following program?
int main()
{
union x
{
char v1;
short int v2;
};
union x x1;
x1.v2 = 1024;
printf("%d\n",(x1.v1 & 0xff00));
return 0;
}

a. Compiler error
b. 1024
c. 0
d. 1064


Question Number 5
What will be the output of the following program?
main()
{
int Oxygen=5;
printf("%d\n%d\n%d",Oxygen,Oxygen<<5,Oxygen>> 5);
return 0;
}
a. 5
160
 5
b. 5
160
0
c. 0
160
5
d. 5
128
0

Question Number 6
The __________ modifier hints to the compiler that the variable will be heavily used and should be kept in the CPU's registers.
a. Static
b. Register
c. Auto
d. Volatile


Question Number 7
What could be the correct reason for the below program to fail upon compilation?
Sum(int a, int b)
{
int a;
a = 57;
a = a + b;
return a;
}
I. Invalid arguments to the function.
II. Re-declaration of a.
III. Function must have a return type specified.

a. II only
b. II and III
c. I only
d. III only


Question Number 8
What will be the output of the following program?
void main()
{
printf("Value : %d",10^9);
}

a. Value : 1
b. Value : 3
c. Error
d. None of the above 

Question Number 9
What will be the output of the following program?
#include<stdio.h>
int main()
{
int ivar;
for(ivar=1;ivar<4,ivar++)
switch(ivar)
case 1: printf("%d",ivar);break;
{
case 2:printf("%d",ivar);break;
case 3:printf("%d",ivar);break;
}
switch(ivar)
case 4:printf("%d",ivar);
return 0;
a. 1 2 3 4
b. No output
c. 1 2 3
d. Compiler error


Question Number 10
What will be the output of the following program?
#include<stdio.h>
void Test(int i)
{
printf( "int ");
}
void Test(int &i)
{
printf( "int &");
}
void main()
{
int x=10;
Test(x);

 
a. Compiler error
b. int
c. Runtime error
d. int &


Question Number 11
What will be the output of the following program?
int main()
{
int i=1;
for( ; i < 5; i++);
printf("%d ", i);
return 0;
}

a. 1 2 3 4
b. 1
c. 1 2 3 4 5
d. 5


Question Number 1 2
What will tempStr contain after execution of the following program assuming that file.txt contains "abcdefg"?
int main()
{
char tmpStr[80];
FILE* fp = NULL;
fp = fopen("file.txt","rb");
fseek(fp, 4, SEEK_SET);
fgets(tmpStr, sizeof(tmpStr), fp);
return 0;
}

a. abcdefg
b. NULL
c. efg
d. efg followed by junk characters


Question Number 13
What will be the output of the following program?
#include<stdio.h>
int main()
{
if("lakeside"=="lakeside")
printf("Equal");
else
printf("Not equal");
return 0;
a. Not equal
b. Equal
c. Compiler error
d. None of the above

Question Number 14
Which among the following statements are TRUE?
I. The expression num[1] designates the very first element in the array.
II. It is necessary to initialize the array at the time of declaration.
III. The declaration num[SIZE] is allowed if SIZE is a macro.

a. I and II
b. I and III
c. III only
d. II and III


Question Number 15
What will be the output of the following program assuming file.txt contains "how are you"?
int main()
{
char ch; FILE* fp;
fp = fopen("file.txt","r");
while((ch=getc(fp)) != NULL)
printf("%c", ch);
fclose(fp);
}

a. Compiler error
b. 'how are you' followed by infinite loop
c. Does not print anything and stays in while loop
d. how are you


Question Number 16
Which of the following is TRUE about void pointer?
I. Void pointer has no datatype declared with it and it can be used to point variable of any datatype.
II. Void pointers does not occupy any memory.
III. Void pointers points to nothing. 
a. I only
b. I and III
c. II and III
d. I, II, and III


Question Number 17
Which of the following is TRUE about fseek(fileptr,0,SEEK_SET)?
a. Sets the file position marker to the middle of the file
b. Sets the file position marker to the end of the file
c. Its not a valid option
d. Sets the file position marker to the starting of the file


Question Number 18
Which of the following statements is/are FALSE?
I. Arrays can be passed by reference to a function.
II. Arrays can be passed by value to a function.
III. In pass by value the maximum array size cannot be more than 8KB. 
a. I and II
b. II and III
c. I, II, and III
d. II only


Question Number 19
Which among the following statements are TRUE?
I. stderr, stdin and stdout are FILE pointers.
II. Offset used in fseek() function call can be a negative number.
III. In a call to printf() function, the format specifier, %b , can be used to print binary equivalent of an integer.

a. II and III
b. I and II
c. III only
d. I and III


Question Number 20
Which of the following statements, is correct?
a. strcmp ( s1 , s2 ) returns a number less then 0 if s1 > s2
b. strcmp ( s1 , s2 ) returns 0 if s1 == s2
c. strcmp ( s1 , s2 ) returns a number greater then 0 if s1 < s2
d. strcmp ( s1 , s2 ) returns 1 if s1 == s2

Related Posts Plugin for WordPress, Blogger...