Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
70 views

Lab Assignments - C Programming - Final-2

This document contains 88 programming questions related to C programming and data structures. The questions cover a range of topics including input/output, arithmetic operations, conditional statements, loops, functions, arrays, pointers, structures, and matrices. The goal is to write programs that demonstrate proficiency in these core C programming concepts and data structures.

Uploaded by

ff8005636
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views

Lab Assignments - C Programming - Final-2

This document contains 88 programming questions related to C programming and data structures. The questions cover a range of topics including input/output, arithmetic operations, conditional statements, loops, functions, arrays, pointers, structures, and matrices. The goal is to write programs that demonstrate proficiency in these core C programming concepts and data structures.

Uploaded by

ff8005636
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Dezyne E’cole College C Programming & Data Structure

Dezyne E’cole College


Bachelor of Computer Application – First Year

C Programming – Practical Lab Assignments

Question Number

1. WAP to print “Dezyne E’cole College”.


2. WAP to print area of circle using #define.
3. WAP to input two numbers and swap it with using third variable.
4. WAP to demonstrate typedef & enum user define data types.
5. WAP to input two numbers and perform all arithmetic operations.
6. WAP to input two numbers and swap it without using third variable.
7. WAP to input three numbers and find maximum number using conditional operator.
8. WAP to perform bit-wise operations:
14 & 5 , 441 & 55 , 33 | 22 , 123 | 55, 242 ^ 55, 93 ^ 59, 46 >> 1, 46 << 1, 33 <<2, 63 >> 2
9. WAP to print size of all data types available in C using sizeof() in bits. (Int, Float, char,
double, long double, long int)
10. WAP to input a number and its power from user and find the power of the given number
using POW function.
11. WAP to input a character from user and print its ASCII code with do you want to continue
option.
12. WAP to input an age from user and check retired or not.
13. WAP to input a number and check number is even or divisible by 3 or not.

14. WAP to input a number and check number is greater than 22 or divisible by 5.
15. WAP to input three numbers from user and find maximum using nested if.
16. WAP to input three numbers from user and find second minimum number using nested if.
17. WAP to input student name and three subject marks from user and print its name, total of
marks, percentage and division using else if ladder.

Page|2
Dezyne E’cole College C Programming & Data Structure

18. WAP to input four numbers from user and find maximum number using else if ladder.
19. WAP to input a number from user and check number is one, two or three digit using else if
ladder.
20. WAP to input week numbers from user and print in words using switch case statement.
21. WAP to input a character from user and check character is vowel or not.
22. WAP to input television price from user and calculate net television amount: If television
is Colored & 24” discount = 10% or 32” discount = 15%. If television is B & W & 21”
discount = 12%.
23. WAP to input a character from user and check character is number, alphabet or special
character using conditional operator.
24. WAP to input starting and ending limit from user and print all the numbers between limit
using do while loop.
25. WAP to input a number from user and print number is Armstrong or not using while loop.
26. WAP to input a limit from user and print its Fibonacci series.
27. WAP to input a number from user and print number is palindrome or not using while loop
28. WAP to input a number from user and check number is prime of not using while loop.
29. WAP to input a limit from user and print all Armstrong numbers between limit.
30. WAP to input a limit from user and print all perfect numbers between limit.
31. WAP to print following patterns:

32. WAP to print following Pattern:

Page|3
Dezyne E’cole College C Programming & Data Structure

33. WAP to input 10 elements form user and sum it.


34. WAP to input a number from user and print its binary number.
35. WAP to input 10 array elements from user and find first and second maximum numbers.
36. WAP to input 10 elements from user and print all prime elements available in array and
print it.
37. WAP to input 10 elements from user and search an element that is given by user and print
it.
38. WAP to input 10 elements from user and insert new element at a given position by user.
39. WAP to input 10 elements from user and delete element from beginning of an array.
40. WAP to input 10 elements from user and delete element from a given position by user.
41. WAP to input 10 elements from user and sort it in ascending order and print it using
Selection Sort & bubble sort. (Choose sorting option from user)
42. WAP to input 10 unique elements from user and print all prime elements available in
array. Validate, if any repeated element from user it’s not accepted by array.
43. WAP to input a number from user and print it into the following series. (Input – 124,
Output: 1, 12, 124, 2, 24, 4)
44. WAP to input 3X3 matrix from user and print it.
45. WAP to input 3X3 matrix from user and print diagonal matrix.
46. WAP to input 3X3 matrix from user and print transpose matrix.
47. WAP to input 3X3 matrix from user and print sum of all rows elements.
48. WAP to input 3X3 matrix from user and print sum of all column element.
49. WAP to input 3X3 matrix from user and find maximum element between each columns.
50. WAP to input two 3X3 matrix from user and multiply it.
51. WAP to declare two 3X3 matrix and input dimensions by user and then check it, if
dimensions are correct then multiply it else print error message.
52. WAP to input string in array and print it.

53. WAP to input multi word string from user and print it using while loop.
54. WAP to input a String from user and print it in the following pattern. (Example: Input Data
– DOG, Output – D, DO, DOG, O, OG, G).

Page|4
Dezyne E’cole College C Programming & Data Structure

55. WAP to input string in uppercase and print in lower case letters using arithmetic operations.
56. WAP to input two string in two different variables and concatenate without using strcat
function.
57. WAP to input two string from user and check both string are same or not without using
strcmp function.
58. WAP to input a string from user and print it in reverse order without using strrev function.
59. WAP to input a string from user and check string is palindrome or not using string function.
60. WAP to set 5 different sports name in one string variable and then input one sports name
form user and check sport name is available or not.
61. WAP to input a limit from user and print the following series. ( 1, 8 , 72, 46, 521… n).
62. WAP to input a limit from user and print Fibonacci Series.
63. WAP to input two numbers from user and pass into function and sum it.
64. WAP to input a number from user and print its factorial using return statement.
65. WAP to input three numbers from user and find maximum using function using return
statement.
66. WAP to demonstrate Function with arguments and one return value.
67. WAP to input two numbers from user and swap it using call by reference.
68. WAP to calculate area of circle, area of triangle and rectangle using nesting of function.
69. WAP to input a four digit number from user and print all prime digit available in number
using functions.
70. WAP to input a number and print its table using recursion.
71. WAP to input a number from user and print its factorial using recursion.
72. WAP to input a limit from user and print its Fibonacci series using recursion.
73. WAP to input a book detail from user and print it using structures.
74. WAP to input student details in one structure variable and copy all detail into another
structure variable.
75. WAP to input three student details from user and print it using array of structures.

Page|5
Dezyne E’cole College C Programming & Data Structure

76. WAP to input student name, id and three subjects marks from user and print all details with
total marks, percentage and division.
77. WAP to input three books details with price and print net amount using structures where
discount = 5% if price <200 else 10%.
78. WAP to input a number from user and print its address, value and pointer address and value
using pointer.
79. WAP to input a number from user and print its value with address using pointe to pointer.
80. WAP to input two numeric values and sum it using pointer.
81. WAP to input 10 elements from user and add all elements using pointer arithmetic.
82. WAP to input 5 elements from user and sort it using pointers (Array & Pointers)
83. WAP to input a string from user and print its ASCII values using Array & Pointers)
84. WAP to input five names from user using array of pointers and print all names with address.
85. WAP to input three numbers from user and print maximum using function returning
pointers.
86. WAP to show addition of two numbers using pointers to function.
87. WAP to input an employee details from user and print using pointer and structures.
88. WAP to input book details with price and print net price using pointer and structure where
discount = 20%.

Page|6

You might also like