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.
Questions
Question 1 Multiple Choice (Single Answer)
Which clause should you use to exclude group results?
- WHERE
- HAVING
- RESTRICT
- GROUP BY
- 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?
- MAX
- MIN
- SUM
- COUNT
- TOTAL
- LARGEST
Question 3 Multiple Choice (Single Answer)
Which one is the character manipulation function?
- TRUNC
- REPLACE
- TO_DATE
- MOD
- CASE
Question 4 Multiple Choice (Single Answer)
Which constraint can be defines only at the column level?
- UNIQUE
- NOT NULL
- CHECK
- PRIMARY KEY
- FOREIGN KEY
Question 5 Multiple Choice (Single Answer)
Which is an /SQL*Plus command?
- INSERT
- UPDATE
- SELECT
- DESCRIBE
- DELETE
Question 6 True/False
- Is sizeof a keyword?
- True
- False
Question 7 True/False
- Can an Interface be final?
- True
- False
Question 8 True/False
- Can an Interface have an inner class?
- True
- False
Question 9 Multiple Choice (Single Answer)
- How many static init can you have ?
- 1
- 2
- Many
- None of these
Question 10 True/False
- Is a class a subclass of itself?
- True
- False
Question 11 True/False
- Are true and false keywords?
- True
- False
Question 12 True/False
- Does garbage collection guarantee that a program will not run out of memory?
- True
- False
Question 13 True/False
- Can a method be overloaded based on different return type but same argument type ?
- True
- False
Question 14 True/False
- Is null a keyword?
- True
- False
Question 15 Multiple Choice (Multiple Answers)
- Which non-Unicode letter characters may be used as the first character of an identifier?
- #
- $
- _
- @
Question 16 Multiple Choice (Single Answer)
How do you enable Strict Type Checking in VB.NET
- With OPTION STRICT ON keyword
- With OPTION EXPICIT Keyword
- With OPTION STRICT OFF keyword
- All the above
Question 17 Multiple Choice (Single Answer)
How do you add Web Methods in VB.Net
- Add keyword to Method signature
- Add [WebMethod] on top of the Method Signature
- Add {WebMethod} on top of the Method Signature
- None of the Above
Question 18 Multiple Choice (Single Answer)
How do you create a Read only Property in VB.NET
- Using Only Get..EndGet with in property definition
- Using Only Set..EndSet with in property definition
- Using both Get and Set
- None of these
Question 19 Multiple Choice (Single Answer)
How do you terminate code execute with in a VB.NET method
- Exit
- Close Sub
- Exit Sub
- Kill
Question 20 Multiple Choice (Single Answer)
How do you terminate code execute with in a VB.NET method
- Exit
- Close Sub
- Exit Sub
- Kill