ThatQuiz Test Library Take this test now
Computer Science Quiz - Freshman/Sophomore
Contributed by: Brown
  • 1. A Class is a?
A) Blueprint that defines a variable
B) Home Tool Markup Language
C) Raw text elements
D) Hyperlinks and Text Markup Language
  • 2. What is an Object?
A) Instance of a class
B) Home Tool Markup Language
C) Raw text elements
D) An individual component of an HTML document
  • 3. What is a SQL injection attack?
A) Where a hacker tries to inject malicious SQL code into someone database
B) When a hacker tries to enter harmful HTML code
C) When a hacker tries to enter in a hyperlink
D) When a hacker tries to enter in a variable
  • 4. True or False: Will an SQL injection ruin your database?
A) False
B) True
  • 5. What is Sanitizing data?
A) The act of stripping out any characters that aren’t needed from the data
B) The act of collecting and removing variables
C) The act of garbage collection
D) The act of removing Raw text elements that aren’t wanted
  • 6. What is the best way to prevent an SQL injection?
A) An array
B) Specimen of a class
C) Function by reference
D) Prepared Statement
  • 7. When do you use inheritance?
A) When a relationship exist between two classes Function by reference
B) An array of an array
C) Home Tool Markup Language
D) Specimen of a class
  • 8. What word is used by the sub class to inherit features of the super class?
A) Polymorphism
B) Finalize
C) Object
D) Extend
  • 9. What is a Prepared Statement?
A) A template for SQL statements
B) A super class that replaces sub-class
C) A method that have the same but different signatures
D) A method for overloading
  • 10. True or False: Only code used in web applications are vulnerable to SQL injection attack?
A) True
B) False
  • 11. Code that is most vulnerable to SQL injection attack contains?
A) Dynamic SQL with bind arguments
B) Input parameters
C) Dynamic SQL with concatenated input values
D) Call to external functions
  • 12. Not preventing SQL Injections attacks leaves your business at great risk of:
A) Method overloading
B) Method overriding
C) Super class
D) Steal customer information
  • 13. What is an example of vulnerabilities in web based vulnerabilities?
A) None of the above
B) All of the above
C) Cross-Site Scripting
D) SQL Injection
  • 14. What is MySQL?
A) A relational database management system
B) An object oriented database query language
C) None of the above
D) A tree based grammar for database definition
  • 15. What is FindBugs?
A) Relates to method overloading
B) Relates to method overriding
C) Determined at run-time
D) An Static Analysis Tool for Java
  • 16. What does FindBugs do?
A) Finds a relationship that exist between two classes
B) Home Tool Markup Language
C) Identifies hundreds of serious defects in large applications
D) Looks at an array of an array
  • 17. What is OOPs?
A) Object Oriented Programming
B) Oriented Object Programming
C) Object Ore Programming
D) Overloading Object Programming
  • 18. When do you declare a method class?
A) Abstract method from a Non abstract
B) When a child class exstends
C) Oriented Object Programming
D) When a child class implements the behavior method
  • 19. What is user-defined exception in Java?
A) Exceptions defined by the compiler
B) Exceptions defined by the IDE
C) Exceptions defined by the computer
D) Exceptions defined by the developer
  • 20. What type of Tool is FindBugs?
A) Static Analysis
B) Concept
C) Project Management
D) GUI
Created with That Quiz — where test making and test taking are made easy for math and other subject areas.