Beginner Devloper Questions
Beginner Devloper Questions
C#
1) Below given method will return output as “test”?
Answer: _________________________________________________
Answer: _________________________________________________
public class A
{
Int b = 12345678910;
Answer: _________________________________________________
4) What exception will throw below method if we call A class in Main Method.
If exception, then how to handle in below class
Answer_________________________________________________________
public class A
{
Int? b = null;
If code will execute then specify reason else not required reason.
Answer_________________________________________________________
6) What output will come from below loop or it will give compile time error
or run time error.
Answer_________________________________________________________
{
int A = 0;
string B = "we";
A = Convert.ToInt32(B);
Return A;
}
Answer:
For(int i=0; I < 5;i++)
{
If(i==3)
{
Continue;
}
Console.writeline(i);
}
Answer:
Int j =5;
do{
} while(j < 6)
Employee Write a query for out: List of Employee who has last 3 months
Emp_Id salary total >=150000
Emp_name
Department Detail Require:
Salary_Amount
Emp_Name
Department
Salary_Master
Monthly_Salary
Salary_Id
Cumulative_Salary
Empl_Id
Salary_date
Salary_Amount
select
e.Emp_Name,
e.Department,
e.Monthly_Salary,
(e.Monthly_Salary * 3) as Cumulate_salary
from
Employes e
where
(e.Monthly_Salary * 3) >= 150000;