Summary

This document contains questions and answers for a computer science quiz. It covers different types of events, data types, and various programming concepts. The document is useful for students studying programming and computer science concepts.

Full Transcript

True or False Questions: 1. The Web Viewer app displays online material instantly and helps track significant events on your phone. Answer: True 2. User-initiated events only occur when a timer is involved. Answer: False 3. Phishing websites can be avoided by using a Web Vie...

True or False Questions: 1. The Web Viewer app displays online material instantly and helps track significant events on your phone. Answer: True 2. User-initiated events only occur when a timer is involved. Answer: False 3. Phishing websites can be avoided by using a Web Viewer that filters trusted sites. Answer: True 4. Automated events always occur due to user interactions, like tapping or swiping. Answer: False 5. A timer event is triggered every time the timer "ticks" or the interval expires. Answer: True 6. Properties in a component refer to the actions that a component performs. Answer: False 7. A Boolean data type can only store true or false values. Answer: True 8. The String data type allows for mathematical calculations. Answer: False 9. A sensor event is triggered when a user moves their phone in a specific direction. Answer: True 10. A user-initiated event involves actions like clicking a button or tilting the phone. Answer: True Multiple Choice Questions: 11. Which of the following is a property of a Web Viewer component? a) On_Park b) TimerInterval c) Open Another Screen d) Call Web Viewer Answer: b) TimerInterval 12. What type of data does the Boolean data type hold? a) Numbers b) Text c) True or False d) URLs Answer: c) True or False 13. Which of the following is NOT a user-initiated event? a) Clicking a button b) Moving the phone c) TimerInterval d) Tilting the phone Answer: c) TimerInterval 14. Which block is used to open another screen in an app? a) Button Click b) Open Another Screen c) On_Break d) Call Web Viewer Answer: b) Open Another Screen 15. What is an example of a sensor event? a) Clicking a button b) Moving the phone in a specific direction c) Timer ticking d) Colliding with another sprite Answer: b) Moving the phone in a specific direction 16. Which data type is used for performing mathematical calculations in an app? a) Boolean b) String c) Number d) Variable Answer: c) Number 17. Which of the following is an automated event? a) Button Click b) TimerEvent c) User Tap d) Sensor Event Answer: b) TimerEvent 18. Which command block specifies to search for a URL in a Web Viewer? a) Open Another Screen b) Button Click c) Call Web Viewer d) Screen name Answer: c) Call Web Viewer 19. Which type of operator performs mathematical operations? a) Logical operator b) Arithmetic operator c) Relational operator d) Comparison operator Answer: b) Arithmetic operator 20. Which of the following is a correct way to name a variable? a) 1stVariable b) @Variable c) my_variable d) Variable 1 Answer: c) my_variable Identification Questions: 21. Identify the data type used for manipulating text such as combining or changing letter cases. Answer: String 22. Name the event block that is triggered by clicking a button in the app. Answer: Button Click 23. Identify the type of event triggered by the accelerometer, location sensor, or orientation sensor. Answer: Sensor Event 24. Which property in a component refers to the model of the device? Answer: Model 25. Identify the component that stores and can modify data while the code is running. Answer: Variable 26. What kind of event occurs when two sprites collide? Answer: Automatic Event 27. Identify the block used to open another screen in an app. Answer: Open Another Screen 28. Which data type is used for storing numeric values? Answer: Number 29. What is the purpose of the On_Start event? Answer: It is triggered when the app or screen starts. 30. What is the correct use of the TimerInterval property? Answer: It defines the interval for a timer event to occur. True or False Questions: 31. A Variable is used to store information that can be changed during runtime. Answer: True 32. The Number data type is used for text manipulations. Answer: False 33. A logical sequence block is a type of Boolean operation used to make decisions in the code. Answer: True 34. Arithmetic operators in programming include addition, subtraction, and logical comparisons. Answer: False 35. The 'On_Break' event is triggered when a user clicks on the Web Viewer component. Answer: False 36. A sensor event could involve the use of an accelerometer or orientation sensor. Answer: True 37. You can use the String data type to perform calculations like addition and subtraction. Answer: False 38. The Call Web Viewer block is used to search for a URL. Answer: True 39. A Boolean value can only store "Yes" or "No." Answer: False 40. User-initiated events can include pressing buttons, touching the screen, or moving the phone. Answer: True Multiple Choice Questions: 41. What does the 'On_Park' event correspond to? a) The screen starts b) A specific button click c) When the app is paused d) The car's color Answer: c) When the app is paused 42. Which block would you use to perform an action after a button click? a) Open Another Screen b) TimerInterval c) Button Click d) Sensor Event Answer: c) Button Click 43. What happens when a timer reaches its set interval? a) A sensor event is triggered b) The app goes to a new screen c) A timer event is triggered d) The user is prompted for input Answer: c) A timer event is triggered 44. Which of the following actions is an example of an automated event? a) Clicking a button b) Tilting the phone c) Timer "tick" d) Moving the phone Answer: c) Timer "tick" 45. What would happen if a variable is named "Variable 1"? a) It would be accepted b) It would cause an error c) It would be named "Variable_1" d) It would be renamed automatically Answer: c) It would be named "Variable_1" 46. Which is a property associated with the Web Viewer component? a) TimerInterval b) Model c) Color d) Button Click Answer: a) TimerInterval 47. Which of these blocks is NOT used in a Web Viewer app? a) Call Web Viewer b) Open Another Screen c) Button Click d) DatePicker Answer: d) DatePicker 48. Which event is triggered when a sprite collides with another sprite? a) Button Click b) TimerEvent c) Automatic Event d) Sensor Event Answer: c) Automatic Event 49. Which of the following is used to define the layout for a Web Viewer component? a) TimerInterval b) On_Start c) Color d) Screen Name Answer: c) Color 50. *What type of operators do you use to perform mathematical operations like +, -, , /? a) Relational operators b) Logical operators c) Arithmetic operators d) Comparison operators Answer: c) Arithmetic operators

Use Quizgecko on...
Browser
Browser