Sunteți pe pagina 1din 8

Accel IT Academy Final Exam C3012 L

1. What is (void*) 0?

a) Representation of NULL pointer


b) Representation of void pointer
c) Error
d) None of above

2. What command is used with vi editor to save file and remain in the editing mode?

a) x
b) q!
c) :w
d) :q

3. If a variable is a pointer to a structure, then which of the following operator is used to access
data members of the structure through the pointer variable?

a) .
b) &
c) *
d) ->
4. What will be the output of the program? #include int main() { int y=128; const int x=y;
printf("%d\n", x); return 0; }

a) 128
b) Garbage value
c) Error
d) 0

5. What will be the output of the program ? #include int main() { enum days {MON=-1, TUE,
WED=6, THU, FRI, SAT}; printf("%d, %d, %d, %d, %d, %d\n", MON, TUE, WED, THU, FRI,
SAT); return 0; }

a) -1, 0, 1, 2, 3, 4
b) -1, 2, 6, 3, 4, 5
c) -1, 0, 6, 2, 3, 4
d) -1, 0, 6, 7, 8, 9

6. Which of the following is the correct usage of conditional operators used in C?

a) a>b ? c=30 : c=40;


b) a>b ? c=30;
c) max = a>b ? a>c?a:c:b>c?b:c
d) return (a>b)?(a:b)
7. How many times the program will print "ACCELBIX" ? #include< stdio.h > int main() {
printf("AccelBIX"); main(); return 0; }

a) Infinite times
b) 32767 times
c) 65535 times
d) Till stack overflows

8. Which of the following is not logical operator?

a) &
b) &&
c) ||
d) !

9. What will be output of following program? #include int main(){ int a = 320; char *ptr; ptr =(
char *)&a; printf("%d ",*ptr); return 0; }

a) 2
b) 320
c) 64
d) Compilation error

10. What will be the output of the following program : int main() { int a=1; if (a == 2); printf("C
Program"); return(0); }

a) no Output
b) C Program
c) Compiler Error
d) Linker error

11. What will be output if you will compile and execute the following c code? void main(){ int
i=4,x; x=++i + ++i + ++i; printf("%d",x); }

a) 21
b) 18
c) 12
d) compiler error

12. What command is used to remove files?


a) dm
b) rm
c) delete
d) erase
13.In C ---------is not the user defined data types

a) structures
b) union
c) enum
d) double

14.What will be output if you will compile and execute the following c code? void main(){ int
a=10; printf("%d %d %d",a,a++,++a); }

a) 12 11 11
b) 12 10 10
c) 11 11 12
d) 10 10 12

15.What command is used to remove the directory?

a) rdir
b) remove
c) rd
d) rmdir

16.main( ) { int i = 4 ; printf ( "%d %d %d", i++ ,i++, i++ ) ; }

a) 4,5,6
b) 5,6,7
c) 6,5,4
d) 4,4,4

17.SIMD stands for -------------

a) Single Instruction Stream, Multiple Data Stream


b) Single Instruction Stream, mutual Data Stream
c) simple instruction Stream, Multiple Data Stream
d) Single Instruction solution, mutual Data Stream

18.I2C follows

a) point to point transmission


b) Sync Parallel Communication
c) Sync. Serial Communication
d) Async.Serial Communication
19.Point out the priority number for timer 1 interrupt:

a) 1
b) 3
c) 2
d) 0

20. Which mode of timer supports split up mode?

a) Mode 0
b) Mode 1
c) Mode 2
d) Mode 3

21. Why program the 8051 in c?


a) 8051 has limited on chip ROM,It is easier and less time consuming to write in C than
assembly
b) You can use code available in functions libraries
c) C code is portable to other controllers with little or no modification
d) all the above

22.why we include REG51.h file at embedded C program?


a) it have SFR Definitions
b) it have all SFR registers Declarations
c) both a&b
d) z

23. Standard CAN Identifier is


a) 8
b) 11
c) 16
d) 32

24. Transceivers is a part of --------layer.

Physical layer
Data link layer
Network access layer
Application Layer

25. How many bit wide Instructions in PIC18f42/458

a) 12
b) 10
c) 16
d) 20
26. What is the range of sfr 16?
a) 0 to 1
b) 0 to 255
c) 0 to 65535
d) Z

27. Maximum no of I2C device connected to bus is in standard 7bit mode is


a) 100
b) less than 120
c) less than 128
d) 128

28. What is the colour code for a 220 5% resistor?


a) Red, Red, Brown, Silver
b) Red, Red, Black, Gold
c) Orange, Orange, Black, Gold
d) Red, Red, Brown, Gold

29. How many instructions in AT89c51 uc?


a) 111
b) 77
c) 103
d) 127

30. I2C protocol developed by


a) Intel
b) Philips
c) Bosch
d) Motorola

31. Which interrupt have high priority?


a) TMR0
b) EXT0
c) Serial interrupt
d) Reset

32. CAN protocol developed by


a) Intel
b) Philips
c) Bosch
d) Motorola

33. Which resistive component is designed to be temperature sensitive?


a) Thermistor
b) Rheostat
c) Potentiometer
d) Photoconductive cell
34. RISC standard's for
a) Reduced Instruction Set Computer
b) Read instruction set computer
c) Reduced instruction set computing
d) None of this

35. ARM1176JZF-S is ------bit processor

a) 16
b) 34
c) 32
d) 8

36. There are two 32-bit x 32-bit Multiply instructions that produce________ results
a) 32-bit
b) 64-byte
c) 32-byte
d) 64-bit

37. ARM owned by


a) Intel
b) Arcon
c) Philips
d) Samsung

38. Classic Arm processor is

a) ARM926
b) ARM946
c) both a & b
d) none of these

39. AMBA means


a) Advanced Microprocessor Bus Architecture
b) Advanced Microelectronic Bit Architecture
c) Advanced Microprocessor Byte Architecture
d) Advanced Micro controller Bus Architecture

40. ARM11 belong to which Family

a) ARMv1
b) ARMv6
c) ARMv4
d) ARMv7
41. How many CPSR in ARM11 processor
a) 1
b) 0
c) 3
d) 6

42. Pipe lining stages in ARM 11 is

a) 8
b) 6
c) 3
d) 5

43. In ARM Nomenclature J stands for

a) Java acceleration by Jazelle


b) Java byte code
c) Jazelle byte code
d) none of these

44. Which register is act as Linker register


a) R15
b) R14
c) R12
d) R13

45. I2S means


a) inter inter sounds
b) inter inner sound
c) inter integrated sound
d) none of these

46. Which register is act as program Counter?

a) R15
b) R14
c) R13
d) R12

47.What will be output of the following program? main() { int i=277; char *p=&i; p++;
printf("%d",*p); }

a) 277
b) 1
c) 20
d) Suspicious Pointer Conversion
48. What will be output of the following program? int main(){ int a=2,b=7,c=10; c=a==b;
printf("%d",c); return 0; }

a) Compile Time Error


b) 0
c) 10
d) None of These

49. What will be the output of the program ? #include int main() { union a { int i; char ch[2]; };
union a u; u.ch[0]=3; u.ch[1]=2; printf("%d, %d, %d\n", u.ch[0], u.ch[1], u.i); return 0; }

a) 3, 2, 515
b) 515, 2, 3
c) 3, 2, 5
d) 515, 515, 4

50. What will be output of the following c program? #include int main(){ int _=5; int __=10; int
___; ___=_+__; printf("%i",___); return 0; }

a) 5
b) 10
c) 15
d) Compilation error

S-ar putea să vă placă și