Skip to main content

Posts

Top 25 C Viva Questions and Answers (Most Important for Exams)

 C programming viva is an important part of engineering and computer science practical examinations. Many students feel nervous because questions are often asked directly and require clear answers. This post covers the most important C viva questions that are frequently asked in exams and interviews. These questions are simple, conceptual, and very useful for beginners. --- 1. What is C language?   C is a general-purpose, procedural programming language developed by Dennis Ritchie. It is widely used for system programming and application development. 2. Who developed C language?   C language was developed by Dennis Ritchie in 1972 at Bell Laboratories. 3. What are the features of C language?   C language is simple, fast, portable, structured, and supports low-level programming. 4. What is a compiler?   A compiler is a program that converts the entire source code written in C into machine code at once. 5. What is a keyword in C?   Ke...
Recent posts

C++ OOP Viva Questions

  1. What is OOP? OOP is a programming approach based on objects and classes. 2. What are the main features of OOP? Encapsulation, Abstraction, Inheritance, Polymorphism. 3. What is a class? A class is a blueprint for creating objects. 4. What is an object? An object is an instance of a class. 5. Difference between class and object? Class is a design, object is a real-world implementation. 6. What is encapsulation? Wrapping data and functions together into a single unit. 7. How is encapsulation achieved in C++? Using classes and access specifiers. 8. What is data hiding? Protecting data using private access specifier. 9. What are access specifiers in C++? public, private, protected. 10. What is inheritance? Inheritance allows one class to use properties of another class. 11. Why inheritance is used? To reuse code and reduce redundancy. 12. Types of inheritance in C++? Single, Multiple, Multilevel, Hierarchical, Hybrid. 13. What is polymorphism? ...

Most Important C++ Viva Questions and Answers

  1. What is C++? C++ is an object-oriented programming language developed as an extension of C. 2. Who developed C++? C++ was developed by Bjarne Stroustrup . 3. Why is C++ called an object-oriented language? Because it supports classes, objects, inheritance, and polymorphism. 4. What is a class? A class is a blueprint for creating objects. 5. What is an object? An object is an instance of a class. 6. Difference between C and C++? C is procedural, C++ supports both procedural and object-oriented programming. 7. What is encapsulation? Encapsulation binds data and functions together in a class. 8. What is data hiding? Restricting access to data using access specifiers. 9. What are access specifiers? public, private, protected. 10. What is inheritance? Inheritance allows one class to acquire properties of another class. 11. Types of inheritance in C++? Single, Multiple, Multilevel, Hierarchical, Hybrid. 12. What is polymorphism? Same function name pe...

Most Important C Viva Questions and Answers

  1. What is C language? C is a procedural programming language used to develop system and application software. 2. Who developed C language? C was developed by Dennis Ritchie . 3. Why is C called a middle-level language? Because it supports both low-level and high-level programming features. 4. What is a compiler? A compiler converts C source code into machine code. 5. What is a variable? A variable is a named memory location used to store data. 6. What is a data type? A data type defines the type and size of data stored in a variable. 7. Name basic data types in C. int, float, char, double. 8. What is a keyword? A keyword is a reserved word with predefined meaning in C. 9. What is a constant? A constant is a value that cannot be changed during program execution. 10. What is an identifier? An identifier is the name of a variable, function, or array. 11. What is an array? An array stores multiple values of the same data type in continuous memory. 12...

Top 50 C & C++ Viva Questions Asked in Exams

  1. What is C? C is a procedural programming language used for system and application programming. 2. What is C++? C++ is an extension of C that supports object-oriented programming. 3. Who developed C language? C was developed by Dennis Ritchie. 4. Who developed C++ language? C++ was developed by Bjarne Stroustrup. 5. What is a compiler? A compiler converts high-level code into machine code. 6. What is an interpreter? An interpreter executes code line by line. 7. What is the difference between C and C++? C is procedural, while C++ supports both procedural and object-oriented programming. 8. What is a variable? A variable is a named memory location used to store data. 9. What is a data type? A data type specifies the type of data a variable can hold. 10. Name basic data types in C. int, float, char, double. 11. What is a keyword? A keyword is a reserved word with a special meaning in the language. 12. What is a constant? A constant is a value that cannot be ...