CS Electrical And Electronics
@cselectricalandelectronics
All PostsElectronicsEmbedded SystemQuiz

Embedded System Quiz Questions Asked In Online Tests, Placement

Hello guys, welcome back to my blog. In this article, I will share embedded system quiz questions asked in online tests, MCQs on embedded systems, quiz questions asked in online tests, etc.

If you have any doubts related to electrical, electronics, and computer science, then ask question. You can also catch me @ Instagram – Chetan Shidling. 

Also, read:

Embedded System Quiz Questions

01. ST32F407VG can work at

  1. 1.8V -3.6V
  2. 2.7V-3.6V
  3. 2.7-5V
  4. 1.8-5V

Answer

02. What Does the below statement mean in C?

Static int my_function(int a, int b)
{
Return a+b;
}

  1. Error, cannot use static for function
  2. It’s just a normal function
  3. my_ function can be called only from functions that are declared static
  4. Visibility of my_ function is limited to the file it is defined in

Answer

03. Arm_none_eabi_gcc is a

  1. Native compiler
  2. Cross compiler
  3. Both of the above
  4. None of the above

Answer

04. Are registers required in 12c?

  1. True
  2. False

Answer

05. Identify the correct sequence of the instruction execution cycle

  1. Fetch-execute- decode
  2. Fetch- decode-execute
  3. Execute- decode-Fetch
  4. Execute-Fetch- decode

Answer

06. We can alter the sequence of interrupt priority by assigning the higher priority to any one of the interests by programming the register called?

  1. Interrupt sequence
  2. Interrupt priority
  3. Interrupt decision
  4. None of the options

Answer

07. Which is wrong in the below command (Assume CFLAGS are set) arm_none_eabi_gcc $(CFLAGS )-T*c -o out. elf

  1. No, it is all correct
  2. We should provide *.o instead of *.c
  3. We should provide *.s instead of *.c
  4. None of the above the real issue is mentioned here

Answer

08. The main importance of ARM microprocessors is providing operation with

  1. Low cost and low power consumption
  2. The higher degree of muti-tasking
  3. Lower error or glitches
  4. Efficient memory management

Answer

09. Which tool takes the object file and searches library files to find the routine calls?

  1. Locator
  2. Assembler
  3. Linker
  4. Debugger

Answer

10. arm-none-eabi-gcc -c main.c

What is the output file name generated by the above command?

  1. Main. o
  2. Main. out
  3. a.out
  4. Main. elf

Answer

11. strn32f407VG is based on

  1. ARM Cortex M4 processor
  2. ARM Cortex M3 processor
  3. ARM Cortex M2 processor
  4. ARM Cortex M0 processor

Answer

12. Which of the following produces an assembler file in the compilation process?

  1. Pre-processor
  2. Assembler
  3. Compiler
  4. Post- processing

Answer

13. Identify the best practices wrt exchanging structure

a. pass the structure variables by value

b. pass the structure variables by address

c. return the structure variables by value

d. return the structure variables by address

Options:

  1. 2 & 4
  2. 2, 3, & 4
  3. 2 only
  4. 1 & 3

Answer

14. How to flip the 8th bit in a given 32 Bit integer?

uint32_t val= 0xA1B2C3D4;

  1. Val &(1<<8)
  2. val^(1<<8)
  3. val^(1<<7)
  4. Val | (1<<7)

Answer

15. Which of the following best states the reason that why the Baud rate is mentioned in serial communication?

  1. To know about the no. of bits being transmitted per second
  2. Make the two devices compatible with each other so that the transmission becomes easy and error-free
  3. To use timer 1
  4. For wasting memory

Answer

16. In UART it is possible to disable parity if needed

  1. True
  2. False

Answer

17. While working with ARM basic controllers we need to enable interrupts with the help of

  1. NVIC_ISE Register
  2. NVIC_ICE Register
  3. NVIC_IP Register
  4. None of the above

Answer

18. ARM Stands for

  1. Advanced rate machines
  2. Advanced RISC machines
  3. Artificial running machines
  4. Aviary running machine

Answer

19. Which one of the following allows the programmer to define constants?

  1. Pre-processor
  2. Compiler
  3. Emulator
  4. Debugger

Answer

20. I am trying to compile the code for the ARM Cortex M4 based microcontroller, is the below command sufficient?

arm-none-eabi-gcc -c main.c

  1. True
  2. False

Answer

21. In 12C every device should have a unique ID

  1. True
  2. False

Answer

