2nd Quarterly Examination Carlos Balanga Grade 10
  • 1. A window which users can interact within a system program.
A) Console
B) Workstation
C) Control System
  • 2. This method that can print all basic types.
A) Console.Learn/LearnLine
B) Console.Read/ReadLine
C) Console.Write/WriteLine
  • 3. It means combining 2 strings, making a new string.
A) String Concatenation
B) String Addition
C) String Fusion
  • 4. This method that can view all basic types.
A) Console.Learn/LearnLine
B) Console.Read/ReadLine
C) Console.Write/WriteLine
  • 5. A programmer-defined word that holds the value of the user.
A) Variable
B) Literals
C) Constant
  • 6. In the rules of writing variables, it must begin with a letter or which symbol?
A) =
B) -
C) _
  • 7. An expression with a fixed value that cannot be changed at runtime.
A) Variable
B) Literals
C) Constant
  • 8. The escape code for Newline.
A) \r
B) \t
C) \n
  • 9. The escape code for carriage return.
A) \r
B) \t
C) \n
  • 10. The escape code for tab.
A) \r
B) \n
C) \t
  • 11. The escape for vertical tab.
A) \b
B) \f
C) \v
  • 12. The escape code for backspace.
A) \v
B) \b
C) \f
  • 13. The escape code for form (page) feed.
A) \v
B) \f
C) \b
  • 14. The escape code for alert (beep).
A) \v
B) \b
C) \a
  • 15. The escape code for single quote.
A) \'
B) \"
C) \?
  • 16. The escape code for double quote.
A) \"
B) \?
C) \'
  • 17. The escape code for question mark.
A) \"
B) \?
C) \'
  • 18. The escape code of backslash.
A) \+
B) \}
C) \\
  • 19. string number = "twenty-six"
    string text = "He carries + "number" + crates."
    int number = "26"
A) He carries 26 crates.
B) crates. 26 He carries
C) 26 He carries crates.
  • 20. string age = "thirty-two"
    string text = "He is + age + years of age."
    int age = "32"
A) He is 32 years of age.
B) 32 years of age. He is
C) years of age. He is 32
  • 21. They are used as particular values within the source code of a program.
A) Literals
B) Variables
C) Constants
  • 22. Which of these is a character?
A) "55"
B) 'f'
C) "Avery"
  • 23. Which of these is a character?
A) "700"
B) 'i'
C) "Hound"
  • 24. Which of these is a string?
A) 's'
B) "never again"
C) '3'
  • 25. Which of these is a string?
A) '5'
B) "Sports"
C) 'P'
  • 26. This data type can be true or false.
A) Byte
B) Char
C) Bool
  • 27. This data type is a number of possible value. Always has a value of 8.
A) Byte
B) Bool
C) Char
  • 28. This data type is a small integer in the 16-bit Unicode.
A) Byte
B) Bool
C) Char
  • 29. This data type is for currency values. (Example: 5.00Php)
A) Double
B) Float
C) Decimal
  • 30. This data type is a floating point number and it has a value of 64. (8 to the second power.)
A) Float
B) Decimal
C) Double
  • 31. This data type is a floating point number and it has a value of 32.
A) Float
B) Double
C) Decimal
  • 32. This data type can be positive or negative, also called imaginary.
A) Integer
B) Float
C) Long
  • 33. This data type is an integer with larger value.
A) Long
B) Float
C) Integer
  • 34. Which assignment operator has the symbol for assignment?
A) =
B) +=
C) -=
  • 35. Which assignment operator has the symbol for Multiply AND?
A) %=
B) /=
C) *=
  • 36. Which arithmetic operator indicates a Modulus?
A) ++
B) /
C) %
  • 37. Which symbol is the equality operator?
A) !=
B) >=
C) ==
  • 38. Which symbol is NOT a logical operator?
A) and (&&)
B) or (||)
C) but (//)
  • 39. This is used to execute a statement if the condition specified resulted to True.
A) If Statement
B) If...else Statement
C) Nested If Statement
  • 40. This is used if you want your program to do something else if conditions are not met.
A) Nested If Statement
B) If Statement
C) If...else Statement
  • 41. This is used if ever your condition consists of another condition.
A) If Statement
B) If...Else Statement
C) Nested If Statement
  • 42. Which repetitive statement or loop iterates again and again?
A) While Loop
B) For Loop
C) Do-while Loop
  • 43. Which repetitive statement or loop checks the condition after each execution of it's loop body?
A) While Loop
B) Do-while Loop
C) For Loop
  • 44. Which repetitive statement or loop that executes a segment code repeatedly?
A) For Loop
B) While loop
C) Do-while Loop
  • 45. This basic OOP term have states and behaviors.
A) Methods
B) Objects
C) Classes
  • 46. This basic OOP term is defined as a template/blueprint that describes the object's behavior to other type supports.
A) Methods
B) Objects
C) Classes
  • 47. This basic OOP term is a behavior where logic is written.
A) Objects
B) Classes
C) Methods
  • 48. The process of hiding all the details on how a piece of program is written and only includes what is necessary to understand how the program is used.
A) Polymorphism
B) Inheritance
C) Encapsulation
  • 49. This is when one method name is used as an instruction that can perform different actions.
A) Inheritance
B) Encapsulation
C) Polymorphism
  • 50. This is a way of organizing classes to group them based on their properties.
A) Encapsulation
B) Inheritance
C) Polymorphism
Created with That Quiz — the site for test creation and grading in math and other subjects.