QA automation quiz advanced level

TAKE THE TEST SEND THIS TEST TO MY CANDIDATES

Test description

Prerequisites: This test is for QA automation developers with senior-level and 5+ years of experience. All 20 questions are focused on the technical side and less on management.
You must have experience with one (C#, Java) big OOP language, Database – SQL, API Testing, Performance Testing, Framework – Selenium.
Keep in mind there can be several correct answers to each question. You have 30 minutes to complete the test. Good luck!

Sample questions

1
What should the following method return?  

public string MethodName(string test)
{
	var a = TsBy.Css("table[class = 'test']");
	var b = a.Resolve(Browser).FindElements(By.TagName("tr"));
	for (var i = 0; i < b.Count; i++)
	{
		var c = b[i].FindElements(By.TagName("td"));
		for (var x = 0; x < c.Count; x++)
		{
			if (string.Equals(c[x].Text, label, 
				StringComparison.CurrentCultureIgnoreCase))
			{
				var classType = c[x + 1].GetAttribute("class");
				if (classType == "type")
				{
					var element = lines[x + 1].Text;
					return element;
				}
			}
		}
	}
	return null;
}