Technical Questions asked in Lion Bridge

  1. The purpose of watchdog timer is
    1. It acts as an external timer that resets the system if the software fails to operate properly
    2. It acts as an internal timer that sets the system if the software fails to operate properly
    3. It acts as an internal timer that resets the system if the software fails to operate properly
    4. Keeps track of the processor speed
    Answer:  Option C.
  2. What is the output of the following code?
    int account=2;
    void main()
    {
    static int account;
    printf("%d",account);
    1. 2
    2. Garbage value
    3. 0
    4. Error
    Answer: Option  C.
  1. Examine the following code:
    MOV A,
    #56H MOV
    R1, #50H
    MOV 50H, #
    45H XCHG
    A, @R1
    What is the result at A, R1?
    1. 56H, 45H
    2. 45H, 50H
    3. 50H, 56H
    4. 45H, 56H
    Answer: Option  D.
  2. 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
    Answer: Option  B.
  3. Which of the following are valid cases for switch statement?
    (i). -200
    (ii). 3*5+2
    (iii). a*5+2
    (iv). 'x'
    1. (i), (ii), (iii) and (iv)
    2. (i), (ii) and (iv)
    3. (i) and (iv)
    4. (ii) and (iv)
    Answer: Option  B.
  4. Follow the code snippet and chose the correct statement(s) int x; void f2() { int x = 1 ; // line 1 :: x = 2; // line 2 x = 2; // line 3 }
    1. The statement in line 1 throws a compilation error
    2. In line 2 , x=2 is assigned to the global x
    3. In line 3, x=2 is assigned to the global x and line 2 throws compilation error
    4. Both A and B
    Answer: Option B
Views:4955