HCL-Papers-Collection

HCL-Papers-Collection

4 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What does the hexa number E78 in radix 7

  1. (a) 12455
  2. (b) 14153
  3. (c) 14256
  4. (d) 13541
Question 2 Multiple Choice (Single Answer)
  1. a=2, b=3, c=6 Find the value of c/(a+b)-(a+b)/c
  1. 11/30
  2. 11/10
  3. 7/11
  4. 7/30
  5. 11/20
Question 3 Multiple Choice (Single Answer)
  1. Which of the following involves context switch,

       (e) none of the above
    
  1. (a) system call
  2. (b) priviliged instruction
  3. (c) floating poitnt exception
  4. (d) all the above
Question 4 Multiple Choice (Single Answer)

What can be said of the following program?
main()
{
enum Months {JAN =1,FEB,MAR,APR};
Months X = JAN;
if(X==1)
{
printf(Jan is the first month);
}
}

  1. a) Does not print anything
  2. b) Prints : Jan is the first month
  3. c) Generates compilation error
  4. d) Results in runtime error