Recent questions tagged goclasses-cs-dpp-day-305

6 6 votes
1 1 answer
170
170 views
For an active-high SR flip-flop, which expression correctly represents the next state?$Q_{n+1}=S+R'Q_n$ $Q_{n+1}=R+SQ_n$ $Q_{n+1}=S'R+Q_n$ $Q_{n+1}=SR+Q_n$
6 6 votes
1 1 answer
167
167 views
For a gated SR latch with active-high clock, which condition is invalid when clock $=1$?$S=0,R=0$ $S=1,R=0$ $S=0,R=1$ $S=1,R=1$
2 2 votes
1 1 answer
140
140 views
In a gated SR latch, the clock input is $0$. If $S=1$ and $R=0$, what will happen to the latch output?It will be set to $1$ It will be reset to $0$ It will hold the previ...
5 5 votes
1 1 answer
167
167 views
A clock signal has time period $T=20$ ns. The signal remains high for $8$ ns in every cycle. What are the frequency and duty cycle of the clock?$25$ MHz, $40$% $50$ MHz, ...
5 5 votes
1 1 answer
153
153 views
In basic sequential circuits, a flip-flop can be understood as:A combinational circuit without memory A latch controlled by a clock signal A decoder controlled by a multi...
7 7 votes
2 2 answers
297
297 views
What is the output of the following code?#include <stdio.h int main() { char str[] = "CODE"; char *p = str; p++; *p = 'A'; printf("%s %c", str, *(p + 2)); return 0; }$\te...
7 7 votes
2 2 answers
292
292 views
What is the output of the following code?#include <stdio.h int main() { char str[] = "GATE"; char *p = str; printf("%c %c %s", str , *(p + 2), p + 1); return 0; }$\texttt...
6 6 votes
1 1 answer
212
212 views
What will happen when the following code is compiled?#include <stdio.h int main() { int a[] = {10, 20, 30}; a = a + 1; printf("%d", *a); return 0; }$\texttt{10}$ $\texttt...
5 5 votes
1 1 answer
207
207 views
Consider the following declarations:#include <stdio.h int main() { int a[4] = {6, 4, 1, 2}; int b[8] = {9, 8, 11, 10, 5, 7, 0, 3}; int *p = &a ; int *q = b; printf("%p", ...
7 7 votes
2 2 answers
274
274 views
What is the output of the following code?#include <stdio.h int main() { int a[] = {5, 10, 15, 20}; int *p = a + 1; printf("%d %d %td", *(p + 1), p , (p + 2) - a); return ...
To see more, click for the full list of questions or popular tags.