Answer:
Option d) B is 1.33 times faster than A
Given:
Clock time, 

No. of cycles per instructions, 

Solution:
Let I be the no. of instructions for the program.
CPU clock cycle,
= 2.0 I
CPU clock cycle,
= 1.0 I
Now,
CPU time for each can be calculated as:
CPU time, T = 


Thus B is faster than A
Now,


Performance of B is 1.33 times that of A
Answer:
The function in Python is as follows:
def greetings(details):
details = details.split(' ')
print('Hello, '+details[0]+'!, I also enjoy '+details[2])
Explanation:
This defines the function
def greetings(details):
This splits the input string by space
details = details.split(' ')
This prints the required output
print('Hello, '+details[0]+'!, I also enjoy '+details[2])
After splitting, the string at index 0 represents the name while the string at index 2 represents the hobby
Answer: Cognitive
Explanation:
According to the question, the Ryan shows cognitive attitude towards the HDTV. The cognitive component basically refers to the three main components that are:
- Thoughts
- Beliefs
- Attributes
The cognitive component is one of the type of attitude which basically consist of various types of thoughts, knowledge and the beliefs towards the any type of object. It is one of the belief and opinion of the attitude.
Answer:
Following are attached images that will help you understand the complete code. The code is tested with different variables and different outputs are obtained. All the necessary description is given in the form o comments inside the code.
Explanation:
Answer:
1. Classes and objects
2. Inheritance
3. Polymorphism
4. Data hiding/ encapsulation
5. Interfaces.
Explanation:
Classes and objects depict the major component of the OOP (object oriented programming). It explains the object like a ball in a soccer game development.
The inheritance is like the subclass of the object. Data hiding is a stage in oop where the codes or data are hidden from another users.
In the polymorphism stage, the object is given the ability to change to a sub-object, while in the interface stage a function or method signature is defined without implementing it.