TCS Company Programming Technical

If the user does not pass value to argument, what is the value of arguments provided at the time of function declaration that are automatically assign by the compiler called?

A. Pass by value argument
B. Pass by reference argument
C. Default argument
D. User defined argument

Read Solution (Total 4)

TCS Other Question

Which among the below given options is a part of black-box testing?

A. Verification
B. Equivalence class partitioning
C. Walk through
D. Review
What will be the output of the following java code?

class Operations
{
protected void getMethods()
{
System.out.println("A");
}
}

public class Main extends Operations
{
protected final void getMethods()
{
System.out.println("B");
}
public static void main(String[] args)
{
Operations obj = new Operations();
obj.getMethods();
}
}