Which of the following is not true about recursion when
Which of the following is not true about recursion when compared to iteration ?
Which of the following is not true about recursion when compared to iteration ?
The best method to rearrange books in a library shelf at the end of the day is
Akilesh Kharvi ? Dec 8 '2016 at 20:31
Answer : insertion sort
Explanation:
Insertion sort is a simple sorting algorithm that builds the final sorted array (or list) one item at a time.
Library sort, or gapped insertion sort is a sorting algorithm that uses an insertion sort, but with gaps in the array to accelerate subsequent insertions.Reference :https://en.wikipedia.org/wiki/Insertion_sort
https://en.wikipedia.org/wiki/Library_sort
Computer Organization Architecture, Operating System, PGCET CSE Exam (Karnataka) 2011, Solved, Technical Aptitude
The CPU is expected to handle the interrupt ( by executing the ISR )
Akilesh Kharvi ? Dec 8 '2016 at 20:27
Answer : at the end of the current execution cycle.
Explanation:
After completing the current instruction(s), the CPU begins the interrupt respons
The general sequence for an interrupt is as follows:
-> Foreground code is running, interrupts are enabled
-> Interrupt event sends an interrupt request to the CPU
-> After completing the current instruction(s), the CPU begins the interrupt response
automatically saves current program counter
-> automatically saves some status (depending on CPU)
-> jump to correct interrupt service routine for this request
-> ISR code saves any registers and flags it will modify
-> ISR services the interrupt and re-arms it if necessary
-> ISR code restores any saved registers and flags
-> ISR executes a return-from-interrupt instruction or sequence
-> return-from-interrupt instruction restores automatically-saved status
-> return-from-interrupt instruction recovers saved program counter
-> Foreground code continues to run from the point it responded to the interruptReference:http://www.scriptoriumdesigns.com/embedded/interrupts.php
( 1217 ) 8 is equivalent to
Akilesh Kharvi ? Dec 8 '2016 at 20:20
Answer: ( 028 F) 16
Explanation:
write each number in three digit binary number
1 => 001
2 => 010
1 => 001
7 => 111
so 16 digit binary equivalent of 1217 is
0 000 001 010 001 111
now group it to four digit number
0000 0010 1000 1111
which is 02 8 F
Compiler Design, Computer Organization Architecture, PGCET CSE Exam (Karnataka) 2011, Solved, Technical Aptitude
How many 32 x 1 RAM chips are needed to provide a memory capacity of 256 kilo bytes ?
Akilesh Kharvi ? Dec 8 '2016 at 20:14
Answer : 64
Explanation:
We need 256 Kbytes, i.e., 256 x 1024 x 8 bits.
We have RAM chips of capacity 32 Kbits = 32 x 1024 bits.
\(=>\frac{256 \times 1024 \times 8}{32 \times 1024} = 64\)
Which of the following statements is wrong ?
The regular expression [ a\b ) { a\b ) denotes the set
Akilesh Kharvi ? Dec 8 '2016 at 20:10
Answer: { aa, ab, ba, bb }
Explanation:
There are two sets {a,b},{a,b}
Keep First variable constant then there is two possibility
{aa}{ab}
Keep Second variable constant then there is two possibility
{ba}{bb}
So there is Total Four Possibility {aa,ab,ba,bb}