Technical Questions asked in Intergraph

  1. The mechanism that bring a page into memory only when it is needed is called
    1. Segmentation
    2. Fragmentation
    3. Page Replacement
    4. Demand paging
    Answer: Option D
cognizant article ad
  1. The primary distinction between long term scheduler and short term scheduler is________________
    1. Process creation tasks
    2. Type of tasks executed
    3. Frequency of Execution
    4. CPU scheduling time
    Answer: Option C
  2. # include
    main ( )
    {
    char ch = 'A'; while (ch<='F') { switch(ch) {
    case 'A': case 'B': case 'C' : case 'D' :
    ch++; continue;
    case 'E' : case 'F': ch++;
    }
    putchar(ch);
    }
    What will be the output of the above program?
    1. ABCDEF will be displayed
    2. FG will be displayed
    3. EFG will be displayed
    4. EF will be displayed
    Answer: Option B
  3. Assume that i ,j and k are integer variables and their values are 8,5 and 0 respectively.
    What will be the values of variables i and k after executing the following expressions ?
    k=(j>=5) ? (i< 5) ? i-j-i : k-j : i ;
    i+ = (k)?(i)?(k):(i):(k);
    1. -3 and 3
    2. 3 and -5
    3. 3 and -3
    4. -5 and 3
    Answer: Option D
  4. A member function defined within the class definition, rather than simply declared there taken to be an ____________________________________________ member function
    1. static
    2. inline
    3. constant
    4. overloaded
    1. Analyse the following code snippet and choose the answer:-
      #include < stdio.h > Class Temp
      {
      private:
      int m_ival;
      public:
      Temp()
      {
      Cout<<"OBJECT CREATED\n"< }
      ~Temp()
      {
      Cout<<"OBJECT DESTROYED\n"< }
      };
      void fnRead()
      {
      Temp oTempObj;
      }
      int main()
      {
      fnRead();
      cout<<"IN MAIN \n"< return 0;
      }
      1. OBJECT CREATED OBJECT DESTROYED
      2. OBJECT CREATED OBJECT DESTROYED IN MAIN
      3. OBJECT CREATED IN MAIN
      4. Compilation Error
      Answer: Option B.
Campus Placement ad
Rate Us
Views:10336