Welcome to MVS Blog
Compter Science 330 Viva Questions
Q1. What is a computer?
Ans: A computer is an electronic device that accepts input, processes it, and produces output.
Q2. Difference between hardware and software?
Ans: Hardware = physical parts of computer (CPU, keyboard), Software = programs that run on hardware (OS, MS Word).
Q3. What is an Operating System?
Ans: A system software that manages hardware, software and provides an interface between user and computer.
Q4. What is binary logic?
Ans: Binary logic uses only two states, 0 (OFF) and 1 (ON). Computers work in binary.
Q5. What is data communication?
Ans: Exchange of data between two devices using transmission media.
Q6. Define Internet.
Ans: A global network of interconnected computers.
Q7. What is World Wide Web (WWW)?
Ans: A collection of interlinked documents and resources accessible via the Internet using browsers.
C++ Programming
Q8. What is C++?
Ans: C++ is an object-oriented programming language, an extension of C.
Q9. What are data types in C++?
Ans: int, float, char, double, bool, void.
Q10. What are classes and objects?
Ans: Class = blueprint, Object = instance of class.
Q11. What is a constructor?
Ans: A special function used to initialize objects.
Q12. What is a destructor?
Ans: A special function used to destroy objects and free resources.
Q13. What are access specifiers?
Ans: Keywords that define scope: public, private, protected.
Q14. What is inheritance?
Ans: Process of deriving a new class from an existing class. Types: single, multiple, hierarchical, hybrid, multilevel.
Q15. What is polymorphism?
Ans: Ability to take multiple forms. Types: compile-time (overloading), run-time (virtual functions).
Q16. What is encapsulation?
Ans: Wrapping data and functions into a single unit (class).
Q17. What is abstraction?
Ans: Hiding implementation details and showing only essential features.
Q18. What are control statements?
Ans: if, else, switch, loops (for, while, do-while), break, continue.
Q19. What is an array?
Ans: A collection of elements of the same type stored in contiguous memory.
Q20. What is a structure?
Ans: A user-defined data type that groups different data types.
Q21. What is function overloading?
Ans: Defining multiple functions with the same name but different parameters.
Q22. What is operator overloading?
Ans: Giving special meaning to operators (like +, -) for user-defined data types.
Q23. What is a virtual function?
Ans: A function in a base class declared with virtual keyword, overridden in derived class.
Q24. What is compile-time polymorphism?
Ans: Function and operator overloading, resolved at compile time.
HTML / Web Designing
Q25. What is HTML?
Ans: HyperText Markup Language, used to create web pages.
Q26. What is a tag?
Ans: Keywords enclosed in < > that define structure of webpage.
Q27. What is an attribute?
Ans: Provides additional information about a tag. Example: <img src="pic.jpg">.
Q28. How to insert an image in HTML?
Ans: <img src="image.jpg" alt="text">.
Q29. How to create lists in HTML?
Ans: Ordered list <ol>, Unordered list <ul>, Definition list <dl>.
Q30. How to create a hyperlink in HTML?
Ans: <a href="https://example.com">Click Here</a>.
Q31. What are block-level and inline elements?
Ans: Block-level: <div>, <p> (occupies full width). Inline: <span>, <a> (within line).
Q32. Difference between <div> and <span>?
Ans: <div> = block-level container, <span> = inline container.
Q33. How to create tables in HTML?
Ans: <table><tr><td>Data</td></tr></table>.
Q34. What is semantic HTML?
Ans: Tags that describe meaning, e.g., <header>, <footer>, <article>.
Q35. What is the difference between <ol> and <ul>?
Ans: <ol> = ordered (numbered), <ul> = unordered (bullets).
0 Response