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

Assignment 1

Uploaded by

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

Assignment 1

Uploaded by

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

Coding Questions:

1. Write a C program to accept 2 numbers, add the two and display the sum.
2. Write a C program to accept a number and display if it odd or even.
3. Write a C program to Accept two numbers and an arithmetic operator.
Depending on the operator do the calculation and display the sum.
4. C program to display the sum of the even numbers from 1 to 10 using while loop.
5. C program to display the product of odd numbers from 1 to 10 using for loop.
6. C program to display the GCD of two numbers.
7. C program to display the LCM of two numbers
8. Write a C program to accept two numbers, pass them to a function where you
add the two numbers and display the sum in the main function.
9. Write a C program to display pyramid of stars

10. Write a C program to find the maximum of 10 random integers in an array.


11. Write a C program to find the minimum of 10 random integers in an array.
12. Write a C program to find the sum of 10 random integers in an array.
13. Write a C program to find the average of 10 random integers in an array.
14. Write a C program to reverse an array.
15. Write a C program to reverse a string
Example : Hello How Are You

should be displayed as
You Are How Hello

Interview Questions
16. What is Object Oriented Programming (OOPs)?
17. What is a Class?
18. What is an Object?
19. What is Encapsulation?
20. What is Abstraction?
21. What is Polymorphism?
22. What is Compile-Time Polymorphism
23. What is Runtime Polymorphism
24. What is Inheritance? What is its purpose?

25. What are access specifiers? What is their significance in OOPs?


26. What is the difference between Structured Programming and Object Oriented
Programming?
27. What is an interface?

28. What is Abstract class?


29. How is an abstract class different from an interface?
30. What is Constructor?
31. What is a destructor?
32. What is function overloading
33. What is the virtual function?

34. Explain the main purpose of an operating system?


35. What is a process and process table?
36. What are the different states of the proce
37. What is a Thread?
38. What are the benefits of multithreaded programming?
39. What is page fault?
40. What is Thrashing?
41. What is virtual memory?
42. What is demand paging?
43. What is a kernel?
44. What are the different scheduling algorithms?
45. What is the time-sharing system?
46. What is the RR scheduling algorithm?
47. What are overlays?
48. What is fragmentation?
49. What is the basic function of paging?
50. How does swapping result in better memory management?
51. What is multitasking?
52. What is caching?
53. What is spooling?
54. What are interrupts?
55. What is preemptive multitasking?
56. What are the advantages of semaphores?
57. What are starvation and aging in OS?
58. What is Context Switching?

You might also like