Lion-Bridge – Test Pattern

LION BRIDGE Technical Questions

  1. The purpose of watchdog timer is
    • It acts as an external timer that resets the system if the software fails to operate properly
    • It acts as an internal timer that sets the system if the software fails to operate properly
    • It acts as an internal timer that resets the system if the software fails to operate properly
    • Keeps track of the processor speed


  2. What is the output of the following code?
    int account=2;
    void main()
    {
    static int account;
    printf("%d",account);
    • 2
    • Garbage value
    • 0
    • Error

  3. Examine the following code:
    MOV A,
    #56H MOV
    R1, #50H
    MOV 50H, #
    45H XCHG
    A, @R1
    What is the result at A, R1?
    • 56H, 45H
    • 45H, 50H
    • 50H, 56H
    • 45H, 56H
  4. A member function defined within the class definition, rather than simply declared there taken to be an_____________________ member function
    • static
    • inline
    • constant
    • overloaded

  5. Which of the following are valid cases for switch statement?
    (i). -200
    (ii). 3*5+2
    (iii). a*5+2
    (iv). 'x'
    • (i), (ii), (iii) and (iv)
    • (i), (ii) and (iv)
    • (i) and (iv)
    • (ii) and (iv)

  6. 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 }
    • The statement in line 1 throws a compilation error
    • In line 2 , x=2 is assigned to the global x
    • In line 3, x=2 is assigned to the global x and line 2 throws compilation error
    • Both A and B