Well-answered programming Questions
(25 Q’s &A’s)
, Q1. What is a programming language?
A programming language is a formal set of instructions that can be used to produce various kinds
of output, including software applications, scripts, and algorithms. Programming languages
enable humans to communicate with computers to perform specific tasks.
Q2. What is the difference between compiled and interpreted languages?
Compiled languages are converted into machine code by a compiler before execution, making
them generally faster in runtime but requiring a separate compilation step. Interpreted languages
are read and executed line-by-line by an interpreter at runtime, which can make them slower but
more flexible for development.
Q3. What is a variable?
A variable is a symbolic name associated with a value and whose associated value may be
changed. Variables are used to store data that can be referenced and manipulated in a program.
For example, in Python, you can define a variable as age = 30.
Q4. What is a data type?
A data type is a classification that specifies which type of value a variable can hold. Common
data types include integers, floats, strings, and booleans. Each data type determines the
operations that can be performed on the data.