Logo/

Computer Science and Web Development Fundamentals

Log in

Made with ScholarlyMake flashcards like these from your own notes

Computer Science and Web Development Fundamentals

Questions and answers

83 cards
  1. 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.

  2. 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);}\).

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. Question:What are 'Icons' on a computer desktop?

    Answer:Icons are shortcuts that represent programs, files, or folders, allowing for quick access to them.

  11. 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.

  12. 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.

  13. 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.

  14. 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.

  15. 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.

  16. 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.

  17. 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.

  18. 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.

  19. 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.

  20. 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.

  21. 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.

  22. 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.

  23. 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.

  24. 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.

  25. 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.

  26. 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.

  27. 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.

  28. 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.

  29. 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.

  30. 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.

  31. 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.

  32. Question:What do the formatting tags , , and represent?

    Answer:These tags mark text as bold ( ), italic ( ), and underlined ( ) respectively.

  33. 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.

  34. 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.

  35. 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.'

  36. 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.

  37. 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.

  38. 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.

  39. 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.

  40. 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.

  41. Question:What is the consequence of missing the closing tag?

    Answer:The hyperlink will not function correctly if the closing tag is omitted.

  42. 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.

  43. 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.

  44. 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.

  45. 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.

  46. 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.

  47. 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).

  48. 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.

  49. 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.

  50. 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).

  51. 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.

  52. 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.

  53. 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.

  54. Question:What is the primary function of the CSS property color?

    Answer:It changes the text colour.

  55. Question:What is the purpose of the font-family CSS property?

    Answer:It sets the font type.

  56. Question:What function does the font-size property perform in CSS?

    Answer:It sets the text size.

  57. Question:How does the font-weight CSS property affect text appearance?

    Answer:It makes text bold/thin.

  58. Question:What are the three alignment options listed for the text-align property?

    Answer:left, center, and right.

  59. Question:Which CSS property is used to add an underline or line-through to text?

    Answer:text-decoration

  60. Question:What is the function of the background-color property in CSS?

    Answer:It sets the background colour.

  61. Question:Which CSS property adds a border around an element?

    Answer:border

  62. Question:How is the margin property defined in the CSS properties list?

    Answer:It is the space outside the element.

  63. Question:What is the definition of the padding property in CSS?

    Answer:It is the space inside the element.

  64. Question:Which properties are grouped together to control element size?

    Answer:width and height.

  65. Question:What is the function of the display property in CSS?

    Answer:It changes how an element behaves (block/inline/etc.).

  66. Question:What are the three positioning methods mentioned for the position property?

    Answer:relative, absolute, and fixed.

  67. Question:In the 'Example Rule', what is the value set for the background-color?

    Answer:\(\#\text{f2f2f2}\)

  68. Question:According to the 'Example Rule', what are the three components of the border declaration?

    Answer:\(1\text{px}\), solid, and \(\#\text{333}\).

  69. 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}\).

  70. Question:What is the width of the element in the provided Example Rule?

    Answer:\(250\text{px}\)

  71. Question:Which property defines the space between the element's content and its border?

    Answer:padding

  72. Question:How is the border-color described in the Example Rule?

    Answer:It is defined by the value \(\#\text{333}\).

  73. Question:Which property would you use to define the alignment of text as centered?

    Answer:text-align

  74. Question:What does the position property control in CSS?

    Answer:It controls the positioning method.

  75. Question:Which property is described as defining the space outside an element?

    Answer:margin

  76. Question:What is the selector used in the provided 'Example Rule'?

    Answer:.card

  77. Question:What does the text-decoration function description say about the lines it can add?

    Answer:Underline/line-through, etc.

  78. Question:How is the display property's behavior described in the table?

    Answer:(block/inline/etc.).

  79. 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.

  80. 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}\)).

  81. Question:Which property sets the overall horizontal and vertical scale of an element?

    Answer:width and height

  82. Question:What is the function of the text-align property in CSS?

    Answer:It aligns text (left/center/right).

  83. Question:Which CSS property is responsible for making text appear bold or thin?

    Answer:font-weight