Professional Documents
Culture Documents
Name: Date:
Please tick √ on correct option(s). Total marks: 40
1). Why is it important to maintain an impedence match from the source to the load [1 M]
when sending signals?
a). to reduce external noise b). to keep the line balanced
c). to reduce reflected energy d). to reduce attenuation
230V AC
50Hz
A voltage level of 20V is measured at the output of the power supply with
no load attached.
Which of the following is the probable cause?
a). R2 shorted b). C1 open
c). D1 shorted d). Z2 open
a). 12 pf b). 9 pf
c). 0.75 pf d). 1.33 pf
6). What is the relationship between current(I) and voltage (E) in a circuit consisting of a [1 M]
capacitor in series with a resistor?
a). I and E in phase across the capacitor.
b). I leads E across the resistor.
c). E leads I across the capacitor
d). I and E are in phase across the resistor.
8). RFI- [2 M]
9). ALE-
10). UART-
11). SCR-
1). Which bitwise operator is suitable for turning ON a particular bit in a number? [1 M]
a). && operator b). & operator
c). | | operator d). | operator
2). A negative edge-triggerd flip-flop will accept inputs only when the clock is LOW. [1 M]
a). True b). False
3). By adding inverters to the inputs and output of a AND gate, we can obtain....... [1 M]
a). OR b). AND
c). NOT d). X-OR
4). Which logic gate has output high if and only if all inputs are low? [1 M]
a). NOR b). NAND
c). X-NOR d). AND
a).A pointer to a function that takes an integer as an argument and returns an integer
b).An array of ten pointers to functions that take an integer argument and return an
integer
2). Given an integer variable a, write two code fragments. The first should set bit 3 of a. [2 M]
The second should clear bit 3 of a. In both cases, the remaining bits should be
unmodified.
4). What will be the output of the following C code? [1 M]
#include <stdio.h>
int main()
{
enum {ORANGE = 5, MANGO, BANANA = 4, PEACH};
printf("PEACH = %d\n", PEACH);
}
a) PEACH = 3
b) PEACH = 4
c) PEACH = 5
d) PEACH = 6
5). Which of the following declaration is illegal? [1 M]
6). What will be the output of the following C code? [1 M]
#include <stdio.h>
void main()
{
int k = 4;
float k = 4;
printf("%d", k)
}
a) Compile time error
b) 4
c) 4.0000000
d) 4.4
7). What will be the output of the following C code? [1 M]
#include <stdio.h>
void main()
{
int x = 1, y = 0, z = 5;
int a = x && y || z++;
printf("%d", z);
}
a) 6
b) 5
c) 0
d) Varies
8). What will be the output of the following C code? [1 M]
#include <stdio.h>
void main()
{
double x = 123828749.66;
int y = x;
printf("%d\n", y);
printf("%lf\n", y);
}
a) 0, 0.0
b) 123828749, 123828749.66
c) 12382874, 12382874.0
d) 123828749, 0.000000
9). What will be the output of the following C code? [1 M]
#include <stdio.h>
int main()
{
int c = 2 ^ 3;
printf("%d\n", c);
}
a) 1
b) 8
c) 9
d) 0
10). What will be the output of the following C code? [1 M]
#include <stdio.h>
void main()
{
int x = 5;
if (x < 1)
printf("hello");
if (x == 5)
printf("hi");
else
printf("no");
}
a) hi
b) hello
c) no
d) none of the mentioned
a) 5, 5
b) 5, 10
c) 10, 10
d) Syntax error
a) equal
b) unequal
c) Compilation error
d) Depends on the compiler