Following post is about important questions related to Technical Aptitude for Zensar Technical Aptitude Questions Preparation.

Question: If(fp == fopen("dfas","r") = = NULL), what is the value of fp
(a) NULL
(b) 0
(c) 1
(d) 0 or 1
Answer: (a)

Question:
#define sqr(x) x*x

Question: What is value of j if j == 2 * sqr(3 + 4)




Question:
#define FILENAME(extension)
test_##extension
How will it print FILENAME(back)

(a) test_back
(b) test_#back
(c) test_##back

Question:
char *p == \"hello world\"
p[0] == \'H\', what will be printf(\"%s\", p);

(a) Hello world
(b) hello world
(c) H
(d) compile error

Question:
int fun()
How do u define pointer to this function ??


Question: What is meant by int (* xyz)[13]

Question: What is true in the following:

(a) Base call refrnece is compatible with child class
(b) Child class reference is compatible with base class
(c) No reference to class

Question:
Class b
  {
    }
  class a
     {
     friend class b
    }
Then which of the following is true
(a) a can access all protected and public members in b
(b) b can access all protected and public members in a
(c) a can access all members of a
(d) b can access all members of b

Question: What will be the output of the following program:
 #include
  main()
      {
   int n=0;
   int i;
   i=2;
  switch(1)
       {
       case 0:do{
       case 1:n++;
       case 2:n++;
      }
           while(--i>0);
    }
        printf(\"n==%d\",n);
        }

(a) compile error
(b) 4
(c) 1
(d) 0

Go through these important questions so that you can prepare well and perform well in the placement exam and get a job in Zensar Technologies.

Gd / Extempore

HR Interview

Important Tips

Which is the most difficult part in Zensar Placement Process?