forked from BitsPleaseMSI/Hacktoberfest2019
-
Notifications
You must be signed in to change notification settings - Fork 0
/
questions.txt
145 lines (90 loc) · 3.49 KB
/
questions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
EASY
1. Write a code to find if the number is even or odd.
2. Write a code to find if the number is positive or negative.
3. Write a code to find if the number is present in the array or not.
4. Write a code to display a 2D matrix.
5. Write a code to add two 2D Matrix.
6. Write a code to find the transpose of a 2D matrix.
7. Write a code to perform arithmetic operations using a switch case to choose the operation.
8. Write a code to find the square and cube of a number.
9. Write a code to find factors of a number.
10. Write a code to find the average of the elements in an array.
MEDIUM
1. Program to convert lowercase character to uppercase character using conditional operator.
2. Program to convert any decimal number to octal and hexadecimal.
3. Program to check whether the input character is a vowel or not using switch case.
4. Program to calculate the length of a string using a user defined function.
5. Program to reverse a string using a user defined function.
6. Program to check if a given word is a palindrome or not.
--- (Palindrome is a word or phrase which sounds/reads the same even if read from the back)
7. Program to print first 20 nos. of Fibonacci series.
8. Program to find the largest of 3 nos. using conditional operators.
9. Program to calculate the Armstrong Nos. b/w 1 and 500.
--- (A number is Armstrong if sum of cube of it's digits is same as the number itself)
10. Program to check if entered number is an Armstrong Number.
11. Program to convert Decimal Number to Binary
12. Program to convert a Binary Number to Decimal Number
13. Program to convert Decimal Number to Octal Number
14. Program to convert a Octal Number to Decimal Number
15. Program to convert a Hexadecimal Number to Decimal Number
16. Program to convert Decimal Number to Hexadecimal Number
17. Program to evaluate a POSTFIX expression using Stack
18. Program to convert an INFIX expression to POSTFIX using Stack
19. Program to implement QUEUE using Linked List
20. Program to implement PRIORITY QUEUE using Linked List
21. Program to implement NON-CIRCULAR QUEUE using Arrays
22. Program to implement DEQUE using Linked List
PRACTITIONER
1. Program to reverse a number.
2. Program to exchange first and last digit of a number.
3. Program to print any of the following patterns :
i) *
**
***
****
*****
ii) *****
****
***
**
*
iii) *
**
***
****
*****
iv) 1
12
123
1234
12345
v) 55555
4444
333
22
1
4. Program to count no of vowels, consonant, digits and white spaces in a string.
5. Program to multiply 2 Matrices created dynamically.
6. Program to implement a STACK using linked list with following functions :
- Push an element in Stack
- Pop an element from Stack
- Display the elements in Stack
7. Program to implement the STACK using arrays with following functions :
- Push an element in Stack
- Pop an element from Stack
- Display the elements in Stack
HARD
1. Program to Print the following Pattern
555555555
544444445
543333345
543222345
543212345
543222345
543333345
544444445
555555555
2. Program to implement the concept of Sparse Matrix
3. Program to demonstrate the use of storage classes like static, register, etc
4. Program to demonstrate the use to static variables and functions.
5. Program to demonstrate the concept of inheritance