image not found

Oops! That page can't be found.


Directions to Solve

In questions below, each passage consist of six sentences. The first and sixth sentence are given in the begining. The middle four sentences in each have been removed and jumbled up. These are labelled as P, Q, R and S. Find out the proper order for the four sentences.

Q1:
S1: When a satellite is launched, the rocket begins by going slowly upwards through the air.
P : However, the higher it goes, the less air it meets.
Q : As the rocket goes higher, it travels faster.
R : For the atmosphere becomes thinner.
S : As a result there is less friction.
S6: Consequently, the rocket still does not become too hot.
The Proper sequence should be:

A QPRS

B PQRS

C PQSR

D QSPR

Q2:
What will be the output of the following program?
#include<iostream.h> 
class Point
{
    int x, y; 
    public:
    Point(int xx = 10, int yy = 20)
    {
        x = xx;
        y = yy; 
    }
    Point operator + (Point objPoint)
    {
        Point objTmp;
        objTmp.x = objPoint.x + this->x; 
        objTmp.y = objPoint.y + this->y;
        return objTmp;
    }
    void Display(void)
    {
        cout<< x << " " << y;
    }
};
int main()
{
    Point objP1;
    Point objP2(1, 2);
    Point objP3 = objP1 + objP2;
    objP3.Display(); 
    return 0; 
}

A 10 20

B Garbage Garbage

C 1 2

D The program will report compile time error.

E 11 22

Q3:
What will be the output of the following program?
#include<iostream.h>
#include<string.h> 
class AptitudeCrack
{
    char str[50]; 
    char tmp[50]; 
    public:
    AptitudeCrack(char *s)
    {
        strcpy(str, s);
    }
    int AptitudeFunction()
    {
        int i = 0, j = 0; 
        while(*(str + i))
        {
            if(*(str + i++) == ' ')
                *(tmp + j++) = *(str + i);
        }
        *(tmp + j) = 0; 
        return strlen(tmp); 
    }
};
int main()
{
    char txt[] = "Welcome to AptitudeCrack.com!";
    AptitudeCrack objAptitude(txt); 
    cout<< objAptitude.AptitudeFunction();
    return 0;
}

A 24

B 2

C 1

D 25

Q4:
Which of the following statements are TRUE about the .NET CLR?
  1. It provides a language-neutral development & execution environment.
  2. It ensures that an application would not be able to access memory that it is not authorized to access.
  3. It provides services to run "managed" applications.
  4. The resources are garbage collected.
  5. It provides services to run "unmanaged" applications.

A 1, 2, 3, 4

B Only 3 and 4

C Only 4 and 5

D Only 1, 2 and 4

E Only 1 and 2

Q5:
Which of the following are valid .NET CLR JIT performance counters?
  1. Total memory used for JIT compilation
  2. Average memory used for JIT compilation
  3. Number of methods that failed to compile with the standard JIT
  4. Percentage of processor time spent performing JIT compilation
  5. Percentage of memory currently dedicated for JIT compilation

A 1, 2

B 1, 5

C 4, 5

D 3, 4

Q6: Which of the following statements is correct about Managed Code?

A Managed code is the code that is written to target the services of the CLR.

B Managed code is the code that can run on top of Linux.

C Managed code is the code where resources are Garbage Collected.

D Managed code is the code that is compiled by the JIT compilers.

E Managed code is the code that runs on top of Windows.

Q7: Which of the following utilities can be used to compile managed assemblies into processor-specific native code?

A ngen

B dumpbin

C gacutil

D sn

E ildasm

Q8:
Which of the following are NOT true about .NET Framework?
  1. It provides a consistent object-oriented programming environment whether object code is stored and executed locally, executed locally but Internet-distributed, or executed remotely.
  2. It provides a code-execution environment that minimizes software deployment and versioning conflicts.
  3. It provides a code-execution environment that promotes safe execution of code, including code created by an unknown or semi-trusted third party.
  4. It provides different programming models for Windows-based applications and Web-based applications.
  5. It provides an event driven programming model for building Windows Device Drivers.

A 1, 2

B 1, 2, 4

C 2, 4

D 4, 5

Q9: Which of the following components of the .NET framework provide an extensible set of classes that can be used by any .NET compliant programming language?

A Component Object Model

B Common Type System

C .NET class libraries

D Common Language Runtime

E Common Language Infrastructure

Q10:
Which of the following jobs are NOT performed by Garbage Collector?
  1. Freeing memory on the stack.
  2. Avoiding memory leaks.
  3. Freeing memory occupied by unreferenced objects.
  4. Closing unclosed database collections.
  5. Closing unclosed files.

A 3, 5

B 1, 2, 3

C 3, 4

D 1, 4, 5