MCQ Bank
You have to choose suitable option when your timer will reset by considering this given code:
TRSTATE.CLK = clk;
TMRST: = (TRSTATE = = NSY2) # (TRSTATE = = EWY2);
- A) NSSR or TMRST
- B) EWRed or EWYel
- C) EWSR or NSRED
- D) NSY2 or EWY2
A complete unit of information is sometimes called a _______.
- A) Byte
- B) Nibble
- C) Word
- D) Bit
A 32-bit data word consists of:
- A) 2 bytes
- B) 2 nibbles
- C) 4 bytes
- D) 4 nibbles
Two State variables allow a maximum of ______ states.
- A) Four
- B) Two
- C) Eight
- D) Sixteen
Which of the following is a volatile memory?
- A) EPROM
- B) EEPROM
- C) PROM
- D) DRAM
The 64-cell array organized as 8 x 8 cell array is considered
- A) as an 64 byte memory
- B) as a 16 byte memory
- C) as an 8 byte memory
- D) as an 4 byte memory
The outputs of SR latches in elevator state machine are feed back to the _____ gate array for connection to the D-flipflops.
- A) AND
- B) XOR
- C) OR
- D) NOT
Which one flip-flop has an invalid output state?
- A) T
- B) D
- C) SR
- D) JK
_________ Yellow signal controlling the traffic on the East-West section.
- A) NSYel
- B) EWRed
- C) EWYel
- D) NSGrn
A negative edge-triggered flip-flop changes its state when ________________
- A) Enable input (EN) is set
- B) High-to-low transition of clock
- C) Low-to-high transition of clock
- D) Preset input (PRE) is set
A post-fix unary operator is implemented in C++ using member function with:
- A) 1 dummy char argument
- B) 1 dummy float argument
- C) 1 dummy int argument
- D) 1 dummy string argument
In C++, which of the following keywords works only with constructors?
- A) const
- B) virtual
- C) static
- D) explicit
Target class of a _______ function call is determined at run time.
- A) Instance
- B) Operator
- C) Non- Virtual
- D) Virtual
Suppose you have following C++ statements: int oldValue=10; int newValue = ++ oldValue; What will be the value of oldValue and newValue after executing above statements?
- A) oldValue= 10 , newValue=11
- B) oldValue= 11 , newValue=11
- C) oldValue= 11 , newValue=10
- D) oldValue= 10 , newValue=10
The C++ code “class circle : public shape” shows______________ relationship.
- A) Aggregation
- B) Inheritance
- C) Simple Association
- D) Composition
Which of the following is NOT casting operator in C++ standard?
- A) reinterpret_cast
- B) dynamic_cast
- C) var_cast
- D) static_cast
Suppose Person is a user defined class. In statement “Person * pPtr”, static type of pPtr is ____________.
- A) Person*
- B) Person
- C) pPtr
- D) Object
In case of public inheritance, protected members of base class will be _____________ in derived class.
- A) hidden
- B) private
- C) public
- D) protected
Which statement will be true for concrete class?
- A) None of given options.
- B) It cannot be inherited from an abstract class.
- C) It cannot be instantiated.
- D) It can be instantiated.
________________ represents “IS A” relationship.
- A) Aggregation
- B) Composition
- C) Simple Association
- D) Inheritance