Answer:
Follwing is the python code:-
word=str(input("Enter the string\n"))
new=word[0:3] #expression for first three characters of the string.
print(new)
Output:-
Enter the string
chandelier
cha
Explanation:
The expression word[0:3] is for extracting first three characters form the string.
word[0:3] = It extracts characters from index 0 to index 2 it does not include 3.3 is excluded.
Answer:
(c) the dynamic type of reference will determine which of the methods to call.
Explanation:
Polymorphism in Object Oriented Programming typically means the same method name can cause different actions depending on which object it is invoked on. Polymorphism allows for dynamic binding in that method invocation is not bound to the method definition until the program executes.
So in the case of Animal superclass and Mammal subclass, both having a method called eat() with identical signatures and return types, depending on which reference, the correct method eat() will be called dynamically upon execution.
For example, if we have the following;
================================
<em>Mammal mammal = new Animal();</em>
<em>mammal.eat()</em>
================================
The eat() method that will be called is the one in the Mammal subclass.
However, if we have;
================================
<em>Animal animal = new Animal();</em>
<em>animal.eat()</em>
================================
The eat() method of the Animal superclass will be called.
Answer:
There are three technologies used for implementing the SOA most commonly with Web services are UDDI (Universal Description, Discovery & Integration) , WSDL (Web Services Description Language) and SOAP (Simple Object Access Protocol) .
Out of them XML technologies are Web Services Description Language (WSDL) and Simple Object Access Protocol (SOAP).
WSDL is an XML language that describes a Web service.
SOAP is an XML Protocol and it is used by client application to communicate with web services.
Spyware<span> is considered a malicious program and is similar to a Trojan Horse in that users unwittingly install the product when they install something else. ... </span>Spyware <span>works like </span>adware<span> but is usually a separate program that is installed unknowingly when you install another freeware type program or application.</span>