Multi-Language Programming Quiz: VB.NET, Java, and SQL

Test your knowledge across multiple programming languages including VB.NET methods and properties, Java keywords and OOP concepts, and SQL queries and functions.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which clause should you use to exclude group results?

  1. WHERE
  2. HAVING
  3. RESTRICT
  4. GROUP BY
  5. ORDER BY
Question 2 Multiple Choice (Single Answer)

You need to calculate the total of all salaries in the accounting department. Which group function should you use?

  1. MAX
  2. MIN
  3. SUM
  4. COUNT
  5. TOTAL
  6. LARGEST
Question 3 Multiple Choice (Single Answer)

Which one is the character manipulation function?

  1. TRUNC
  2. REPLACE
  3. TO_DATE
  4. MOD
  5. CASE
Question 4 Multiple Choice (Single Answer)

Which constraint can be defines only at the column level?

  1. UNIQUE
  2. NOT NULL
  3. CHECK
  4. PRIMARY KEY
  5. FOREIGN KEY
Question 5 Multiple Choice (Single Answer)

Which is an /SQL*Plus command?

  1. INSERT
  2. UPDATE
  3. SELECT
  4. DESCRIBE
  5. DELETE
Question 6 True/False
  1. Is sizeof a keyword?
  1. True
  2. False
Question 7 True/False
  1. Can an Interface be final?
  1. True
  2. False
Question 8 True/False
  1. Can an Interface have an inner class?
  1. True
  2. False
Question 9 Multiple Choice (Single Answer)
  1. How many static init can you have ?
  1. 1
  2. 2
  3. Many
  4. None of these
Question 10 True/False
  1. Is a class a subclass of itself?
  1. True
  2. False
Question 11 True/False
  1. Are true and false keywords?
  1. True
  2. False
Question 12 True/False
  1. Does garbage collection guarantee that a program will not run out of memory?
  1. True
  2. False
Question 13 True/False
  1. Can a method be overloaded based on different return type but same argument type ?
  1. True
  2. False
Question 14 True/False
  1. Is null a keyword?
  1. True
  2. False
Question 15 Multiple Choice (Multiple Answers)
  1. Which non-Unicode letter characters may be used as the first character of an identifier?
  1. #
  2. $
  3. _
  4. @
Question 16 Multiple Choice (Single Answer)

How do you enable Strict Type Checking in VB.NET

  1. With OPTION STRICT ON keyword
  2. With OPTION EXPICIT Keyword
  3. With OPTION STRICT OFF keyword
  4. All the above
Question 17 Multiple Choice (Single Answer)

How do you add Web Methods in VB.Net

  1. Add keyword to Method signature
  2. Add [WebMethod] on top of the Method Signature
  3. Add {WebMethod} on top of the Method Signature
  4. None of the Above
Question 18 Multiple Choice (Single Answer)

How do you create a Read only Property in VB.NET

  1. Using Only Get..EndGet with in property definition
  2. Using Only Set..EndSet with in property definition
  3. Using both Get and Set
  4. None of these
Question 19 Multiple Choice (Single Answer)

How do you terminate code execute with in a VB.NET method

  1. Exit
  2. Close Sub
  3. Exit Sub
  4. Kill
Question 20 Multiple Choice (Single Answer)

How do you terminate code execute with in a VB.NET method

  1. Exit
  2. Close Sub
  3. Exit Sub
  4. Kill