Answer:
The second print statement will print:
f2.i is 1 f2.s is 2
Explanation:
Initially when the execution start. i and s are both 0. i declared as a variable while s is a static variable which value stays once it is re-defined.
When f1 call i and s; their value is both 1 based on the increment statement in the constructor.
For the second print statement:
When f2 call i; it is re-initialized to 1. When f2 call s; it has initial value of 1 and is incremented to 2 which is printed. s hold the initial value of 1 because of the static keyword.
Answer:
Written in Python
age = int(input("How old are you? "))
for i in range(1,age+1):
print("**HUG**")
Explanation:
The first line prompts the user for age
age = int(input("How old are you? "))
The next line is an iteration that starts from 1 till the user input
for i in range(1,age+1):
The last line prints "**HUG**" while the iteration is true
print("**HUG**")
Answer:
The correct answer is option (B) "{!$Setup.Url_Settings__C.URL__c}".
Explanation:
In computer programing using Visualforce, "$Setup" refers to a global merge field that gives the user access to hierarchical custom settings. In this case, the developer needs to retrieve the correct URL to access the current user's profile and display this on a Visualforce Page. "$Setup" will give the developer access to the hierarchical custom settings in Visualforce, and the command "Url_Settings__C.URL__c" will provide the root access to the current user's profile.
IDE: Integrated drive electronics
Sata:Serial advance technology attachment