Answer:
e) Code segment II produces correct output for all values of str, but code segment I produces correct output only for values of str that contain "pea" but not "pear". 
Explanation:
<em>if - elseif - else statements work in sequence in which they are written. </em>
- <em> </em>In case <em>if() statement is true, </em>else if() and else statements will not get executed.
 - In case <em>else if() statement is true</em>, conditions in if() and else if() will be checked and else statement will not be executed.
 - In case <em>if() and else if() both are false</em>, else statement will be executed<em>.</em>
 
First, let us consider code segment I.
In this, first of all "pea" is checked in if() statement which will look for "pea" only in the String str. So, even if "pearl" or "pear" or "pea" is present in 'str' the result will be true and "pea" will get printed always.
After that there are else if() and else statements which will not get executed because if() statement was already true. As a result else if() and else statements will be skipped.
Now, let us consider code segment II.
In this, "pearl" is checked in if() condition, so it will result in desired output.
Executable code is attached hereby.
Correct option is (e).
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark">
java
</span>
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark">
java
</span>
    
        
             
        
        
        
Answer:
The answer is "False"
Explanation:
The data link layer is the protocol layer within a program, which controls data movement into a physical wireless connection. This layer is a second layer, that is also known as a collection of communications applications.
- The server network, in which many clients request, and receive service from a centralized server.
 
- This system provides an interface, that enables a user to request server services and view the server returns results, that's why it is wrong.
 
 
        
             
        
        
        
Solution :
class Employee:
    #Define the
    #constructor.
    def __
__(
,  ID_number, 
, email):
        #Set the values of
        #the data members of the class.
        
 = name
        
_number = ID_number
        
 = salary
        self.email_address = email
#Define the function
#make_employee_dict().
def make_employee_dict(list_names, list_ID, list_salary, list_email):
    #Define the dictionary
    #to store the results.
    employee_dict = {}
    #Store the length
    #of the list.
    list_len = len(list_ID)
    #Run the loop to
    #traverse the list.
    for i in range(list_len):
        #Access the lists to
        #get the required details.
        name = list_names[i]
        id_num = list_ID[i]
        salary = list_salary[i]
        email = list_email[i]
        #Define the employee
        #object and store
        #it in the dictionary.
        employee_dict[id_num] = Employee(name, id_num, salary, email)
    #Return the
    #resultant dictionary.
    return employee_dict
 
        
             
        
        
        
I am guessing. My guess is code.
        
                    
             
        
        
        
A file extension includes the three or four characters that follow the dot in the file name