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