This document is designed for 1st-year B.Tech students to prepare for programming
fundamentals viva, tests, and revisions. It contains clear and concise questions with
answers to enhance understanding and confidence.
, Q: What is a Programming Language?
A: A programming language is a formal set of instructions that can be used to produce various kinds
of output. Examples include Python, C++, Java, etc.
Q: What is the difference between Compiler and Interpreter?
A: A compiler translates the entire code into machine language at once, while an interpreter
translates and executes the code line by line.
Q: What are Variables?
A: Variables are placeholders for storing data values. In programming, each variable has a name
and a data type.
Q: Explain Data Types in Programming.
A: Data types define the type of data a variable can hold, such as int (integer), float (decimal), char
(character), and string (text).
Q: What are Conditional Statements?
A: Conditional statements (like if-else) are used to perform different actions based on certain
conditions in a program.