FUNDAMENTALS OF COMPUTER

DATABASE FUNDAMENTALS

BASICS OF BIG DATA

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is a variable in Python
A
A reserved memory location in computer used to store data.
B
A statement that allows a program to follow a different path
C
A choice in an if statement
D
A smaller program with in a bigger programme
Explanation: 

Detailed explanation-1: -What is variable in python? Variables are nothing but reserved memory locations to store certain values. This means that when you create a variable you reserve some space in memory. Based on the data type of a variable, the interpreter allocates memory and decides what can be stored in the reserved memory.

Detailed explanation-2: -A Python variable is a reserved memory location to store values. In other words, a variable in a python program gives data to the computer for processing.

Detailed explanation-3: -Python stores object in heap memory and reference of object in stack. Variables, functions stored in stack and object is stored in heap.

Detailed explanation-4: -The assignment operator, denoted by the “=” symbol, is the operator that is used to assign values to variables in Python. The line x=1 takes the known value, 1, and assigns that value to the variable with name “x”. After executing this line, this number will be stored into this variable.

Detailed explanation-5: -A Python variable is a symbolic name that is a reference or pointer to an object. Once an object is assigned to a variable, you can refer to the object by that name. But the data itself is still contained within the object. For example: »> »> n = 300.

There is 1 question to complete.