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
  • 78 topics
  • 4,200+ questions
  • Free with answers

C Programming

23 topics · 920 questions

View section
  1. 01 Declarations and Initializations 40 questions
  2. 02 Control Instructions 40 questions
  3. 03 Floating Point Issues 40 questions
  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 40 questions
  10. 10 C Variables 40 questions
  11. 11 C Const 40 questions
  12. 12 Structures, Unions, Enums 40 questions
  13. 13 Typedef 40 questions
  14. 14 Bitwise Operators 40 questions
  15. 15 Command Line Arguments 40 questions
  16. 16 C Loops 40 questions
  17. 17 Memory Allocation 40 questions
  18. 18 Variable Number of Arguments 40 questions
  19. 19 Complicated Declarations 40 questions
  20. 20 Operators and Expressions 40 questions
  21. 21 Decision Making 40 questions
  22. 22 Error Handling 40 questions
  23. 23 C Library Functions 40 questions

C++ Programming

27 topics · 1,600+ questions

View section
  1. 01 Basic Syntax and Data Types 60 questions
  2. 02 Input/Output with cin and cout 60 questions
  3. 03 Functions and Default Arguments 60 questions
  4. 04 Arrays and Vectors 60 questions
  5. 05 std::string 60 questions
  6. 06 Pointers and Dynamic Memory 60 questions
  7. 07 References: lvalue and rvalue 60 questions
  8. 08 OOPS Concepts 60 questions
  9. 09 Classes and Objects 60 questions
  10. 10 Constructors and Destructors 60 questions
  11. 11 Static and Friend Members 60 questions
  12. 12 Encapsulation 60 questions
  13. 13 Inheritance 60 questions
  14. 14 Polymorphism and Virtual Functions 60 questions
  15. 15 Abstraction 60 questions
  16. 16 Abstract Classes and Interfaces 60 questions
  17. 17 Operator Overloading 60 questions
  18. 18 Templates 60 questions
  19. 19 STL Containers 60 questions
  20. 20 STL Algorithms and Iterators 60 questions
  21. 21 Lambda Expressions 60 questions
  22. 22 Smart Pointers 60 questions
  23. 23 Move Semantics 60 questions
  24. 24 Modern C++ Features (C++11 to C++23) 60 questions
  25. 25 Exception Handling 60 questions
  26. 26 File Handling (fstream) 60 questions
  27. 27 Multithreading 60 questions

Java Programming

28 topics · 1,600+ questions

View section
  1. 01 Java Basics, Syntax and Data Types 60 questions
  2. 02 Operators and Expressions 60 questions
  3. 03 Control Flow Statements 60 questions
  4. 04 Arrays in Java 60 questions
  5. 05 Strings and StringBuilder 60 questions
  6. 06 Methods and Recursion 60 questions
  7. 07 Classes and Objects 60 questions
  8. 08 Constructors and the this Keyword 60 questions
  9. 09 Static and Final Keywords 60 questions
  10. 10 Access Modifiers and Packages 60 questions
  11. 11 Encapsulation 60 questions
  12. 12 Inheritance 60 questions
  13. 13 Polymorphism and Method Overriding 60 questions
  14. 14 Abstraction 60 questions
  15. 15 Interfaces 60 questions
  16. 16 Object Class and Wrapper Classes 60 questions
  17. 17 Exception Handling 60 questions
  18. 18 Collections Framework 60 questions
  19. 19 HashMap and TreeMap 60 questions
  20. 20 Generics 60 questions
  21. 21 Lambda Expressions 60 questions
  22. 22 Streams API 60 questions
  23. 23 Records, Enums and Sealed Classes 60 questions
  24. 24 File Handling, IO and NIO 60 questions
  25. 25 Serialization 60 questions
  26. 26 Multithreading 60 questions
  27. 27 Concurrency and Executors 60 questions
  28. 28 Data Structures in Java 60 questions

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