Answer:
The correct answer for the given question is option(c) i.e new
Explanation:
Instantiating an object means creating a object or creating a instance of a class .
The new keyword allocates a memory for the object .
To create instance we follow following syntax
classname objectname =new classname();
for example
abc ob=new abc();
here abc is a class and ob is an object for that class with the help of new keyword it allocate the memory for the object ob.
create, =,object ,is are not any keyword to instantiating an object.
so the correct answer is " new "
Explanation:
CLS
Input length
Input breadth
A= l*b
Print" the area of a room is"; A
END
Answer:
NumPy contains a large number of various mathematical operations.
...
Numpy | Mathematical Function.
Function Description
expm1() Calculate exp(x) – 1 for all elements in the array.
exp2() Calculate 2**p for all p in the input array.
log10() Return the base 10 logarithm of the input array, element-wise.
log2() Base-2 logarithm of x.
Answer:
Reference
Explanation:
The Reference type variable is such type of variable in C# that holds the reference of memory address instead of value. Examples for reference type are classes, interfaces, delegates and arrays.
We can pass parameters to the method by reference using <em>ref </em>keyword
It’s mandatory to initialize the variable value before we pass it as an argument to the method in c#
For example,
int x = 10; // Variable need to be initialized
Add(ref x); // method call
If you pass parameters by reference in method definition, any changes made to it affect the other variable in method call.
Here's a sample program:
using System;
namespace ConsoleApplication
{
public class Test
{
public static void Main()
{
int i = 10;
Console.WriteLine("i=" + i);
Add(ref i);
Console.WriteLine("i=" + i);
Console.ReadLine();
}
public static void Add( ref int j)
{
j = j + 10;
Console.WriteLine("j="+j);
}
}
}
Output:
i=10
j=20
i=20