MyInternships.in

Programming Questions and Answers

Programming MCQs are the fastest way to check whether you truly understand a language or only recognise its syntax. Every question here is placement-style: predict the output, spot the compile error, pick the correct declaration, name the right concept. Explanations state the exact language rule involved so the learning transfers.

40+ solved questions5 sub-sections5 live topic pages

Where Programming is tested

TCS NQT & DigitalInfosys / Wipro / CognizantCapgeminiProduct-company screeningGATE CSUniversity semester exams

ProgrammingSub-sections & Topics

C Programming

Pointers, arrays, strings, structures, memory and output-prediction questions

Open section

C remains the language of choice for testing fundamentals because nothing is hidden: pointers, memory layout, integer promotion and undefined behaviour are all in plain sight. Expect output-prediction questions on pointer arithmetic, arrays, strings, structures and the preprocessor.

Solved question banks

Also in this syllabus (coming soon)

C Basics · Arrays · Functions · Strings · Structures Unions and Enums · Control Instructions · Input and Output · Memory Allocation · Preprocessor · Bitwise Operators · File Handling · Command Line Arguments · Const and Volatile · Typedef · Recursion · Declarations and Initialisations · Floating Point Issues · Library Functions · Complicated Declarations

C++ Programming

OOPs, constructors, inheritance, virtual functions, templates and the STL

Open section

C++ questions test object-oriented design plus the low-level control C++ inherits from C. The recurring themes are constructors and destructors, inheritance and the diamond problem, virtual functions and vtables, operator overloading, templates and the STL containers.

Solved question banks

Also in this syllabus (coming soon)

C++ Basics · Classes and Objects · Constructors and Destructors · Functions in C++ · References · Inheritance · Polymorphism · Virtual Functions · Operator Overloading · Templates · Exception Handling · STL · File Handling in C++ · Pointers in C++ · Friend Functions · Namespaces · Type Casting · Memory Management in C++

C# Programming

.NET fundamentals, OOPs, delegates, LINQ, collections and exception handling

Open section

C# MCQs matter for .NET service-company hiring (TCS, Infosys, Accenture, Capgemini) and for product teams on Azure. High-frequency areas are value vs reference types, boxing, properties, interfaces, delegates and events, generics, collections, LINQ and async/await.

Solved question banks

Also in this syllabus (coming soon)

Arrays in C# · Classes and Objects in C# · Inheritance in C# · Polymorphism in C# · Interfaces in C# · Delegates and Events · Exception Handling in C# · Collections and Generics · LINQ · Properties and Indexers · Structures and Enums in C# · Strings in C# · File IO in C# · Threading in C# · Operators in C#

Java Programming

OOPs, collections, multithreading, exceptions, JVM internals and Java 8

Open section

Java is still the most-tested language in Indian placements. Interviewers keep returning to the same seven areas: OOPs and inheritance rules, String immutability and the string pool, the Collections framework, exception hierarchy, multithreading, JVM memory and garbage collection, and Java 8 streams and lambdas.

Solved question banks

Also in this syllabus (coming soon)

Java Basics · Classes and Objects in Java · Inheritance in Java · Polymorphism in Java · Abstraction and Interfaces · Exception Handling in Java · Collections Framework · Multithreading · Strings in Java · Arrays in Java · Java 8 Features · JVM and Memory Management · File Handling in Java · Generics in Java · Serialization · Garbage Collection · JDBC

Python Programming

Data types, lists & dicts, OOPs, comprehensions, decorators and standard library

Open section

Python MCQs are increasingly common because data, automation and backend roles all screen for it. The tested ground is mutable vs immutable types, list/dict/set behaviour, slicing, comprehensions, functions and default-argument traps, OOPs, decorators, generators and exception handling.

Solved question banks

Also in this syllabus (coming soon)

Data Types in Python · Strings in Python · Lists Tuples and Sets · Dictionaries in Python · Control Flow in Python · Functions in Python · OOPs in Python · Modules and Packages · Exception Handling in Python · File Handling in Python · Comprehensions · Decorators and Generators · Regular Expressions in Python · NumPy and Pandas Basics · Python Standard Library

Programming — Frequently Asked Questions

What topics are covered under Programming?+

Programming is organised into 5 sub-sections: C Programming, C++ Programming, C# Programming, Java Programming, Python Programming. Between them they cover 89 topics, of which 5 currently have full solved question banks.

Which exams test Programming?+

Programming appears in TCS NQT & Digital, Infosys / Wipro / Cognizant, Capgemini, Product-company screening, GATE CS, University semester exams. The question style and difficulty on these pages follow those papers.

How many Programming practice questions are available?+

There are currently 40+ solved questions in this category, each with a worked explanation. New topics are published regularly.

Is Programming practice on MyInternships.in free?+

Yes — every question, answer and explanation is free to read with no signup and no paywall.

Other preparation categories

Cleared the aptitude round? Now grab the role.

Preparation only pays off when you apply. Thousands of internships and fresher jobs across India are live on MyInternships.in right now — free to apply, no consultancy fees.