Embedded System Trivia Quiz!

15 Questions | Total Attempts: 1311

SettingsSettingsSettings
Please wait...
Embedded System Trivia Quiz!

.


Questions and Answers
  • 1. 
    SFRs are used for:
    • A. 

      Storing variables

    • B. 

      Storing static variables

    • C. 

      Creating dynamic variable

    • D. 

      Configuring peripherals

  • 2. 
    To flash an LED @ 5Hz, the ON/OFF time (in ms) for the LED shall be
    • A. 

      100/200

    • B. 

      200/200

    • C. 

      200/300

    • D. 

      100/100

  • 3. 
    We want to round off x, afloat, to an int value, The correct way to do is
    • A. 

      Y = (int)(x + 0.5)

    • B. 

      Y = int(x + 0.5)

    • C. 

      Y = (int)x + 0.5

    • D. 

      Y = (int)((int)x + 0.5)

  • 4. 
    The following program fragment  char xyz[3][4] = {“bag”, “set”, “hat”}; char (*ptr)[4] = xyz; putchar(* (xyz[1] + 1));
    • A. 

      Prints a

    • B. 

      Prints b

    • C. 

      Prints h

    • D. 

      Prints e

    • E. 

      Prints t

  • 5. 
    Which of the following data structure can be used to search an element in constant time?
    • A. 

      Binary Search Tree

    • B. 

      Hash Table

    • C. 

      Priority Queue

    • D. 

      Expression Tree

    • E. 

      Linked List

  • 6. 
    If the machine in which the following program is executed is little-endian void main() {           int y=0x12530001;           printf("%X", (*(char *)&y)); } the output will be   
    • A. 

      01

    • B. 

      00

    • C. 

      12

    • D. 

      Compile error

    • E. 

      Garbage value

  • 7. 
    The output of the following section of code is: unsigned int x = ~((unsigned int)0xc5); printf(“0x%x”, x);
    • A. 

      0x3a

    • B. 

      0xff3a

    • C. 

      0x5c

    • D. 

      0x3aff

  • 8. 
    If n has the value 3, then the statement a[++n] = n++ ;
    • A. 

      Assigns 3 to a[5]

    • B. 

      Assigns 4 to a[5]

    • C. 

      Assigns 4 to a[4]

    • D. 

      Compile error

  • 9. 
    In an architecture with an int type equal to 2 bytes, the output of the following piece of code is unsigned int *x; printf(“%x,”, x); *x = 5; x++; printf(“%x”, x);   
    • A. 

      Bff5a400,bff5a401

    • B. 

      Bff5a400,bff5a402

    • C. 

      Bff5a400,bff5a404

    • D. 

      Bff5a400,6

    • E. 

      Compiler error

  • 10. 
    What will be the output of the following:   int a = 1; while(a) {     printf("value of a: %d", a--); } do {           printf("value of a: %d\n", a--); }while(a);
    • A. 

      Value of a: 1

    • B. 

      Value of a: 1 value of a: 1

    • C. 

      Value of a: 1 value of a: 0

    • D. 

      Value of a: 0 value of a: -1

  • 11. 
    If the frequency is reduced by half, the dynamic power will
    • A. 

      Remain same

    • B. 

      Double

    • C. 

      Reduce to half

    • D. 

      Reduce to 1/4th

  • 12. 
    :The collector-base junction in a transistor has:
    • A. 

      Forward bias at all times

    • B. 

      Reverse bias at all times

    • C. 

      Low resistance

    • D. 

      None of the above

  • 13. 
    In the diagram shown below if Vin = 10V, what will be the voltage across resistor Vout after an infinite time?
    • A. 

      7.5V

    • B. 

      10V

    • C. 

      0V

    • D. 

      5V

  • 14. 
    To tune a parallel resonant circuit to a higher frequency, the capacitance should be
    • A. 

      Increased

    • B. 

      Left alone

    • C. 

      Decreased

    • D. 

      Replaced with inductance

  • 15. 
    When the frequency of the voltage applied to a series RC circuit is decreased, the impedance:
    • A. 

      Increases

    • B. 

      Decreases

    • C. 

      Remains the same

    • D. 

      Doubles

Back to Top Back to top