Company: Deloitte..mcq
Difficulty: medium
Consider the following program logic: Loop from k=1 to a. If k equals c, skip printing k. After the loop, if a % c <= j, print "Nice", else print "Morning". Which of the following is a possible output based on the provided examples? 1 2 3 Nice 1 2 3 4 Nice 1 2 4 Nice All of the above Consider the STUDENT table with columns Stud_Id, Name, Subject, and Marks. Which of the following queries will return the same count of distinct subjects? I) SELECT COUNT(DISTINCT SUBJECT) FROM STUDENT; II) SELECT COUNT(DISTINCT(SUBJECT)) FROM STUDENT; III) SELECT DISTINCT(COUNT(*)) FROM STUDENT; IV) SELECT COUNT(*) FROM (SELECT DISTINCT Subject from STUDENT) std; Only (I) and (IV) Only (III) and (IV) Only (II) and (III) Only (I), (II) and (IV) What will be the output of the following Java program snippet using Scanner on a file containing "check = 1, test = 5"? I/O exception is raised check, =, 1,, test, =, 5, check = 1, test = 5, check=1, test=5, check=1, test=5 Which Excel formula can one use to deri