Mixed Deck — All Online Coding Lessons Topics Flashcards
100 cards from real Online Coding Lessons practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 20 Mixed Deck — All Online Coding Lessons Topics flashcards as text
What is 'local storage' in a mobile app?
Answer: Data stored directly on the device rather than on a remote server
Local storage refers to data saved directly on the user's device, allowing the app to access it quickly without an internet connection.
Which code adds the item "cat" to the end of an array called pets?
Answer: pets.push("cat")
The push() method adds a new item to the end of an array.
How can you change the text shown inside an HTML element with JavaScript?
Answer: Set its textContent
Changing textContent updates the words shown inside an element.
What is Pygame?
Answer: A Python library for creating 2D games and multimedia applications
Pygame is a set of Python modules designed for writing 2D video games, providing tools for graphics, sound, and user input handling.
Which CSS property controls the spacing between elements' borders and their content?
Answer: padding
The 'padding' property creates space between an element's content and its border, inside the element.
Which symbol means "is equal to" when comparing values in JavaScript?
Answer: ===
Three equal signs check if two values are truly equal.
In C++, which container provides automatic dynamic resizing and contiguous storage?
Answer: std::vector
std::vector stores elements contiguously and grows automatically as needed.
In Scratch, what is a 'sprite'?
Answer: A character or object that can be programmed
A sprite in Scratch is a character or object that you can program with scripts to move, speak, and interact.
What is a 'push notification' in mobile apps?
Answer: A message sent from a server to a user's device, appearing outside the app
A push notification is a message delivered from a server to a user's device that appears even when the app is not actively open.
What is the purpose of a graph data structure?
Answer: Representing relationships between objects using nodes and edges
A graph is a data structure that represents relationships between objects using nodes (vertices) connected by edges, modeling networks and connections.
What will alert(2 + 3) show on the screen?
Answer: 5
JavaScript adds the numbers 2 and 3 to get 5.
What does 'responsive design' mean in mobile development?
Answer: A design that adapts to different screen sizes and orientations
Responsive design means an app's layout automatically adjusts and adapts to different screen sizes, resolutions, and orientations for a consistent experience.
What does the 'range(5)' function return in Python?
Answer: [0, 1, 2, 3, 4]
range(5) generates a sequence starting from 0 up to but not including 5, producing 0, 1, 2, 3, 4.
What is the first index number of any array in JavaScript?
Answer: 0
Arrays start counting positions at 0, not 1.
What does 'remix' mean in Scratch?
Answer: Taking someone else's project and building on or modifying it
Remixing in Scratch means creating a copy of another user's project and modifying or building upon it, with credit given to the original.
What is the output of: print(2 ** 3) in Python?
Answer: 8
The ** operator in Python performs exponentiation, so 2 ** 3 equals 2 raised to the power of 3, which is 8.
What is the correct format specifier to print a floating-point double with printf in C?
Answer: %f
%f is used to print float and double values with printf.
What does UI stand for in mobile app development?
Answer: User Interface
UI stands for User Interface, which refers to the visual elements and design through which users interact with a mobile app.
What is the result of the C expression 7 / 2 when both operands are integers?
Answer: 3
Integer division in C truncates the fractional part, yielding 3.
What is recursion in programming?
Answer: A function that calls itself to solve a smaller version of the same problem
Recursion is a programming technique where a function calls itself with a modified input to solve a problem by breaking it into smaller subproblems.