#ATAGTR2019  QuizATAhon-2 | Event in NA | Townscript
#ATAGTR2019  QuizATAhon-2 | Event in NA | Townscript

#ATAGTR2019 QuizATAhon-2

May 03 - 31 '19 | 03:00 PM (IST)
Online Event

Event Information

QuizATAhon was an integral part of #ATAGTR2016 and #ATAGTR2017 and #ATAGTR2018, it is back again...

Remember this is your entry pass to the best and most fun filled global testing conference.
#ATAGTR2019 #QuizATAhon will be a series of quiz's starting from 8th April 2019 till 10th November 2019.  

Result for QuizATAhon 1 will be declared soon.

This is the second Quiz

For Rules and other details for QuizATAhon please refer to the following URL: http://gtr.agiletestingalliance.org/quizatahon.html 

Process for Submission
1. Read the question below
2. Note the correct answers on a piece of paper and get ready to submit the answers following the step below
3. Click on Book Now and submit your details
4. please do not forget to give your permanent email address, as our replies in the official mails sometimes don't reach your inbox.
4. Please submit the correct answers for the questions 

============= QuizATAhon 2 Questions are here =========================

Q1. Which TestNG test will be executed on 2nd position
public class test {
      public WebDriver driver;
      @Test
      public void One() {
           System.out.println("Test Case number 1");
      }
      @Test
      public void Two() {
          System.out.println("Test Case number 2");
      }
      @Test(priority=0)
      public void Three() {
          System.out.println("Test Case number 3");
      }
      @Test(priority=1)
      public void Four() {
          System.out.println("Test Case number 4");
      }
 }
A) Test Case Number 1
B) Test Case Number 2
C) Test Case Number 3
D) Test Case Number 4


Q2. if no DOM elements match the query, findElements() method will be returning NoSuchElementException is it true or false?
A) True
B) False


Q3. Which one is the correct css selector to find the element “Java” in the list
 <ul id="Listfriends>
  <li>PHP</li>
  <li>Python</li>
  <li>Java</li>
  <li>Selenium</li>
 </ul>
A) li:nth-child(3)
B) tr:nth-child(3)
C) li:nth-last-of-type(2)
D) 1 and 3 option


Q4. In postman if we have a variable in the query parameters:
 Variable is { {name} }
 Suppose this variable is available in both Global and Environment variable, in this case postman will give the priority to.
A) Global Variable
B) Environment Variable


Q5. While running the following piece, an error exception is thrown
 package quizzathon;
 // add relevant imports
 public class googleTest{
 public static void main(String [] args) {
     System.setProperty("webDriver.ChromeDriver", "C:\\minal\\drivers\\ChromeDriver.exe ");
     // TODO Auto-generated method stub
     WebDriver driver = new ChromeDriver();
     driver.get("https://www.google.com/");
     }
 }
The exception is caused primarily because of
A) Class name should begin with capitals
B) package name quizzATAhon is incorrect
C) in set property rather than "webDriver.ChromeDriver" it should be..
D) None of the above, actually it is a TestNg not being used error


Q6. Please see the below code snippet :
 package quizzathon;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
 import org.openqa.selenium.By;
 import org.openqa.selenium.WebDriver;
 import org.openqa.selenium.chrome.ChromeDriver;
 public class MyTest {
     WebDriver driver;
     @Before
     public void setUp() throws Exception {
         System.setProperty("webdriver.chrome.driver","test/resources/drivers/chromedriver.exe");
         WebDriver driver = new ChromeDriver();
     }
     @Test
     public void test() {
         driver.get("https://google.com");
         driver.findElement(By.name("test")).sendKeys("selenium");
     }
     @After
     public void tearDown() throws Exception {
         driver.quit();
     }
 }
This is a Junit test and there is no compilation error. (You can consider that the  chromedriver path is correct)
While running the piece of code, what is your expectation in return?
A) NullPointerException
B) NoSuchElementException
C) Test will be executed with no issues
D) Methods and variables should be static


Q7. Which is the correct syntax to define the path variable in postman?
A) { {name} }
B) ::name
C) :name
D) {name}


Q8. Which is not the way of switching to an iframe in Selenium WebDriver?
A) frame(int frameIndex)
B) frame(String id or String className)
C) frame(WebElement frameElement)
D) frame(WebDriver driver)


Q9. What is return type of getWindowHandles()
A) String
B) List of String
C) Set of WebElement
D) Set of String


Q10. Which is super class of all Exception and error classes in Java?
A) RuntimeException
B) CompileTimeException
C) Throwable
D) Exception
 
==============================

You have to click on Book now to submit your details and the answers to the questions

===================================

For all upcoming ATA Events please visit the following URL





=============================================

QuizATAhon quiz's are brought to you by the following curators



Venue

This is an online event
Agile Testing Alliance & DevOps++ Alliance cover image
Agile Testing Alliance & DevOps++ Alliance profile image
749
Events Organised
50
Followers
About
ATA is a global alliance of Technologists, QA, Agile and DevOps practitioners, professionals and experts. ATA is driving community driven shared and collaborative learnings across multiple chapters in 24 countries.
Have a question?
Send your queries to the event organizer
Agile Testing Alliance & DevOps++ Alliance profile image
CONTACT ORGANIZER
EVENT HAS ENDED
VIEW SIMILAR EVENTS
Have a question?
Send your queries to the event organizer
Agile Testing Alliance & DevOps++ Alliance profile image
CONTACT ORGANIZER
Host Virtual Events with
Townhall
Learn More TsLive Learn more