LearnFrenzy
Sign in Take a free test

Practice · Solved questions

Programming Questions and Answers

Learn programming with solved coding examples, MCQs, and interview questions in Java, LWC, Salesforce, C, C++, Python, and more. Perfect for freshers.

  • 3 sections
  • 63 topics
  • 341 questions
  • Free with answers

C Programming

23 topics · 341 questions

View section
  1. 01 Declarations and Initializations 21 questions
  2. 02 Control Instructions Study notes & practice
  3. 03 Floating Point Issues Study notes & practice
  4. 04 Functions 40 questions
  5. 05 Pointers 40 questions
  6. 06 Strings 40 questions
  7. 07 C Input / Output 40 questions
  8. 08 Arrays 40 questions
  9. 09 Data Types Study notes & practice
  10. 10 C Variables Study notes & practice
  11. 11 C Const Study notes & practice
  12. 12 Structures, Unions, Enums 40 questions
  13. 13 Typedef Study notes & practice
  14. 14 Bitwise Operators 40 questions
  15. 15 Command Line Arguments Study notes & practice
  16. 16 C Loops Study notes & practice
  17. 17 Memory Allocation 40 questions
  18. 18 Variable Number of Arguments Study notes & practice
  19. 19 Complicated Declarations Study notes & practice
  20. 20 Operators and Expressions Study notes & practice
  21. 21 Decision Making Study notes & practice
  22. 22 Error Handling Study notes & practice
  23. 23 C Library Functions Study notes & practice

C++ Programming

18 topics

View section
  1. 01 OOPS Concepts Study notes & practice
  2. 02 Functions Study notes & practice
  3. 03 Classes & Objects Study notes & practice
  4. 04 Inheritance Study notes & practice
  5. 05 Overloading Study notes & practice
  6. 06 Polymorphism Study notes & practice
  7. 07 Abstraction Study notes & practice
  8. 08 Encapsulation Study notes & practice
  9. 09 Interfaces Study notes & practice
  10. 10 Basic Syntax Study notes & practice
  11. 11 Arrays Study notes & practice
  12. 12 Strings Study notes & practice
  13. 13 Pointers Study notes & practice
  14. 14 References Study notes & practice
  15. 15 Basic Input/Output Study notes & practice
  16. 16 Exception Handling Study notes & practice
  17. 17 File Handling Study notes & practice
  18. 18 Multithreading Study notes & practice

Java Programming

22 topics

View section
  1. 01 Language Fundamentals Study notes & practice
  2. 02 Declarations and Access Control Study notes & practice
  3. 03 Java Class and Objects Study notes & practice
  4. 04 Operators and Assignments Study notes & practice
  5. 05 Flow Control Study notes & practice
  6. 06 Methods Study notes & practice
  7. 07 Files and I/O Study notes & practice
  8. 08 Exceptions Study notes & practice
  9. 09 Inheritance Study notes & practice
  10. 10 Overriding Study notes & practice
  11. 11 Polymorphism Study notes & practice
  12. 12 Abstraction Study notes & practice
  13. 13 Encapsulation Study notes & practice
  14. 14 Interfaces Study notes & practice
  15. 15 Packages Study notes & practice
  16. 16 Data Structures Study notes & practice
  17. 17 Collections Study notes & practice
  18. 18 Generics Study notes & practice
  19. 19 Serialization Study notes & practice
  20. 20 Multithreading Study notes & practice
  21. 21 Assertions Study notes & practice
  22. 22 Java.lang Class Study notes & practice

Ready to test your Programming?

Timed online tests with instant scores and explanations.

About this subject

About Programming

Programming questions test whether you can read code, predict its output and choose the right concept. This section covers C, C++ and Java topic by topic — syntax and concepts first, then multiple-choice and output questions with explanations.

What you will find here

  • Concepts and syntax explained with short code examples
  • Find-the-output and point-out-the-error questions
  • Topic-wise MCQs with explanations
  • Common interview questions on each topic
  • Practice for written tests and technical rounds

Useful for

  • Government exams
  • Competitive exams
  • Campus placements
  • Technical interviews
  • GATE CS
  • University exams
  • Coding test preparation

How to use this section

  1. Read the concept and run the examples in your own editor.
  2. Solve the questions trace the code by hand before checking the answer.
  3. Revise with the cheat sheets before a test or interview.

Search LearnFrenzy

Esc

Quick links