Technical Questions asked in Newgen

  1. Consider the following code:
    int f(int k)
    {
    static int i = 100;
    int l;
    if (i == k)
    {
    printf("something");
    l= f(i);
    return 0;
    }
    else return 0;
    }

    Which one of the following is TRUE?
    1. the function returns 0 when j = 1000.
    2. the function prints the string something for all values of j.
    3. the function returns 0 for all values of j.
    4. the function will exhaust the runtime stack or run into an infinite loop when j = 100
    Answer: Option D.

Complete Test Series for Wipro
Bag your Dream Job Today Comprehensive Online Tests Inclusive Prep for All Placement Exams Acquire Essential Domain Skills

  1. Which of the following is feature of friend classes?
    1. If class A is a friend of class B, class B is not automatically a friend of class A.
    2. If class A is a friend of class B, and class B is a friend of class C, class A is not automatically a friend of class C.
    3. None of these
    4. Both (a) and (b)
    Answer: Option D.
  2. Which of the following is not a characteristic of modern DBMS?
    1. Real world entity
    2. More redundancy
    3. Isolation of data and applications
    4. Consistency
    Answer: Option B.
  3. What is a chunk of memory called ?
    1. Page
    2. Sector
    3. Frame
    4. None of these
    Answer: Option C.
  4. Give the output of the following program:
    #include<iostream.h>
    int main()
    {
    long number = 5572331, result=0;
    do
    {
    result * = 10;
    int digit = number% 10;
    result += digit ;
    number / = 10;
    } while (number>0);
    cout<< result ;
    return 0;
    }
    1. 7552133
    2. 3312755
    3. 1332755
    4. None of these
    Answer: Option C.
  5. Evaluate following expression:
    a=3, b=6,c=4,d=2
    a=b>c && b-c= a+c
    1. 0
    2. 1
    3. Error
    4. None of these
    Answer: Option B 
    Substituting values we get (((3+6)>4)&&((6-4)<2))|| ((6+2)>=(3+4)) i.e. ((1)&&(0))||(1)= 1

Complete Campus Placement Training Course
Video Lectures Online Tests E-Books & Assignments

Rate Us
Views:14105