Tech & Coding

Most Asked Programming Basics Interview Questions (Fresher Level)

Q1. What is a Variable?

A variable stores data that can change during program execution.

Example (C):

int age = 21;

Here, age stores an integer value.


Q2. Difference Between Compiler and Interpreter

A compiler translates the whole program at once, while an interpreter translates line by line.

Example:

  • C/C++ → Compiler
  • Python/JavaScript → Interpreter

Q3. What is a Data Type?

Data type defines the type of data a variable can store.

Examples: int, float, char, string

float price = 99.50f;

Q4. What is a Loop?

A loop repeats a block of code until a condition is met.

Example (Python):

for i in range(3):
    print(i)

Q5. What is Debugging?

Debugging is the process of finding and fixing errors in code.

Most Asked Programming Basics Interview Questions (Fresher Level)

Leave a Reply

Your email address will not be published. Required fields are marked *