0% found this document useful (0 votes)
12 views2 pages

C EmbeddedC Questions

Uploaded by

rebelkoti1436
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

C EmbeddedC Questions

Uploaded by

rebelkoti1436
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

C Programming & Embedded C Question Bank

1. Basic C Programming Questions


1. Write a program to find the largest of three numbers.
2. Reverse a given number without using an array.
3. Find the sum of digits of a number.
4. Write a program to count the number of vowels and consonants in a string.
5. Swap two numbers without using a third variable.
6. Find factorial of a number using recursion.
7. Check whether a number is a palindrome or not.
8. Print Fibonacci series up to n terms without recursion.
9. Convert decimal to binary without using library functions.
10. Find the second largest element in an array.

2. Intermediate C Programming Questions


1. Reverse only the words in a sentence (without reversing the characters of each word).
2. Implement a function to find GCD and LCM of two numbers.
3. Rotate an array by k positions to the left.
4. Implement bubble sort without using library functions.
5. Count number of set bits (1's) in an integer.
6. Merge two sorted arrays into a single sorted array.
7. Implement string copy (strcpy) without using <string.h>.
8. Implement a queue using arrays.
9. Check whether two strings are anagrams or not.
10. Remove duplicate elements from an array.

3. Embedded C Questions
1. Write a program to blink an LED with 1-second delay.
2. Toggle an LED when a push button is pressed.
3. Generate a PWM signal with 50% duty cycle.
4. Measure the time interval between two button presses using a timer.
5. Write a program to send "Hello" over UART every 1 second.
6. Implement a delay function using a hardware timer instead of delay() or _delay_ms().
7. Interface an LCD and display your name.
8. Read temperature from a sensor and display it on the LCD.
9. Implement I2C communication to read data from an EEPROM.
10. Implement SPI communication between two microcontrollers.

You might also like