FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
These are the nameless variables that they don’t have names which is allocated on the heap for dynamic data structures or for instances of objects in Object Oriented programming languages
A
Scalar Variables
B
Explicit heap-dynamic Variables
C
Implicit heap-dynamic Variables
D
Stack Dynamic Variable
Explanation: 

Detailed explanation-1: -Explicit Heap-Dynamic Variables Explicit heap-dynamic variables are those nameless variables allocated on the heap for dynamic data structures or for instances of objects in OO programming languages. In Java or C++, they are allocated by the new operator.

Detailed explanation-2: -Which among the following doesn’t come under OOP concept? Explanation: Platform independence is not feature of OOP.

Detailed explanation-3: -Which of these can not be used for a variable name in Java? Explanation: Keywords are specially reserved words which can not be used for naming a user defined variable, example: class, int, for etc.

Detailed explanation-4: -Dynamic Scoping There are two ways to implement access to non-locals under dynamic scope: “deep access” and “shallow access", described below.

There is 1 question to complete.