NEW
Font size
WorksheetsComputer Science Slip test 3
Total questions: 15
Worksheet time: 11mins
The part of a program that can see or use the variables are called________
Parameter
Scope
Fucntion
Indentation
How many variables can be mapped to the same instance?
2
3
4
Multiple
Which of the following keeps track of all these mappings with namespaces?
Programming Languages
Application software
System software
Mysql
Which of the following rule is used to decide the order in which the scopes are to be searched for scope resolution?
LEGB
LGEB
LBEG
LGBE
How the names are mapped with obejcts in programming language?
name ==object
name: : object
name:=object
object:=name
How many types of variable scope are there?
2
4
3
6
Which of the following is not a variable scope?
Global
Enclosed
List
Built-in
Choose the type of scope for a variable 'a' defined in the following program. Disp():
a:=7
print a
Disp()
Global
Enclosed
Local
Built-in
A variable which is declared outside all the functions in a program is known as _______
Local
Global
Enclosed
Built-in
Which of the following variable can be inside /outside of all the functions in a program?
Local
Global
Enclosed
Built-in
The duration for which a variable is alive is called its _______.
End time
Life time
SCope time
Visible time
The scope of a _________ is that part of the code where it is visible.
Keyword
Variable
Function
Operator
A function always first look up for a variable name in its scope.
Local
Enclosed
Global
Built-in
Scope refers to the visibility of
Variables
Parameters
functions
All of these
The inner function can access the variable of the outer function.This is called ______ scope.
Local
Function
Enclosed
Global