22. To combine a code for the embedded target you would prefer a native compiler

  1. True
  2. False

Answer

23. The memory section organization for a specific target system is described in

  1. Batch script
  2. Shell Script
  3. Linker script
  4. None of the above

Answer

24. Choose the correct among the given option below

  1. The linker is used to link .o files only
  2. Assembler is used to generate .elf file
  3. Preprocessor is used to generate .s file
  4. All are correct

Answer

25. While working with Qemu if you want to Run your target, you will use the -m option

  1. True
  2. False

Answer

26. If we do not specify the executive will filename at the compilation time in GCC, then the compiler creates an executable name as

  1. a.out
  2. b. exe
  3. x.out
  4. x.exe

Answer

27. Consider a 32-bit architecture, to the type of instructions set supported by ARM processors are

  1. ARM and thumb
  2. ARM and DSP
  3. DSP and thumb
  4. None

Answer

28. In SPI more number slaves with less number of IO lines can be interfaced with

  1. Multiplexer
  2. Daisy Chaining
  3. Tail Chaining
  4. None of the above

Answer

29. Which file is General would contain a call to the main function?

  1. Linker script
  2. Startup file
  3. Header file
  4. None of the above

Answer

30. In order to have communication using 12C, we need

  1. Pull-up SDA and pull down SCL lines
  2. pull-down SDA and pull -upSCL lines
  3. Pulled on both SDA and SCL
  4. None of the above

Answer

31. LSB bit of a 12C address byte

  1. Represent the intrinsic(R/ W) of transfer
  2. Presents The acknowledgment (ACK) from slaves
  3. Start of message
  4. None of the above

Answer

32. In STM324076, the maximum number of bits are available on a port are

  1. 8
  2. 16
  3. 24
  4. 32

Answer

33. With respect to UART, the Baud rate is

  1. Number of bits per second
  2. Number of bytes per second
  3. Number of bits per frame
  4. Number of bytes per frame

Answer

34. The startup file is always written as a c code

  1. True
  2. False

Answer

35. In embedded target development, a locator is used to link all the files

  1. True
  2. False

Answer

36. The function calling itself is known as

  1. Recursion
  2. Iteration
  3. Traversal
  4. None of the above

Answer

37. Which of the following header file is included for using the dynamic memory allocation function?

  1. stdlib.h
  2. stdio.h
  3. memory. h
  4. dynamic.h

Answer

38. Which is the output of the code below?

#include
int function
{
Static int .c= 0;
C++
Return c;
}
Int main()
{
print(“%d”, function());
print(“%d”, function());
return 0;
}

  1. 12
  2. 11
  3. Null
  4. 13

Answer

39. How much memory is allocated for PI in C?

define PI 3.141

  1. Size of a float variable
  2. Size of double variable
  3. No memory is allocated, as it’s just a substitution where it is used
  4. Syntax error, the semicolon is missing at the end of the line

Answer

40. The sensor which gives analog voltage output must be connected to?

  1. Analog pin of MCU
  2. Digital pin of MCU
  3. UART of MCU
  4. SPI of MCU

Answer

41. Embedded system with no operating system is termed as

  1. Bare metal
  2. Full Metal
  3. Bold metal
  4. In metal

Answer

42. Which line in the code snippet is wrong?

Void function()
{
Int a=0;
Const int b=1;
b=a
}
  1. 2
  2. 3
  3. 4
  4. 1

Answer

43. Identify the valid usage of Malloc to create an Array of 10 integers, assuming inter size is for byte?

  1. Int “ptr=malloc(10);
  2. Int “ptr=malloc(10,4);
  3. Int “ptr=malloc(40);
  4. Int “ptr=malloc(4,10);

Answer

44. ISR stands for

  1. Interrupt Service routine
  2. Integrated solution resolve
  3. Interstage resourcei
  4. Integrated software register

Answer

45. The keyword ‘ break’ cannot be simply used within

  1. While
  2. do-while
  3. if-else
  4. for

Answer

This was about ” Embedded System Quiz Questions “. I hope this article ” Embedded System Quiz Questions ” may help you all a lot. Thank you for reading.

Also, read:

Author Profile

CS Electrical And ElectronicsChetu
Interest's ~ Engineering | Entrepreneurship | Politics | History | Travelling | Content Writing | Technology | Cooking
Share Now

CS Electrical And Electronics

Interest's ~ Engineering | Entrepreneurship | Politics | History | Travelling | Content Writing | Technology | Cooking