Made with ScholarlyMake flashcards like these from your own notes
Question:What is the primary function of the Gogga.setGridSize(X,Y) method?
Answer:This method establishes the dimensions of the grid used for drawing in the Gogga environment.
Question:How is a new Gogga instance named 'bug' created at specific coordinates?
Answer:A new instance is created using the syntax \(\text{Gogga bug = new Gogga(X, Y, Color.RED);}\).
Question:What is the behavior of the .move() method in Gogga?
Answer:The .move() method advances the Gogga bug exactly one grid space forward in its current facing direction.
Question:Which methods are utilized to change the orientation of the Gogga bug?
Answer:The .turnLeft() and .turnRight() methods rotate the Gogga 90 degrees in their respective directions.
Question:How does the .setColor(Color.BLUE) method affect the Gogga's actions?
Answer:This method modifies the color of the trail that the Gogga leaves behind as it moves.
Question:What is the purpose of the .setPosition(X,Y) method?
Answer:This method immediately changes the current location of the Gogga to the specified X and Y coordinates on the grid.
Question:How is a nested loop defined in programming?
Answer:Nested loops are defined as loops that are placed inside the body of other loops.
Question:What is the function of the 'import' statements in the Gogga code structure?
Answer:Import statements, such as 'import it.Gogga;' and 'import java.awt.Color;', bring in necessary external libraries and classes into the program.
Question:What is the computer 'Desktop' compared to in terms of daily life?
Answer:The Desktop is compared to a physical desk where you place your work and organize your main workspace.
Question:What are 'Icons' on a computer desktop?
Answer:Icons are shortcuts that represent programs, files, or folders, allowing for quick access to them.
Question:What is the difference between the Taskbar and the Dock?
Answer:The Taskbar is the bottom bar found on Windows computers, while the Dock is the equivalent bar found on Mac computers.
Question:What is the specific function of the mouse 'Right Click'?
Answer:The Right Click opens a Context Menu, which is a list of options that change depending on the item being clicked.
Question:What are the primary viewing methods for PDFs?
Answer:PDFs can be viewed directly in web browsers such as Chrome and Edge, or through dedicated applications like Adobe Acrobat Reader.
Question:What are the core components of strong password security?
Answer:Strong password security requires using a mix of letters, numbers, and symbols, and ensuring the password is never shared with anyone.
Question:What actions should be taken to avoid phishing scams via email?
Answer:To avoid phishing, be suspicious of emails requesting personal info, do not click links in suspicious messages, and verify the sender's email address legitimacy.
Question:What is the safety recommendation for using public Wi-Fi?
Answer:Avoid accessing sensitive accounts like banking on free public Wi-Fi unless a VPN is used for protection.
Question:What functions do the window controls in the top right corner perform?
Answer:The controls include Minimize (-) to hide to taskbar, Maximize (Square) to fill the screen, and Close (X) to exit the program.
Question:How does the Snap or Split Screen feature function?
Answer:By dragging a window to the far left or right edge of the screen, it snaps to half the screen, allowing two windows to be seen side-by-side.
Question:What is the definition and location of OneDrive storage?
Answer:OneDrive is Microsoft's online storage service that saves files to internet servers (the cloud) rather than just a physical hard drive.
Question:What are three primary benefits of using OneDrive?
Answer:The benefits include Access Anywhere (any device), Backup protection against hardware failure, and Auto-Save functionality for Microsoft Office files.
Question:What is the purpose and primary function of CamScanner?
Answer:CamScanner is a mobile app that uses a phone's camera to scan physical documents and convert them into clean PDFs or image files.
Question:What do the Auto-Crop and Enhance features do in CamScanner?
Answer:Auto-Crop automatically finds the edges of the paper, while Enhance brightens the text and whitens the background for better readability.
Question:What is the difference between CC and BCC when sending emails?
Answer:CC (Carbon Copy) sends visible copies to others for their information, while BCC (Blind Carbon Copy) sends copies secretly so other recipients cannot see who received it.
Question:What are the essential components of a professional email?
Answer:A professional email should include the 'To' address, a 'Subject' summarizing the content, a clear 'Body' message, and any necessary 'Attachments' represented by the paperclip icon.
Question:What is the standard method for creating a new folder in Windows or macOS?
Answer:The standard method is: Right-Click on an empty space, hover over New, click Folder, then immediately type a name and press Enter.
Question:How do you rename a folder if a mistake was made during creation?
Answer:To rename a folder, Right-Click the specific folder and then Select Rename from the menu.
Question:Why is it important to include the tag in HTML coding?
Answer:The tag is required to indicate the beginning and end of a web page; without it, the website might not function correctly in some browsers.
Question:What are the roles of the and elements?
Answer:The element adds webpage details and helps search engines, while the provides the page title displayed in the browser tab.
Question:How does the tag function in an HTML document?
Answer:The tag defines the main area of the web page where content is displayed and most HTML code is added.
Question:What is the difference between the tag and the tag?
Answer:The tag marks the beginning and end of a paragraph, while the tag starts a new line without leaving the current paragraph.
Question:How are HTML headings h1 through h6 sized relative to each other?
Answer:Heading is the largest heading, and size decreases sequentially until , which is the smallest.
Question:What do the formatting tags , , and represent?
Answer:These tags mark text as bold ( ), italic ( ), and underlined ( ) respectively.
Question:What is the function of the tag?
Answer:The (Horizontal Rule) tag inserts a horizontal line across the web page to separate content sections.
Question:How are HTML comments written and what is their purpose?
Answer:Comments are written using the \(\text{<!-- -->}\) syntax; they add explanatory notes to code that are not displayed on the live web page.
Question:What is the purpose of the tag in HTML?
Answer:The tag is used to embed an image into the HTML page as a 'replaced element.'
Question:What is the function of the 'src' attribute in an image tag?
Answer:The 'src' attribute specifies the path or URL to the image file that should be displayed.
Question:Why is the 'alt' attribute strongly recommended for images?
Answer:The 'alt' attribute provides alternative text for screen readers and is displayed if the image fails to load properly.
Question:How are width and height handled for images in HTML?
Answer:Numeric values are in CSS pixels; if only width is set, the browser preserves the aspect ratio unless height is also provided.
Question:What is the function of the tag and the 'href' attribute?
Answer:The tag is the anchor tag used to create hyperlinks, and 'href' specifies the destination URL or file location.
Question:How does the 'target' attribute affect hyperlinks?
Answer:The 'target' attribute controls where the link opens; specifically, target="_blank" opens it in a new tab, while target="_self" is the default same-tab behavior.
Question:What is the consequence of missing the closing tag?
Answer:The hyperlink will not function correctly if the closing tag is omitted.
Question:What are the roles of , , and in table structure?
Answer:holds the entire structure, groups header column titles, and contains the main data rows.
Question:What is the difference between , , and tags?
Answer:creates a horizontal row, defines a bold/centered header cell, and defines a regular data cell.
Question:Where should the element be placed and what is its purpose?
Answer:The element contains CSS rules and should be placed inside the section of an HTML document.
Question:How does the 'cascade' work if multiple stylesheets are present?
Answer:The browser applies styles in the order they appear; this sequence is known as the cascade.
Question:What is Inline CSS and when is it best utilized?
Answer:Inline CSS is written inside an HTML tag using the style attribute; it is best for quick, one-off styling of a single element.
Question:What are the downsides of using Inline CSS?
Answer:It is hard to maintain in large projects and breaks the separation of structure (HTML) and style (CSS).
Question:What is Internal CSS and where is it written?
Answer:Internal CSS is written inside a tag within the section of an HTML document.
Question:What are the benefits of using External CSS?
Answer:External CSS is reusable across many pages, easier to maintain, and can be cached by browsers for better performance.
Question:What are common HTML attributes and their functions?
Answer:Common attributes include 'id' (unique name), 'class' (grouping), 'style' (inline CSS), 'href' (links), and 'src' (file locations).
Question:What is the correct term for the class 'tag' and how is it used?
Answer:The correct term is the 'class attribute'; it is a space-separated list of names used to group elements for styling and selection.
Question:What is the element and how does it behave by default?
Answer:The element is a generic container used to group content; it behaves as a block-level element, starting on a new line.
Question:How are CSS selectors categorized (Element, Class, and ID)?
Answer:Element selectors (e.g., p) style all tags of that type, Class selectors (e.g., .warning) style items with that class, and ID selectors (e.g., #mainTitle) style a unique ID.
Question:What is the primary function of the CSS property color?
Answer:It changes the text colour.
Question:What is the purpose of the font-family CSS property?
Answer:It sets the font type.
Question:What function does the font-size property perform in CSS?
Answer:It sets the text size.
Question:How does the font-weight CSS property affect text appearance?
Answer:It makes text bold/thin.
Question:What are the three alignment options listed for the text-align property?
Answer:left, center, and right.
Question:Which CSS property is used to add an underline or line-through to text?
Answer:text-decoration
Question:What is the function of the background-color property in CSS?
Answer:It sets the background colour.
Question:Which CSS property adds a border around an element?
Answer:border
Question:How is the margin property defined in the CSS properties list?
Answer:It is the space outside the element.
Question:What is the definition of the padding property in CSS?
Answer:It is the space inside the element.
Question:Which properties are grouped together to control element size?
Answer:width and height.
Question:What is the function of the display property in CSS?
Answer:It changes how an element behaves (block/inline/etc.).
Question:What are the three positioning methods mentioned for the position property?
Answer:relative, absolute, and fixed.
Question:In the 'Example Rule', what is the value set for the background-color?
Answer:\(\#\text{f2f2f2}\)
Question:According to the 'Example Rule', what are the three components of the border declaration?
Answer:\(1\text{px}\), solid, and \(\#\text{333}\).
Question:What are the specific padding and margin values defined in the .card example?
Answer:Padding is \(12\text{px}\) and margin is \(10\text{px}\).
Question:What is the width of the element in the provided Example Rule?
Answer:\(250\text{px}\)
Question:Which property defines the space between the element's content and its border?
Answer:padding
Question:How is the border-color described in the Example Rule?
Answer:It is defined by the value \(\#\text{333}\).
Question:Which property would you use to define the alignment of text as centered?
Answer:text-align
Question:What does the position property control in CSS?
Answer:It controls the positioning method.
Question:Which property is described as defining the space outside an element?
Answer:margin
Question:What is the selector used in the provided 'Example Rule'?
Answer:.card
Question:What does the text-decoration function description say about the lines it can add?
Answer:Underline/line-through, etc.
Question:How is the display property's behavior described in the table?
Answer:(block/inline/etc.).
Question:What is the main difference between margin and padding as defined on the page?
Answer:Margin is space outside the element; padding is space inside the element.
Question:What type of border is described in the Example Rule line 'border: 1px solid #333;'?
Answer:A solid line that is \(1\text{px}\) thick and dark grey (\(\#\text{333}\)).
Question:Which property sets the overall horizontal and vertical scale of an element?
Answer:width and height
Question:What is the function of the text-align property in CSS?
Answer:It aligns text (left/center/right).
Question:Which CSS property is responsible for making text appear bold or thin?
Answer:font-weight