diff --git a/.gitignore b/.gitignore index 84dce778c4..ea565cd09f 100755 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ node_modules .vscode package-lock.json yarn.lock +out \ No newline at end of file diff --git a/accounting/accounting-quiz.md b/accounting/accounting-quiz.md index 58cc054c7e..cab7f3264f 100644 --- a/accounting/accounting-quiz.md +++ b/accounting/accounting-quiz.md @@ -189,21 +189,21 @@ - [ ] 350 - [ ] 20 -#### Q29. Who does an audit committee report to? +#### Q28. Who does an audit committee report to? - [x] external auditors - [ ] senior management - [ ] board of directors - [ ] union of employee representatives -#### Q30. A business purchased office equipment by issuing aone-year note payable. The entire amount of the note is due at the end of one year. How do you record this transaction? +#### Q29. A business purchased office equipment by issuing aone-year note payable. The entire amount of the note is due at the end of one year. How do you record this transaction? - [ ] Debt asset, credit equity - [ ] Debt liablity, credit asset. - [ ] Debit asset, credit liability - [ ] Debit equity, credit asset. -#### Q31. Which section of a financial annual report describes the corporation's accounting methods? +#### Q30. Which section of a financial annual report describes the corporation's accounting methods? - [x] Notes to the financial statements - [ ] An auditor's report diff --git a/adobe-acrobat/adobe-acrobat-quiz.md b/adobe-acrobat/adobe-acrobat-quiz.md index 163505b990..0546e2fe81 100644 --- a/adobe-acrobat/adobe-acrobat-quiz.md +++ b/adobe-acrobat/adobe-acrobat-quiz.md @@ -165,37 +165,31 @@ - [ ] a drop-down field - [ ] a text field with rich text formatting -#### Q23. A client sent a PDF to be included as a page in a book you are designing. The client misspelled several words in the PDF. The PDF is a scan of text. What can you do to fix the misspelled words? +#### Q24. A client sent a PDF to be included as a page in a book you are designing. The client misspelled several words in the PDF. The PDF is a scan of text. What can you do to fix the misspelled words? - [ ] **Tools > Organize Pages** - [ ] **Tools > Accessibility** - [ ] **Took > Edit PDF** - [ ] **File > Export to > Microsoft Word** -#### Q24. You would like to convert a layered Visio file to PDF. However, that option is not available. How can you control the conversion of Visio layers to layers in the exported PDF? +#### Q25. You would like to convert a layered Visio file to PDF. However, that option is not available. How can you control the conversion of Visio layers to layers in the exported PDF? - [ ] Click **Create Layer Set**. - [ ] Click **Add Layers**. - [ ] Deselect the **Convert All Pages in Drawing** option. - [ ] Select **Retain Some Layers in the Selected Page**. -#### Q25. A small section of a 28-page PDF has been updated with new image and given to you as a 3-page PDF. You have both PDFs open in Acrobat. Before you update the 28-page file with the new pages, you need to verify that the text is unchanged. What is the best way to do this? +#### Q26. A small section of a 28-page PDF has been updated with new image and given to you as a 3-page PDF. You have both PDFs open in Acrobat. Before you update the 28-page file with the new pages, you need to verify that the text is unchanged. What is the best way to do this? - [ ] From the 28-page PDF, extract and save the three pages as a new PDF. For each of the two three-page PDFs, choose **File > Export to > Text (Plain).** - [ ] Arrange the two PDFs in side-by-side windows in Acrobat. Scroll to the first page of the section in the larger PDF, and compare the visually, line by line. - [ ] Go to **View > Compare Files** and choose **Text Only**. Then, in Settings, edit the **Compare Page Range** field of the larger document so that it is the same three-page range. Then click **Compare**. - [ ] Select the original text in the 3-page section of the 28-page PDF and copy it to the clipboard. Then, paste it into the new 3-page PDF, replacing all of it text. -#### Q26. You need to send multiple documents to a potential client, and you would like to add security to all of the documents at once. What is the easiest method? +#### Q27. You need to send multiple documents to a potential client, and you would like to add security to all of the documents at once. What is the easiest method? - [ ] Portfolio - [ ] LiveCycle Rights Management - [ ] Security Envelope - [ ] Email Review -#### Q27. In a fillable form, you would like the user to be able to enter their own text in a multi-choice form field, if none of the existing choices in the form field are suitable. Which type of form field would provide this option? - -- [ ] a text field with rich text formatting -- [ ] a multi-line text field -- [ ] a drop-down field -- [ ] a list box field diff --git a/after-effects/after-effects-quiz.md b/after-effects/after-effects-quiz.md index 1dafb2342c..7e09afbb5c 100755 --- a/after-effects/after-effects-quiz.md +++ b/after-effects/after-effects-quiz.md @@ -74,11 +74,11 @@ #### Q11. What properties are added to a 3D layer? (Select three items.) -A. Z Rotation -B. Anchor Point -C. Material Options -D. Position -E. Geometry Options +- [ ] Z Rotation +- [ ] Anchor Point +- [ ] Material Options +- [ ] Position +- [ ] Geometry Options #### Q12. You want to include controls from an After Effects composition in the Essential Graphics panel. What is one way to do this? @@ -108,79 +108,66 @@ E. Geometry Options - [ ] Keying > Extract - [ ] Keying > Keylight (1.2) -If you want to apply an effect to multiple layers and adjust all layers at once, which method should you use? +#### Q16. If you want to apply an effect to multiple layers and adjust all layers at once, which method should you use? - [ ] Use the layer pick whip to link properties. - [ ] Parent the layer controls. - [ ] Use an adjustment layer. - [ ] Set one layer effect and then copy and paste its results to the other layers. -You want to scale all elements in a composition, including the composition itself. How can you do this? +#### Q17. You want to scale all elements in a composition, including the composition itself. How can you do this? - [ ] Click File > Scripts > Double-Up.jsx. - [ ] Link all layers and then change the composition settings. - [ ] Click File > Scripts > Scale Composition.jsx. - [ ] In the Composition Settings dialog box, scale the composition dimensions and the layers will scale to match. -Holding the Shift key when rotating a 3D layer constrains the rotation to how many degrees? +#### Q18. Holding the Shift key when rotating a 3D layer constrains the rotation to how many degrees? - [ ] 20 - [ ] 30 - [ ] 45 - [ ] 15 -How can you choose which frame of a composition to show as a thumbnail image for the composition in the Project panel? +#### Q19. How can you choose which frame of a composition to show as a thumbnail image for the composition in the Project panel? - [ ] Select the desired frame in the Composition Settings dialog box. - [ ] Move the playhead to the desired frame and click Composition > Set Poster Time. - [ ] You cannot change the thumbnail image.You cannot change the thumbnail image. - [ ] From the Render Queue, go to Render Settings to set the thumbnail image. -When you want to add properties to the Essential Graphics panel, how can you easily see only the supported properties? +#### Q20. When you want to add properties to the Essential Graphics panel, how can you easily see only the supported properties? - [ ] Type “PP” twice with the Timeline panel active. - [ ] Click the Solo Supported Properties button in the Essential Graphics panel. - [ ] Switch to the Essential Graphics workspace. - [ ] All properties are supported by the Essential Graphics panel. -You want to take an existing layer and make it into two separate layers. How can you do this so the separation occurs at the playhead? +#### Q21. You want to take an existing layer and make it into two separate layers. How can you do this so the separation occurs at the playhead? - [ ] Click Layer > Split Layer. - [ ] Click Edit > Duplicate. - [ ] Click Edit > Extract Work Area. - [ ] Click Edit > Split Layer. -How can you create a single composition from multiple footage items? +#### Q22. How can you create a single composition from multiple footage items? - [ ] Select the items and click File > New Project. - [ ] Select the items and click Composition > New Composition from Selection. - [ ] Drag the selected footage items to the Create a New Composition button at the bottom of the Project panel. - [ ] Select the items and click Composition > New Composition. -You attach a video monitor to view your color correction. Where can you configure the monitor’s preferences? +#### Q23. You attach a video monitor to view your color correction. Where can you configure the monitor’s preferences? - [ ] Preferences > Output - [ ] Preferences > Video Preview - [ ] Preferences > Video Hardware - [ ] Preferences > Previews -A file is in the Render Queue but cannot be rendered. You see that it is labeled Needs Output. What should you do? +#### Q24. A file is in the Render Queue but cannot be rendered. You see that it is labeled Needs Output. What should you do? - [ ] Save the project. - [ ] Set an output file name from the Render To menu. - [ ] Set an output file name and location from the Output To menu. - [ ] Adjust the composition settings. -What type of light never casts a shadow in a 3D scene? - -- [ ] Parallel -- [ ] Ambient -- [ ] Point -- [ ] Spot - -Where do you change the shutter angle for the motion blur in a composition? - -- [ ] on the Basic tab of the Composition Settings dialog box -- [ ] on the Advanced tab of the Composition Settings dialog box -- [ ] on the 3D Renderer tab of the Composition Settings dialog box -- [ ] in the File > Project Settings dialog box diff --git a/agile-methodologies/agile-methodologies-quiz.md b/agile-methodologies/agile-methodologies-quiz.md index 6a3c92597a..c6d4727a5c 100755 --- a/agile-methodologies/agile-methodologies-quiz.md +++ b/agile-methodologies/agile-methodologies-quiz.md @@ -526,35 +526,21 @@ [Source: Underlying principles of SAFe](https://en.wikipedia.org/wiki/Scaled_agile_framework#Underlying_principles_of_SAFe) -#### Q74. Which statement concerning small, frequent releases of software is true? - -- [ ] The chance for rollback is high -- [x] It typically requires a high degree of automation -- [ ] Backward compatibility may be jeopardized -- [ ] The administrative costs are high - -#### Q75. What is the definition of capacity? +#### Q74. What is the definition of capacity? - [ ] It is an inventory of the team's knowledge and skills that is used to plan the work that they do. - [ ] It is the number of teams that a Team Facilitator can support concurrently. - [ ] It is an adjustment to velocity, used in Spring Planning, to account for reduced availability of team members during the upcoming sprint. - [x] It is the maximum number of stories that will be allowed in a sprint. -#### Q76. Which action is something the Team Facilitator should not do? - -- [ ] Celebrate Success. -- [ ] Embrace servant leadership. -- [ ] Remove impediments -- [x] Estimate story points. - -#### Q77. The team is complaining that they send request for clarification to the Product Owner, but these requests go unanswered. What action should you take? +#### Q75. The team is complaining that they send request for clarification to the Product Owner, but these requests go unanswered. What action should you take? - [ ] If there is a question about story, tell the developers to use their best judgement, avoid delay, and discuss the issue in sprint review. - [ ] Send a note to the Product Owner saying the delays in completing the work will be their responsibility, not the team's. - [ ] Develop a service-level agree (SLA) that defines certain response times for different types of request and ask the Product Owner to sign off on it. - [x] Schedule a problem-solving session with the Product Owner and the other team members. -#### Q78. Which choice is a pillar of Lean? +#### Q76. Which choice is a pillar of Lean? - [ ] Frequent delivery of working software - [x] Respect for people and culture @@ -563,35 +549,35 @@ [Source](https://www.planview.com/resources/guide/lean-principles-101/what-is-lean/#:~:text=The%20Pillars%20of%20Lean) `Two pillars are (1) Continuous Improvement, and (2) Respect for People.` -#### Q79. Which statement best describes Agile, Lean, and Six Sigma? +#### Q77. Which statement best describes Agile, Lean, and Six Sigma? - [ ] They are strategies for delivering customer value. - [ ] They were pioneered by Toyota. - [ ] They are strategies for discovering what the customer wants. - [ ] They are derived from statistical process control. -#### Q80. What is a user story? +#### Q78. What is a user story? - [ ] A description of what an actor wants to do in order to accomplish a goal - [ ] A description of archetypal users so the developers can make the solution user-friendly - [ ] A report from the field about a user's experience with the product - [x] The Agile term for a requirement -#### Q81. What is the expected output of a Planning Poker meeting? +#### Q79. What is the expected output of a Planning Poker meeting? - [x] The stories were discussed and each had a story point estimate assigned. - [ ] The team gave feedback to the Product Owner about the acceptance criteria. - [ ] The team decided what stories should be developed within the same sprint. - [ ] The team made a preliminary plan for which stories will be completed in the next quarter. -#### Q82. What is the definition of velocity? +#### Q80. What is the definition of velocity? - [x] The number of story points delivered during a sprint - [ ] The average waiting time for a story on the sprint backlog - [ ] The average wait time for a story to move from the product backlog to the sprint backlog - [ ] The time it takes a developer to complete a story divided by its relative value -#### Q83. What is most important for a successful Product Owner to understand? +#### Q81. What is most important for a successful Product Owner to understand? - [ ] The budget for the product. - [ ] The underlying technology of the product. @@ -600,98 +586,91 @@ [Source](https://premieragile.com/how-does-a-product-owner-measure-value) `A Scrum Team has 3 roles - Product Owner, Scrum Master and Developers. All 3 roles generate Value in their own contexts; however, it is the Product Owner who maximizes the Value from a product or business context.` -#### Q84. Which statement about the Agile Manifesto is true? +#### Q82. Which statement about the Agile Manifesto is true? - [ ] It was written via crowdsourcing and its authors are unknown. - [x] It has been translated into dozens of languages and used around the world. - [ ] It was written in 2001 and is obsolete. - [ ] It was first published as part of Jim Highsmith's doctoral thesis. -#### Q85. The team is not going to complete its Spring Commitment. As the Team Facilitator, what should you do? +#### Q83. The team is not going to complete its Spring Commitment. As the Team Facilitator, what should you do? - [ ] Ask the PO to extend the sprint. - [ ] Advise the PO as soon as possible. - [ ] Report this at the Sprint Review. - [ ] Point out the reasons why and collaborate on solutions. -#### Q86. When a user story is further decomposed, what are the elements called? +#### Q84. When a user story is further decomposed, what are the elements called? - [ ] technical tasks - [ ] actors and actions - [x] Who, What, Why - [ ] threads -#### Q87. What does collective ownership mean? +#### Q85. What does collective ownership mean? - [ ] Every member of the team can make changes to any part of the code as necessary. - [ ] If someone is at fault, then the whole team is at fault. - [x] The team shares equally in the profits that the product generates. - [ ] The team, not the individuals, receive performance evaluations. -#### Q88. According to the Agile Manifesto, how often should developers and business people work together? +#### Q86. According to the Agile Manifesto, how often should developers and business people work together? - [ ] as often as needed - [ ] biweekly - [x] daily - [ ] weekly -#### Q89. What do you call the practice of writing a test before the code is written? +#### Q87. What do you call the practice of writing a test before the code is written? - [ ] design for testability - [x] test-driven development - [ ] unit testing - [ ] test then code -#### Q90. The team is not going to complete its Sprint Commitment. As the Team Facilitator, what should you do? - -- [ ] Ask the PO to extend the sprint. -- [ ] Report this at the Sprint Review. -- [ ] Point out the reasons why and collaborate on solutions. -- [ ] Advise the PO as soon as possible. - -#### Q91. What is the term for a team member who is "T-skilled"? +#### Q88. What is the term for a team member who is "T-skilled"? - [ ] cross-functional - [ ] jack-of-all-trades - [ ] apprentice developer - [ ] generalizing specialist -#### Q92. Which statement is _not_ true about pair programming? +#### Q89. Which statement is _not_ true about pair programming? - [ ] It has been discredited because it is too expensive. - [x] In pair programming, two developers share one computer and take turns at the keyboard. - [ ] It is a great way to teach someone who is new to the team. - [ ] The code produced by two developers who are collaborating is typically higher quality than if they were working alone. -#### Q93. People with fixed mindset \_ . +#### Q90. People with fixed mindset \_ . - [x] have better focus and longer attention spans - [ ] are more goal oriented - [ ] tend to be more resilient - [ ] are more afraid of failure -#### Q94. How can you impove interaction between team members? +#### Q91. How can you impove interaction between team members? - [x] Move people's workstations around in the team room to create new social possibilities. - [ ] Ask the team if they would like to do something recreational together and offer to organize it. - [ ] Tell the team that you see this as a problem and ask them to solve it. - [ ] Since no one has come to you with a complaint, assume that the limited interaction works for everyone. -#### Q95. What is the expected outcome of the daily stand-up meeting? +#### Q92. What is the expected outcome of the daily stand-up meeting? - [ ] updated status on all of the work - [ ] team alignment on its plan for the day - [ ] a list of impediments and priorities - [ ] a report to the Product Owner of stories ready to be accepted -#### Q96. What is the name of the technique in which a story includes an input, a translation of input to output, and an output? +#### Q93. What is the name of the technique in which a story includes an input, a translation of input to output, and an output? - [ ] input-output processing - [ ] ITIOO story format - [ ] thin vertical slice - [ ] structured coding -#### Q97. What is the term for a team member who is "T-shaped"? +#### Q94. What is the term for a team member who is "T-shaped"? - [x] cross-functional - [ ] jack-of-all-trades diff --git a/autocad/autocad-quiz.md b/autocad/autocad-quiz.md index ec6e3a2139..8de5a3c51b 100755 --- a/autocad/autocad-quiz.md +++ b/autocad/autocad-quiz.md @@ -77,139 +77,132 @@ - [ ] floating model space - [ ] viewport model space -#### Q12. When working in a layout, if a viewport is activated and unlocked and you accidentally zoom in or out, what happens to your viewport scale? - -- [ ] The viewport scale changes to the next available standard scale. -- [ ] Nothing. The viewport scale remains the same.Nothing. The viewport scale remains the same. -- [ ] The viewport scale returns to the default 1:1 scale. -- [x] The viewport scale changes to a nonstandard scale. - -#### Q13. When using annotative scaling with dimensions and an annotative dimension style, which two variables need to match for the dimensioning to display in a scaled viewport? +#### Q12. When using annotative scaling with dimensions and an annotative dimension style, which two variables need to match for the dimensioning to display in a scaled viewport? - [ ] drawing scale and viewport scale - [ ] insertion scale and viewport scale - [ ] block scale and viewport scale - [x] annotation scale and viewport scale -#### Q14. You can share tool palettes with other AutoCAD users, provided that the palette source drawing location does not change. What file do you need to share to ensure that another user is using the same tool palette? +#### Q13. You can share tool palettes with other AutoCAD users, provided that the palette source drawing location does not change. What file do you need to share to ensure that another user is using the same tool palette? - [ ] Shared Tool Palette (STP) file - [ ] New Tool Palette (NTP) file - [x] Exported Tool Palette (XTP) file - [ ] User Tool Palette (UTP) file -#### Q15. A crossing selection selects what objects? +#### Q14. A crossing selection selects what objects? - [ ] only the objects completely outside the crossing selection - [ ] only the objects not encompassed nor crossed by the crossing selection - [ ] only the objects completely encompassed by the crossing selection - [x] only the objects completely encompassed and crossed by the crossing selection -#### Q16. You can dimension objects in AutoCAD from the Annotation panel on the Home tab of the ribbon. Where else can you dimension on the ribbon? +#### Q15. You can dimension objects in AutoCAD from the Annotation panel on the Home tab of the ribbon. Where else can you dimension on the ribbon? - [x] the Dimension panel on the Annotate tab - [ ] the Dimensional panel on the Parametric tab - [ ] the Palettes panel on the View tab - [ ] the Reference panel on the Insert tab -#### Q17. When drawing a group of line segments with the LINE command, which command on the right-click shortcut menu allows you to form a closed boundary and snap back to the start point of the first line segment? +#### Q16. When drawing a group of line segments with the LINE command, which command on the right-click shortcut menu allows you to form a closed boundary and snap back to the start point of the first line segment? - [x] CLOSE - [ ] ENTER - [ ] CANCEL - [ ] UNDO -#### Q18. AutoCAD allows you to create elliptical arcs in drawings. When creating one of these arcs, which default drafting rule do you need to follow? +#### Q17. AutoCAD allows you to create elliptical arcs in drawings. When creating one of these arcs, which default drafting rule do you need to follow? - [ ] Arcs follow a counterclockwise (positive angle value) path. - [ ] Arcs follow a clockwise (positive angle value) path. - [ ] Arcs always follow a path with a negative angle value. - [x] Arcs follow a user-defined path. -#### Q19. Linetype Scale (LTSCALE) is applied to what sort of linetypes in AutoCAD drawings? +#### Q18. Linetype Scale (LTSCALE) is applied to what sort of linetypes in AutoCAD drawings? - [ ] any objects that utilize a continuous linetype - [x] any objects that utilize any linetype - [ ] any objects that utilize a dashed or dotted linetype, or a combination of both - [ ] any objects that utilize a colored or continuous linetype, or a combination of both -#### Q20. By default, all of the ARRAY commands make their respective arrays associative and group the selected objects in the array. What command would you use to convert the selected array into individual AutoCAD objects? +#### Q19. By default, all of the ARRAY commands make their respective arrays associative and group the selected objects in the array. What command would you use to convert the selected array into individual AutoCAD objects? - [ ] EATTEDIT - [ ] WBLOCK - [x] EXPLODE - [ ] PROPERTIES -#### Q21. Which command opens a folder where you can start the Add-a-Plotter wizard? +#### Q20. Which command opens a folder where you can start the Add-a-Plotter wizard? - [ ] QUICKSETUP - [ ] STYLESMANAGER - [x] PLOTTERMANAGER - [ ] PLOTTERWIZARD -#### Q22. Dimensions in a drawing can be spaced automatically with the Adjust Space (DIMSPACE) command. You can specify a distance between spaced dimensions or you can use the Auto option. What does Auto do to the dimensions being spaced? +#### Q21. Dimensions in a drawing can be spaced automatically with the Adjust Space (DIMSPACE) command. You can specify a distance between spaced dimensions or you can use the Auto option. What does Auto do to the dimensions being spaced? - [ ] calculates the Auto space as one and a half times (1.5x) the text height of the text in the dimension style being used - [x] calculates the Auto space as twice the distance between the first and second dimensions selected for spacing - [ ] calculates the Auto space as three times (3x) the text height of the text in the dimension style being used -#### Q23. There is often a need to hide or isolate selected objects, especially in complex drawings when detailing geometry. Where would you find the Isolate menu option—which is not on the ribbon? +#### Q22. There is often a need to hide or isolate selected objects, especially in complex drawings when detailing geometry. Where would you find the Isolate menu option—which is not on the ribbon? - [ ] the status bar - [x] a right-click shortcut menu after object selection - [ ] the Quick Access toolbar (QAT) - [ ] the navigation bar -#### Q24. System variables can be monitored in AutoCAD. When monitored, they can also be reset to preferred values. What command is used to control these system variables? +#### Q23. System variables can be monitored in AutoCAD. When monitored, they can also be reset to preferred values. What command is used to control these system variables? - [x] SYSVARMONITOR - [ ] SYSVARMON - [ ] SYSTEMVARIABLEMON - [ ] SYSVARIABLEMONITOR -#### Q25. When using HIDE or ISOLATE in a drawing, the objects are either hidden or isolated for clarity. What happens to the layers of hidden or isolated objects? +#### Q24. When using HIDE or ISOLATE in a drawing, the objects are either hidden or isolated for clarity. What happens to the layers of hidden or isolated objects? - [ ] The hidden and isolated object layers go on to their own layer. - [ ] The isolated object layers stay on; all other layers are turned off in the Layer Properties Manager. - [x] Nothing happens. - [ ] The hidden object layers turn off; all other layers stay on in the Layer Properties Manager. -#### Q26. When scaling a drawing from imperial feet and inches to metric millimeters, what scale factor do you use in the SCALE command, before adjusting your units settings? +#### Q25. When scaling a drawing from imperial feet and inches to metric millimeters, what scale factor do you use in the SCALE command, before adjusting your units settings? - [x] 25.4 - [ ] 0.03937 - [ ] 12.0 - [ ] 0.08333 -#### Q27. When drawing line objects in a drawing, you may use coordinates to define distance and direction. One type of coordinate is a relative coordinate, which is relative to the last point specified—often the second point when drawing a line using the LINE command. What prefix symbol should you type in front of 2D X,Y coordinates to ensure that AutoCAD knows it is a relative coordinate input? +#### Q26. When drawing line objects in a drawing, you may use coordinates to define distance and direction. One type of coordinate is a relative coordinate, which is relative to the last point specified—often the second point when drawing a line using the LINE command. What prefix symbol should you type in front of 2D X,Y coordinates to ensure that AutoCAD knows it is a relative coordinate input? - [ ] `#X,Y` - [x] `@X,Y` - [ ] `R-(X,Y)` - [ ] `REL X,Y` -#### Q28. Center Mark (CENTERMARK), a new annotation tool for circles and arcs, provides an associative center mark that can be edited easily and remains associative to its geometry. Which AutoCAD system variable controls the extension line overshoots that go past the circumference of the circle or arc? +#### Q27. Center Mark (CENTERMARK), a new annotation tool for circles and arcs, provides an associative center mark that can be edited easily and remains associative to its geometry. Which AutoCAD system variable controls the extension line overshoots that go past the circumference of the circle or arc? - [ ] CENTERRESET - [ ] CENTEREXE - [ ] CENTERLTSCALE - [x] CENTERMARKEXE -#### Q29. Where would you find the Application menu in AutoCAD? +#### Q28. Where would you find the Application menu in AutoCAD? - [ ] bottom-left corner of the screen - [ ] bottom-right corner of the screen - [ ] top-right corner of the screen - [x] top-left corner of the screen -#### Q30. When plotting in AutoCAD, the default plotting style is a color-dependent plot style table (CTB). You can also use named plot style tables (STB). You can change a CTB drawing to an STB drawing using which command? +#### Q29. When plotting in AutoCAD, the default plotting style is a color-dependent plot style table (CTB). You can also use named plot style tables (STB). You can change a CTB drawing to an STB drawing using which command? - [ ] CONVERTPSTYLES - [ ] CONVSTYLES - [ ] CONVERTPLOT - [ ] CONVPLOTSTYLE -#### Q31. Single-line text can be added anywhere in a drawing. If middle-center justified text with height of 0 was required in model space that was 300 millimeters high, what workflow would you use? +#### Q30. Single-line text can be added anywhere in a drawing. If middle-center justified text with height of 0 was required in model space that was 300 millimeters high, what workflow would you use? - [ ] @@ -247,77 +240,77 @@ 5. Drag the mouse to set the rotation angle. 6. Type text. -#### Q32. A circle has five grips: a center grip and four quadrant grips. When using the Tan Tan Radius (TTR) method to draw a circle in a right-angled corner, which of the two quadrant grips will be touching other objects? +#### Q31. A circle has five grips: a center grip and four quadrant grips. When using the Tan Tan Radius (TTR) method to draw a circle in a right-angled corner, which of the two quadrant grips will be touching other objects? - [x] the two grips that also act as the tangents in the TTR circle command - [ ] the bottom and left grips the - [ ] top and right grips - [ ] the center and top grips -#### Q33. The Quick Access toolbar (QAT) is located in the top left of the AutoCAD application window. Which two commands in the QAT allow you to go backward and forward in your AutoCAD workflow? +#### Q32. The Quick Access toolbar (QAT) is located in the top left of the AutoCAD application window. Which two commands in the QAT allow you to go backward and forward in your AutoCAD workflow? - [ ] Left and Right - [ ] Undo and Redo - [ ] Rewind and Fast - [ ] Forward Unfix and Fix -#### Q34. When you are in a drawing and want to make an object's layer the current drafting layer, what command can you use? +#### Q33. When you are in a drawing and want to make an object's layer the current drafting layer, what command can you use? - [ ] Make Current (LAYMCUR) - [ ] Change individual properties in the Properties panel. - [ ] Match Properties (MATCHPROP) - [x] Match Layer (LAYMCH) -#### Q35. AutoCAD uses coordinates as the basis of all drawings. The coordinate system is always displayed in the bottom-left corner of the Model tab. In a regular 2D drawing, what axis notation is used for the horizontal and vertical coordinates? +#### Q34. AutoCAD uses coordinates as the basis of all drawings. The coordinate system is always displayed in the bottom-left corner of the Model tab. In a regular 2D drawing, what axis notation is used for the horizontal and vertical coordinates? - [x] X = horizontal, Y = vertical - [ ] H = horizontal, V = vertical - [ ] A = horizontal, B = vertical - [ ] 1 = horizontal, 2 = vertical -#### Q36. When using coordinates in your drawings, you may need to get an exact coordinate value of a point. For example, it might be the corner of an object for setting out purposes, or the center of a circle for modifying the circle's position. What command do you use to obtain a point's exact coordinate value? +#### Q35. When using coordinates in your drawings, you may need to get an exact coordinate value of a point. For example, it might be the corner of an object for setting out purposes, or the center of a circle for modifying the circle's position. What command do you use to obtain a point's exact coordinate value? - [ ] Object Snaps (OSNAP) - [ ] Distance (DIST) - [x] ID Point (ID) - [ ] List (LIST) -#### Q37. The DONUT command creates donut-shaped drawing objects. Which two values are needed to place a donut on a drawing? +#### Q36. The DONUT command creates donut-shaped drawing objects. Which two values are needed to place a donut on a drawing? - [ ] internal and external quadrants - [ ] internal and external circumference - [ ] internal and external diameter - [ ] internal and external radius -#### Q38. An inscribed polygopoln gives you what type of point at the end of the polygon radius? +#### Q37. An inscribed polygopoln gives you what type of point at the end of the polygon radius? - [ ] a node - [ ] a midpoint - [ ] a vertex - [x] a center point -#### Q39. In order for object snap tracking to function effectively, what other drafting setting must be switched on? +#### Q38. In order for object snap tracking to function effectively, what other drafting setting must be switched on? - [ ] Snap and Grid - [ ] Dynamic Input - [ ] Object Snaps - [x] Polar Tracking -#### Q40. When you use the ARRAY command to create copies of objects in AutoCAD, what do you use to orient a rectangular array? +#### Q39. When you use the ARRAY command to create copies of objects in AutoCAD, what do you use to orient a rectangular array? - [ ] center point and rotation angle - [x] X and Y coordinates - [ ] Grid and Snap values - [ ] rows and columns -#### Q41. What type of coordinate is given when using the ID Point command? +#### Q40. What type of coordinate is given when using the ID Point command? - [ ] polar—relative to the last center point selected - [x] absolute—relative to the origin 0,0 - [ ] relative—relative to the last point selected - [ ] angled—relative to the last angle of the last object selected -#### Q42. When working with objects in your drawings, you normally define their properties via their respective layers. However, you can define individual object properties with the Properties panel on the Home tab of the AutoCAD ribbon. Individual color and linetype can be defined there, along with what other typical object property? +#### Q41. When working with objects in your drawings, you normally define their properties via their respective layers. However, you can define individual object properties with the Properties panel on the Home tab of the AutoCAD ribbon. Individual color and linetype can be defined there, along with what other typical object property? ![q42](images/q42_autocad.png) @@ -326,231 +319,231 @@ - [ ] linetype scale - [ ] lineweight -#### Q43. The Text Align (TEXTALIGN) command does more than just align text vertically or horizontally. Which TEXTALIGN setting allows you to set up evenly aligned text to a defined spacing in a drawing? +#### Q42. The Text Align (TEXTALIGN) command does more than just align text vertically or horizontally. Which TEXTALIGN setting allows you to set up evenly aligned text to a defined spacing in a drawing? - [ ] setting the spacing distance in the Properties palette - [ ] setting the spacing distance on the right-click shortcut menu - [ ] the Distribute option - [x] the Set Spacing option -#### Q44. When utilizing named views in the Model tab to navigate, why should you keep an eye on your current drafting layer? +#### Q43. When utilizing named views in the Model tab to navigate, why should you keep an eye on your current drafting layer? - [ ] Each named view has its own current drafting layer. - [ ] Each named view can be saved with a layer snapshot, which might change your current drafting layer. - [ ] Each named view has its own current drafting layer, with the layer name being the same as the name of the named view. - [ ] Each named view changes the current drafting layer to a default drafting layer. -#### Q45. When using palettes in AutoCAD, why would you dock a palette and then use the auto-hide function? +#### Q44. When using palettes in AutoCAD, why would you dock a palette and then use the auto-hide function? - [ ] to make sure AutoCAD works properly - [ ] to isolate all the blocks you are using in the current drawing - [ ] to stop anyone seeing which AutoCAD palettes you are using - [x] to automatically hide the palette content and display only the docked palette title bar -#### Q46. The navigation bar is normally on by default and is located to the right-hand side of the drawing area. Which variable controls the display of the navigation bar, and to what value does it need to be set for the navigation bar to display on the screen? +#### Q45. The navigation bar is normally on by default and is located to the right-hand side of the drawing area. Which variable controls the display of the navigation bar, and to what value does it need to be set for the navigation bar to display on the screen? - [ ] The NAVBARDISPLAY value should be set to 1 - [ ] The NAVBARDISPLAY value should be set to 0. - [ ] The NAVIGATIONBARDISPLAYON value should be set to 1. - [ ] The NAVIGATIONBARDISPLAYON value should be set to 0. -#### Q47. In a complex drawing, it is sometimes difficult to select the geometry you wish to modify. You might want to move, scale, or rotate geometry and make sure the appropriate objects are selected. You can do this with window and crossing selections, but what other selection method can make this easier? +#### Q46. In a complex drawing, it is sometimes difficult to select the geometry you wish to modify. You might want to move, scale, or rotate geometry and make sure the appropriate objects are selected. You can do this with window and crossing selections, but what other selection method can make this easier? - [x] SELECT (S) - [ ] LAST (L) - [ ] PREVIOUS (P) - [ ] FENCE (F) -#### Q48. When working with layers in your drawings, you may regularly go to the Layer drop- down menu on the Layers panel on the Home tab of the ribbon. Which part of the AutoCAD interface can you customize to allow the Layer drop-down menu to be available regardless of which ribbon tab you are currently using? +#### Q47. When working with layers in your drawings, you may regularly go to the Layer drop- down menu on the Layers panel on the Home tab of the ribbon. Which part of the AutoCAD interface can you customize to allow the Layer drop-down menu to be available regardless of which ribbon tab you are currently using? - [ ] the status bar - [ ] the navigation bar - [ ] the Quick Access toolbar (QAT) - [ ] the info bar -#### Q49. When drafting with object snaps and object snap tracking, what other drafting setting can you use to set object snap tracking points? +#### Q48. When drafting with object snaps and object snap tracking, what other drafting setting can you use to set object snap tracking points? - [x] Polar Tracking (POLAR) - [ ] Grid (GRID) - [ ] Dynamic Input (DYNMODE) - [ ] Snap (SNAP) -#### Q50. When using the MOVE or COPY command, what is the first point that you must select? +#### Q49. When using the MOVE or COPY command, what is the first point that you must select? - [ ] a displacement point - [ ] an endpoint - [x] a base point - [ ] a midpointa -#### Q51. When using the OFFSET command, you specify an offset distance and then select the object you want to offset. How do you then specify which side of the original object to offset? +#### Q50. When using the OFFSET command, you specify an offset distance and then select the object you want to offset. How do you then specify which side of the original object to offset? - [ ] Use the Tab key to alternate which side you want to offset to. Then press Enter (Windows) or Return (Mac) to confirm. - [ ] Move the cursor to the appropriate side of the original object and the OFFSET command automatically offsets that side. - [ ] Right-click and use options on the shortcut menu. - [x] Click to the side of the original object where you want the offset object to appear. -#### Q52. When using the ELLIPSE command with the Axis, End, and Center methods, how many axes are needed to form an ellipse? +#### Q51. When using the ELLIPSE command with the Axis, End, and Center methods, how many axes are needed to form an ellipse? - [ ] eight - [x] two - [ ] six - [ ] four -#### Q53. When hatching in a drawing with the Hatch (HATCH) command and the pick points selection method, what hatch setting needs to be switched OFF in order to make sure that all hatch boundaries selected form one hatch object? +#### Q52. When hatching in a drawing with the Hatch (HATCH) command and the pick points selection method, what hatch setting needs to be switched OFF in order to make sure that all hatch boundaries selected form one hatch object? - [ ] Create Separate Hatches - [ ] Associative Boundaries - [ ] Set the HATCHMULTIPLE variable to 0 (OFF). - [ ] Set the HATCHMULTIPLE variable to 1 (ON). -#### Q54. AutoCAD allows you to select individual objects cumulatively to create a selection set. You can remove individual objects from that selection by using a mouse click combined with which keystroke? +#### Q53. AutoCAD allows you to select individual objects cumulatively to create a selection set. You can remove individual objects from that selection by using a mouse click combined with which keystroke? - [ ] Tab - [ ] Ctrl (Windows) or Command (Mac) - [ ] Alt (Windows) or Option (Mac) - [x] Shift -#### Q55. Multileaders are defined with a multileader style, which can have text (MTEXT), a block, or nothing added to the multileader line coming from the arrowhead. When using the block option for multileader content, default blocks are available with attributes for easy annotation; a user block can also be defined. Where does AutoCAD first look for the user blocks that can be used with multileaders? +#### Q54. Multileaders are defined with a multileader style, which can have text (MTEXT), a block, or nothing added to the multileader line coming from the arrowhead. When using the block option for multileader content, default blocks are available with attributes for easy annotation; a user block can also be defined. Where does AutoCAD first look for the user blocks that can be used with multileaders? - [ ] in a known server folder path - [ ] in a known cloud server folder path - [x] in the drawing folder - [ ] in the drawing file -#### Q56. When using the Edit Polyline (PEDIT) command, there may be occasions when you want to join line segments that have a gap. The PEDIT command can close these gaps automatically using a specific workflow. What is that workflow? +#### Q55. When using the Edit Polyline (PEDIT) command, there may be occasions when you want to join line segments that have a gap. The PEDIT command can close these gaps automatically using a specific workflow. What is that workflow? - [ ] When in the PEDIT command, select multiple lines to convert; then when selecting the Join option, you are prompted for a GAPDIST variable. This is the minimum gap distance for automatic joining. - [x] When in the PEDIT command, select multiple lines to convert; then when selecting the Join option, you are prompted for a FUZZ DISTANCE. This is the minimum gap distance for automatic joining. - [ ] When in the PEDIT command, select multiple lines to convert; then when selecting the Join option, you are prompted for a MINIGAP DISTANCE. This is the minimum gap distance for automatic joining. - [ ] When in the PEDIT command, select multiple lines to convert; then when selecting the Join option, you are prompted for a MIN GAP DISTANCE. This is the minimum gap distance for automatic joining. -#### Q57. When creating a block with attributes, why should you use underscores between words in the attribute tag? +#### Q56. When creating a block with attributes, why should you use underscores between words in the attribute tag? - [ ] Attribute tags must have an underscore to be recognized for data extraction. - [ ] Attribute tags do not allow spaces. - [x] Attribute tags need an underscore to be recognized by the BLOCK command. - [ ] Attribute tags must have an underscore in them. -#### Q58. To insert a table in a drawing, you use the TABLE command. What is a prerequisite to control a table's appearance before inserting a table into a drawing? +#### Q57. To insert a table in a drawing, you use the TABLE command. What is a prerequisite to control a table's appearance before inserting a table into a drawing? - [ ] a table dimension style - [x] a table style - [ ] a table layer - [ ] a table linetype -#### Q59. When plotting multiple layouts, you can use the Batch Plotting (PUBLISH) command. What type of file can be saved to retain the batch plotting settings? +#### Q58. When plotting multiple layouts, you can use the Batch Plotting (PUBLISH) command. What type of file can be saved to retain the batch plotting settings? - [ ] Batch Plotting Description (BPD) - [ ] file Drawing Publishing Description (DPD) - [x] file Batch Sheet Description (BSD) - [ ] file Drawing Set Description (DSD) file -#### Q60. To create clean, professional plots of your drawings, which object should be set to not plot in the Layer Properties Manager palette? +#### Q59. To create clean, professional plots of your drawings, which object should be set to not plot in the Layer Properties Manager palette? - [ ] dimensions - [x] viewports - [ ] blocks - [ ] text -#### Q61. Selection cycling can be used to select an object that shares concurrent geometry with another object. Which AutoCAD system variable needs to be used, and what value needs to be set, to ensure that selection cycling is switched on and the dialog box appears? +#### Q60. Selection cycling can be used to select an object that shares concurrent geometry with another object. Which AutoCAD system variable needs to be used, and what value needs to be set, to ensure that selection cycling is switched on and the dialog box appears? - [ ] SELECTIONCYCLING = 0 - [x] SELECTIONCYCLING = 2 - [ ] SELECTIONCYCLING = 1 - [ ] Press Ctrl+W (Windows) or Command+W (Mac). -#### Q62. Splines use the NURBS algorithm in AutoCAD. What does NURBS stand for? +#### Q61. Splines use the NURBS algorithm in AutoCAD. What does NURBS stand for? - [ ] Non-Unified Rotated Bend Spline - [ ] Non-United Rotational Bend Spline - [x] Non-Uniform Rational Basis Spline - [ ] Not Uniform Rotational Build Spline -#### Q63. You can freeze layers in a current viewport in a layout tab. This is done by activating the viewport and selecting the layers to be frozen either in the Layer drop-down menu or the Layer Properties Manager. Which layer setting makes sure that layers are automatically frozen in any new viewports? +#### Q62. You can freeze layers in a current viewport in a layout tab. This is done by activating the viewport and selecting the layers to be frozen either in the Layer drop-down menu or the Layer Properties Manager. Which layer setting makes sure that layers are automatically frozen in any new viewports? - [ ] VP Freeze - [x] Freeze in Viewport - [ ] Freeze in New Viewport - [ ] New VP Freeze -#### Q64. When using multiline text in a drawing, you can import text from other applications using the Import Text command. Application-neutral text, TXT format, can be imported this way. What other types of text that preserve formatting and fonts can you import? +#### Q63. When using multiline text in a drawing, you can import text from other applications using the Import Text command. Application-neutral text, TXT format, can be imported this way. What other types of text that preserve formatting and fonts can you import? - [ ] Simplex (SHX) text - [ ] Microsoft Word text in a TrueType (TTF) font - [x] Rich Text Format (RTF) text - [ ] any other type of text apart from TXT text -#### Q65. When using the MOVE command from the right-click shortcut menu, why are you automatically asked to select a base point for your move? +#### Q64. When using the MOVE command from the right-click shortcut menu, why are you automatically asked to select a base point for your move? - [ ] The object(s) is selected automatically after the base point is selected. - [ ] The object(s) automatically associates into a group once you have selected the base point. - [ ] You are asked to select the object(s) after the base point is selected. - [x] You have already selected the object(s) to move. -#### Q66. You can use Polar Tracking to rotate objects when using the ROTATE command. What would you need to set to control the angle? +#### Q65. You can use Polar Tracking to rotate objects when using the ROTATE command. What would you need to set to control the angle? - [ ] Set the Grid and Snap settings. - [ ] Set up the running object snaps. - [x] Set the Polar Tracking increment angle. - [ ] Set up object snap tracking. -#### Q67. When working with annotative text styles and dimension styles in model space, what two values must match for the annotative annotation to display in the corresponding viewports in the layout tab? +#### Q66. When working with annotative text styles and dimension styles in model space, what two values must match for the annotative annotation to display in the corresponding viewports in the layout tab? - [ ] annotation scale and linetype scale - [ ] linetype scale and viewport scale - [x] annotation scale and viewport scale - [ ] insertion scale and annotation scale -#### Q68. The SCALE command needs a scale factor in order to function. The value has to be a positive integer. If you use a scale factor of 2, what does this value represent? +#### Q67. The SCALE command needs a scale factor in order to function. The value has to be a positive integer. If you use a scale factor of 2, what does this value represent? - [ ] two times bigger in the X direction (200% - [x] twice as big (200%) - [ ] two percent bigger (2%) - [ ] half as big (50%) -#### Q69. Which keys can you press to repeat your last-used AutoCAD command? +#### Q68. Which keys can you press to repeat your last-used AutoCAD command? - [ ] the Page Up key or the Page Down key - [ ] the R key or the C key - [ ] the Tab key - [x] the Spacebar or the Enter (Windows) or Return (Mac) key -#### Q70. When using the Polyline (PLINE) command to draw an arrowhead, what polyline properties do you need to use? +#### Q69. When using the Polyline (PLINE) command to draw an arrowhead, what polyline properties do you need to use? - [ ] the Halfwidth setting - [x] starting width and ending widths - [ ] polyline start and polyline end - [ ] the START and END variables in the PLINE command -#### Q71. Where do you perform the majority of drawing tasks in AutoCAD? +#### Q70. Where do you perform the majority of drawing tasks in AutoCAD? - [ ] innerspace - [ ] paper space - [ ] layout space - [x] model space -#### Q72. To plot the same drawing with the same settings each time, what needs to be set up in AutoCAD? +#### Q71. To plot the same drawing with the same settings each time, what needs to be set up in AutoCAD? - [ ] the Output tab - [ ] the Plot dialog boxt - [ ] batch plotting - [x] Page Setup Manager (Windows) or Page Setup (Mac) -#### Q73. Using the Array command, you have the option to create an associative array. What does this mean? +#### Q72. Using the Array command, you have the option to create an associative array. What does this mean? - [ ] When dimensioning an array, the dimensions displayed are associative. - [x] The arrayed objects becomes a single entity and, when selected, display as a single entity. - [ ] The arrayed objects become associated to the X and Y coordinates used for the array. - [ ] The array is associated to the linetype scale. -#### Q74. When drawing a Start, Center, End arc, which key do you press to draw the arc in a clockwise direction? +#### Q73. When drawing a Start, Center, End arc, which key do you press to draw the arc in a clockwise direction? - [ ] C (clockwise) - [ ] Alt - [ ] D (direction) - [x] Ctrl -#### Q75. When using the POLYGON command in AutoCAD, you can create an inscribed polygon and a circumscribed polygon. What other type of polygon is available? +#### Q74. When using the POLYGON command in AutoCAD, you can create an inscribed polygon and a circumscribed polygon. What other type of polygon is available? ![q75](images/q75_autocad.png) @@ -559,7 +552,7 @@ - [ ] line polygon - [x] edge polygon -#### Q76. When using blocks in a drawing, a selected block displays only one grip: the insertion point. How would you get a block to display all of its associated grips? +#### Q75. When using blocks in a drawing, a selected block displays only one grip: the insertion point. How would you get a block to display all of its associated grips? ![q76](images/q76_autocad.png) @@ -568,14 +561,14 @@ - [ ] Change the GRIPBLOCK system variable to 0. - [ ] Select the block and change it in the right-click shortcut menu. -#### Q77. You create a layer to show an object's hidden lines, which should be dashed. Which layer property controls if the lines are continuous or dashed? +#### Q76. You create a layer to show an object's hidden lines, which should be dashed. Which layer property controls if the lines are continuous or dashed? - [ ] Linesize - [ ] Linestyle - [ ] Lineweight - [ ] Linetype -#### Q74. You selected multiple items and four of the items where not supposed to be selected. How do you deselect them? +#### Q77. You selected multiple items and four of the items where not supposed to be selected. How do you deselect them? - [ ] Hold down Alt (Windows) or Option (Mac) and select the four items. - [ ] Hold down CTRL (Windows) or Command (Mac) and select the four items. diff --git a/aws/aws-quiz.md b/aws/aws-quiz.md index 9d487c7121..d872ba82de 100755 --- a/aws/aws-quiz.md +++ b/aws/aws-quiz.md @@ -499,14 +499,14 @@ aws ec2 associate-address --instance-id i-8b953 --allocation-id eipalloc-02d021a - [ ] creates a highly available database cluster that will host your database cluster in at least two regions - [ ] creates another database instance in another region and keeps a hot standby active to failover to during regional failures -#### Q62. What is the best EC2 instance class for a server that continuously has a heavy CPU load? +#### Q63. What is the best EC2 instance class for a server that continuously has a heavy CPU load? - [x] C5 - [ ] T2 - [ ] R5 - [ ] H1 -#### Q63. Your application performance management (APM) system can read the status of your CloudWatch monitors and perform scripted actions. When the CloudWatch metric StatusCheckFailed enters a failed state (a value of 1), you would like your APM to automatically repair the instance. Which script do you use? +#### Q64. Your application performance management (APM) system can read the status of your CloudWatch monitors and perform scripted actions. When the CloudWatch metric StatusCheckFailed enters a failed state (a value of 1), you would like your APM to automatically repair the instance. Which script do you use? - [x] A @@ -536,7 +536,7 @@ aws ec2 reboot-instances --instance-ids i-0b263919b6498b123 aws ec2 start-instances --instance-ids i-0b263919b6498b123 ``` -#### Q64. What is wrong with the third incoming security group rule, which allows all traffic from sg-269afc5e to go to an Ubuntu EC2 instance configured as a web server? +#### Q65. What is wrong with the third incoming security group rule, which allows all traffic from sg-269afc5e to go to an Ubuntu EC2 instance configured as a web server? - [ ] All traffic on all ports is being denied into this instance, which overwrites the HTTP rule and makes it redundant. - [x] The instance was launched with the default security group, but there is no way for an administrator to SSH into the instance. @@ -546,7 +546,7 @@ aws ec2 start-instances --instance-ids i-0b263919b6498b123 - [ ] All traffic on all ports are allowed into this instance. This exposes the instance to all public internet traffic and overwrites the incoming HTTP rule. -#### Q65. You have a VPC that has a public and private subnet. There is a NAT gateway in the public subnet that allows instances in the private subnet to access the internet without having public exposure outside of the VPC. What should the routing tables be for the private subnet? +#### Q66. You have a VPC that has a public and private subnet. There is a NAT gateway in the public subnet that allows instances in the private subnet to access the internet without having public exposure outside of the VPC. What should the routing tables be for the private subnet? ![image](images/003.png) @@ -578,14 +578,14 @@ Destination 1: 10.0.0.0/16, Target 1: vpc-12bd09ac2; Destination 2: 0.0.0.0/0, Target 2: igw-b2ff47d6 ``` -#### Q66. To comply with auditing requirements of some compliance standards, which AWS tool can be enabled to maintain an audit log of access and changes to your AWS infrastructure? +#### Q67. To comply with auditing requirements of some compliance standards, which AWS tool can be enabled to maintain an audit log of access and changes to your AWS infrastructure? - [x] CloudTrail - [ ] CloudWatch - [ ] AWS Audit and Compliance Tool - [ ] GuardDuty -#### Q67. You have an application that generates long-running reports, stores them in an S3 bucket, and then emails the user who requested the report with a link to download it. What is the best practice for storing the report data in S3? +#### Q68. You have an application that generates long-running reports, stores them in an S3 bucket, and then emails the user who requested the report with a link to download it. What is the best practice for storing the report data in S3? - [ ] Create a public S3 bucket. When your application creates the report object in S3, generate two randomly generated long folder names and place the file within the deepest subfolder. Set the retention policy on the object to one hour and email this link to @@ -600,21 +600,21 @@ Destination 2: 0.0.0.0/0, Target 2: igw-b2ff47d6 session or force the user to log in. Set the report object in S3 to public. Show the user a "Download" button in the browser that links to the public object. -#### Q68. When sending a large volume of email through SES, what is the most important set of metrics to monitor? +#### Q69. When sending a large volume of email through SES, what is the most important set of metrics to monitor? - [x] your complaint and bounce rates - [ ] opens and clicks - [ ] clicks and deliveries - [ ] sending volume over the past 15 minutes and over one day to watch for billing spikes -#### Q69. You are going to host an application that uses a MySQL database. Which database should you select if you don't want to manage scaling or database administration tasks? +#### Q70. You are going to host an application that uses a MySQL database. Which database should you select if you don't want to manage scaling or database administration tasks? - [ ] Launch an AMI image from the marketplace containing a preconfigured MySQL server. - [x] Aurora - [ ] RDS for MySQL - [ ] Redshift -#### Q70. A form in web application is sending sign-up data to "http://example.com/signup/new?source=web" and this data needs to be handled by an ECS service behind Application Load Balancer (ALB). Which ALB rule will route this request? +#### Q71. A form in web application is sending sign-up data to "http://example.com/signup/new?source=web" and this data needs to be handled by an ECS service behind Application Load Balancer (ALB). Which ALB rule will route this request? ![image](images/004.png) @@ -641,14 +641,14 @@ Then - [ ] C ...One more with POST - [x] D ...Only one with Get -#### Q71. Which AWS service can host the web application server for a WordPress site? +#### Q72. Which AWS service can host the web application server for a WordPress site? - [ ] S3 - [x] Elastic BeanStalk - [ ] ElasticCache - [ ] CloudFront -#### Q72. What does the following AWS CLI `create-service` command for ECS do? +#### Q73. What does the following AWS CLI `create-service` command for ECS do? ``` aws ecs create-service \ @@ -666,28 +666,28 @@ aws ecs create-service \ - [x] launches two containers onto Fargate into the existing **production** cluster using the **rest-api** task definition - [ ] creates a service definition for the **rest-api** task; put two containers on the production cluster when launched **ecs-cli** up command -#### Q73. You want to make your public API quickly accessible from all regions. What is the best way to do this? +#### Q74. You want to make your public API quickly accessible from all regions. What is the best way to do this? - [ ] Create a single API gateway endpoint in a central region. - [ ] Create a private API gateway endpoint for each region. - [ ] Create a regional API gateway endpoint for each region. - [x] Create edge-optimized API gateway endpoints and deploy them to a CloudFront network. -#### Q74. What type of data solution should you use for data coming from nonrelational and relational data from IoT devices, websites, mobile apps, etc.? +#### Q75. What type of data solution should you use for data coming from nonrelational and relational data from IoT devices, websites, mobile apps, etc.? - [ ] Amazon DynamoDB - [x] AWS Lake Formation - [ ] Amazon Redshift - [ ] Amazon Aurora -#### Q75. You have an analytics suite that produces reports about the usage patterns of your web application. After completing your migration to AWS and using Application Load Balancer to balance the load across your web application, your marketing department noticed that location-based reports on the web traffic only show traffic originating from a single location. What is the problem? +#### Q76. You have an analytics suite that produces reports about the usage patterns of your web application. After completing your migration to AWS and using Application Load Balancer to balance the load across your web application, your marketing department noticed that location-based reports on the web traffic only show traffic originating from a single location. What is the problem? - [ ] Use a Classic Load Balancer, not Application Load Balancer. - [x] Application Load Balancer does not preserve the original source IP address. The analytics software needs to be configured to look at the 'X-Forwarded-For' HTTP request header for the correct source IP address. - [ ] Application Load Balencer has to be configured to retain the source IP address of the traffic it is forwarding. Create a policy that enables ProxyProtocol support and attach it to the ALB using the AWS CLI. - [ ] Configure the web server EC2 instances to only have private IP addresses. The public IP addresses of the instances are being recorded into the web server logs, bug only ALB should have a public interface and it will route traffic to instances via the private interface. -#### Q76. What is `not` a default user of a common Linux instance launched from an AMI? +#### Q77. What is `not` a default user of a common Linux instance launched from an AMI? - [ ] ubuntu - [x] system-user @@ -696,7 +696,7 @@ aws ecs create-service \ [Reference](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connection-prereqs.html) -#### Q77. You have replicated the infrastructure that serves the backend API for your web application across regions to better serve your customers in the US and the EU. What is the best way to direct your web application at the nearest data center? +#### Q78. You have replicated the infrastructure that serves the backend API for your web application across regions to better serve your customers in the US and the EU. What is the best way to direct your web application at the nearest data center? - [x] Use Route 53 with geolocation lookups to direct traffic between the two regions. - [ ] Create a WAF redirection rule that redirects traffic at the EU data center if the source IP comes from certain countries. @@ -705,7 +705,7 @@ aws ecs create-service \ [Reference](https://aws.amazon.com/premiumsupport/knowledge-center/geolocation-routing-policy/) -#### Q78. You have recently launched your new web product and are expecting 1,000 new users each month. However, you have just received word from the CEO that your product will be featured at an upcoming conference covered by several media outlets, and this could lead to 20,000 new users over the next week. How do you plan for a sudden increase in traffic? +#### Q79. You have recently launched your new web product and are expecting 1,000 new users each month. However, you have just received word from the CEO that your product will be featured at an upcoming conference covered by several media outlets, and this could lead to 20,000 new users over the next week. How do you plan for a sudden increase in traffic? - [ ] Replicate your infrastructure across two regions. You will harden the application to a regional failure and you will double your capacity. - [ ] Take an AMI image of a front-end server to save your configuration and then add more servers to your cluster pror to the conference. Remove the servers from the cluster after the spike from the conference. @@ -714,7 +714,7 @@ aws ecs create-service \ [Reference](https://aws.amazon.com/ec2/autoscaling/) -#### Q79. How do you connect via SSH to a Linux EC2 instance with an EBS volume if you lost your key pair? +#### Q80. How do you connect via SSH to a Linux EC2 instance with an EBS volume if you lost your key pair? - [ ] Stop the instance and create an AMI image. Launch the image using a new key pair. - [ ] Contact AWS support. A support specialist can remotely restore access to your instance and send you a new key pair. @@ -723,7 +723,7 @@ aws ecs create-service \ [Reference](https://medium.com/the-10x-dev/how-to-recover-access-login-to-your-aws-instance-after-losing-your-pem-keypair-file-e0d31bae2da4) -#### Q80. Your on-premise data center (172.16.128.0/24) is already connected to your AWS VPC (10.0.0.0/16) by a customer gateway. You wish to connect another data center for a company you just acquired (172.16.130.0/24) to your VPC as shown in the image. What is the best way to create this link? +#### Q81. Your on-premise data center (172.16.128.0/24) is already connected to your AWS VPC (10.0.0.0/16) by a customer gateway. You wish to connect another data center for a company you just acquired (172.16.130.0/24) to your VPC as shown in the image. What is the best way to create this link? ![image](images/Q80.png) @@ -732,7 +732,7 @@ aws ecs create-service \ - [x] Create a second virtual private gateway (VPG) and attach it to the VPC. Create a customer gateway for the new virtual private gateway and use your VPN client at your second data center to establish a connection to the VPG. - [ ] You can not have more than one customer gateway per VPC, so the proposed solution will not work. Create a second VPC with a virtual private gateway and a customer gateway. Bridge the two VPCs using VPC peering. -#### Q81. You are migrating a 200 GB database from an on-premise SQL Server to RDS for SQL Server. The database needs to have minimal downtime during the migration. What is the best practice for migrating this database? +#### Q82. You are migrating a 200 GB database from an on-premise SQL Server to RDS for SQL Server. The database needs to have minimal downtime during the migration. What is the best practice for migrating this database? - [ ] Close all existing connections to the SQL Server database and use Database Migration Service to transfer the data to RDS. - [x] Use Database Migration Service to replicate the database to RDS and keep it in sync during the migration. Repoint your applications to use the new RDS endpoint. @@ -741,7 +741,7 @@ aws ecs create-service \ [Reference](https://aws.amazon.com/dms/) -#### Q82. You have enabled Multi-Factor Authentication (MFA) for your AWS root account and you lost your MFA device. What do you need to do to recover access to your account? +#### Q83. You have enabled Multi-Factor Authentication (MFA) for your AWS root account and you lost your MFA device. What do you need to do to recover access to your account? - [ ] You cannot recover access to your AWS root account. Contact AWS support. - [x] An email will be sent to the email address on file to verify ownership of the account. You will then need to provide the phone number on the account. @@ -750,7 +750,7 @@ aws ecs create-service \ [Reference](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa_lost-or-broken.html) -#### Q83. How do you assign an Elastic IP to several EC2 instances? +#### Q84. How do you assign an Elastic IP to several EC2 instances? - [ ] In the VPC dashboard, click Elastic IPs. Select the Elastic IP and click Associate Address. Select each EC2 instance you wish to assign this address to. - [ ] In the EC2 dashboard, click on EC2 instance. Under Actions, select networking > Manage IP Addresses. click to add a new IP address and type in the address of the Elastic IP. Repeat the process for each EC2 instance you want to assign this Elastic IP to. @@ -759,14 +759,14 @@ aws ecs create-service \ [Reference](https://stackoverflow.com/questions/54742522/assign-multiple-ec2-instances-to-one-elastic-ip) -#### Q84. You created a VPC that has a public subnet and a private subnet. A web server was placed in the public subnet and a database server was placed in the private subnet. The web server is able to connect to the database server; however, the database server at 10.0.1.2 is unable to get software updates. What is the cause of this issue? +#### Q85. You created a VPC that has a public subnet and a private subnet. A web server was placed in the public subnet and a database server was placed in the private subnet. The web server is able to connect to the database server; however, the database server at 10.0.1.2 is unable to get software updates. What is the cause of this issue? - [x] There is no NAT gateway for the private subnet, so the database server has no routes that give it public internet access to download software updates. - [ ] The database server needs to be assigned a public address from the pool, or assigned an Elastic IP similar to the instance 10.0.0.2. - [ ] The router is not configured properly on the VPC. Add a route to route table for the VPC that routes all traffic for 0.0.0.0/0 to the ID of the internet gateway. - [ ] There is no egress-only internet gateway attached to the private subnet of the VPC. -#### Q85. Benefit of using S3 Glacier? +#### Q86. Benefit of using S3 Glacier? - [ ] access time - [ ] store for small duration diff --git a/bash/bash-quiz.md b/bash/bash-quiz.md index 0a566220ff..ba997ac9b6 100755 --- a/bash/bash-quiz.md +++ b/bash/bash-quiz.md @@ -661,30 +661,7 @@ echo "\${VAR//man/rolling}" - [ ] $PROGRAM - [ ] $PATHS -#### Q55. What does this command sequence do? - -```bash -cat >notes - -``` - -- [ ] It creates an empty file called "notes" and then exits. -- [x] It accepts text from the standard input and places it in the "notes" file. -- [ ] It appends text to an existing file called "notes." -- [ ] It outputs the contents of the "notes" file to the screen, and then deletes it. - -#### Q56. What is the output of this code? - -```bash -VAR="This old man came rolling" -echo "${VAR//man/rolling}" -``` - -- [ ] This old man came man -- [ ] This old man came rolling -- [x] This old rolling came rolling -- [ ] This old came - -#### Q57. What statement would you use to print this in the console? +#### Q55. What statement would you use to print this in the console? `Shall we play a game? yes\no` @@ -693,7 +670,7 @@ echo "${VAR//man/rolling}" - [x] `echo "Shall we play a game? yes\\no"` - [ ] `echo "Shall we play a game? yes\no"` -#### Q58. Given a directory with these seven files, what would remain after executing these commands? +#### Q56. Given a directory with these seven files, what would remain after executing these commands? ```bash archive.tar @@ -743,7 +720,7 @@ image2.gif image2.jpg ``` -#### Q59. The code below seems to work and outputs "8 is greater than 5". However, what unexpected result will tell you it is not functioning properly? +#### Q57. The code below seems to work and outputs "8 is greater than 5". However, what unexpected result will tell you it is not functioning properly? ```bash #!/bin/bash @@ -758,7 +735,7 @@ fi - [x] There will be a file in the current directory named 5. - [ ] The variable $var is not quoted, which will lead to word splitting. This script will fail with a "unary operator expected" message if you change the value of -#### Q60. What is the result of this script? +#### Q58. What is the result of this script? ![question](images/Q60/question.png) @@ -767,14 +744,14 @@ fi - [x] It removes all files in the current directory. - [ ] It removes all files except those in the 'foo' directory. -#### Q61. Which one is true? +#### Q59. Which one is true? - [x] SELinux policy rules are checked after DAC rules. - [ ] SELinux policy rules are checked before DAC rules - [ ] SELinux policy rules are never checked after DAC rules. - [ ] None of these -#### Q62. Which does the below command do? +#### Q60. Which does the below command do? ```bash w @@ -785,7 +762,7 @@ w - [ ] It displays information about the users currently on the another machine. - [ ] None of these -#### Q63. Which sed options should you use to change the second-to-last instance of variable to rock so it would read: +#### Q61. Which sed options should you use to change the second-to-last instance of variable to rock so it would read: A constant is a variable that is a rock that isn't variable @@ -799,42 +776,42 @@ echo "$var" | sed _____ - [ ] s/variable/rock/g' - [ ] s/(.*\)variable\(.*variable\)/\1rock\2/' -#### Q64. To make a Bash script named script.sh executable, what should you run? +#### Q62. To make a Bash script named script.sh executable, what should you run? - [ ] exec script.sh - [x] chmod +x script.sh - [ ] bash script.sh - [ ] source script.sh -#### Q65. How can you create a shared terminal in a Bash shell? +#### Q63. How can you create a shared terminal in a Bash shell? - [x] screen - [ ] screen -X - [ ] screen --shared - [ ] terminal -shared -#### Q66. Wich operator sends the output of ls to a file for later use? +#### Q64. Wich operator sends the output of ls to a file for later use? - [ ] ls < filelist.txt - [ ] ls ¦ filelist.txt - [x] ls > filelist.txt - [ ] ls - filelist.txt -#### Q67. When comparing items with case, what statement indicates an end to the evaluation block? +#### Q65. When comparing items with case, what statement indicates an end to the evaluation block? - [ ] stop - [x] esac - [ ] done - [ ] exit -#### Q68. To run a group of commands without spawning a subshell, which syntax would you use? +#### Q66. To run a group of commands without spawning a subshell, which syntax would you use? - [ ] sh command1; command2 - [ ] { command1; command2; } - [ ] (( command1; command2 )) - [x] command1; command2 ) -#### Q69. What are the results of the command with a user named jon? +#### Q67. What are the results of the command with a user named jon? ```bash echo 'Hello, $(whoami)!' @@ -845,35 +822,35 @@ echo 'Hello, $(whoami)!' - [x] Hello, $(whoami)! - [ ] Hello, whoami! -#### Q70. How can you copy a directory to another system with compression? +#### Q68. How can you copy a directory to another system with compression? - [ ] tar -ssh user@192.158.1.1 /bin/newfile - [x] tar cvzf - /wwwdata | ssh root@192.168.1.201 "dd of=/backup/wwwdata.tar.gz" - [ ] You can't compress the stream - [ ] scp -r directory user@192.168.1.1:/tmp -#### Q71. To assign the command `ls -lah` to the shortcut command `lh`, what command should you use? +#### Q69. To assign the command `ls -lah` to the shortcut command `lh`, what command should you use? - [x] alias lh='ls -lah' - [ ] link lh='ls -lah' - [ ] alias 'ls -lah'=lh - [ ] lh | ls -lah -#### Q72. Which statement will print all of the fully qualified .cvs files in the home directory or subdirectories while not displaying any errors? +#### Q70. Which statement will print all of the fully qualified .cvs files in the home directory or subdirectories while not displaying any errors? - [ ] find $USER_DIR -name "\*.csv" 2>/dev/null - [ ] find $HOME -name "\*.csv" 1>/dev/null - [x] find $HOME -name "\*.csv" 2>/dev/null - [ ] find HOME -name "\*.csv" 1>/dev/null -#### Q73. In Bash, what does a # at the end of the default prompt string indicate? +#### Q71. In Bash, what does a # at the end of the default prompt string indicate? - [x] that the user is acting as root - [ ] that the current working directory is the root of the file system - [ ] that there are updates for the system available - [ ] that the user is unprivileged -#### Q74. What will be the output of this command? +#### Q72. What will be the output of this command? ```bash $ ls -l @@ -920,7 +897,7 @@ filec.txt The caret (`^`) symbol here negates matches inside the bracket. [Reference](https://tldp.org/LDP/abs/html/globbingref.html) -#### Q75. What is the output of this command sequence? +#### Q73. What is the output of this command sequence? ```bash cat <&- See [I/O Redirection](https://tldp.org/LDP/abs/html/io-redirection.html) -#### Q77. Which variable contains the process ID (PID) of the script while it's running? +#### Q75. Which variable contains the process ID (PID) of the script while it's running? - [ ] $ID - [ ] $# diff --git a/c#/c-sharp-quiz.md b/c#/c-sharp-quiz.md index 263ddafdc3..a75ac6e147 100755 --- a/c#/c-sharp-quiz.md +++ b/c#/c-sharp-quiz.md @@ -442,16 +442,7 @@ public static void Main(string[] args) [Official documentation: Abstract and Sealed Classes and Class Members](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/abstract-and-sealed-classes-and-class-members) -#### Q40. What is the correct syntax for a new generic list of strings named contacts? (similar to Q26) - -- [x] `var contacts = new List();` -- [ ] `var contacts = new List(string);` -- [ ] `public List contacts = new List();` -- [ ] `public List(string names) contacts = new List(string names);` - -[Official documentation: List](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1?view=net-5.0) - -#### Q41. What is the difference between non-static and static classes? +#### Q40. What is the difference between non-static and static classes? - [x] non-static classes need to be initialized before use, while static classes do not - [ ] non-static classes are accessible only from an interface while static classes are accessible from anywhere @@ -462,7 +453,7 @@ public static void Main(string[] args) [Official documentation: Static Constructors](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/static-constructors) -#### Q42. Which characteristic prevents this code from compiling? +#### Q41. Which characteristic prevents this code from compiling? `public int age="28"` @@ -473,7 +464,7 @@ public static void Main(string[] args) [c-sharpcorner: Type Safety in .NET](https://www.c-sharpcorner.com/UploadFile/vikie4u/type-safety-in-net/) -#### Q43. How would you serialize this class? +#### Q42. How would you serialize this class? `public class User {}` @@ -484,7 +475,7 @@ public static void Main(string[] args) [Official documentation: SerializableAttribute Class](https://docs.microsoft.com/en-us/dotnet/api/system.serializableattribute?view=net-5.0) -#### Q44. How would you write a delegate named ResultCallback with an int parameter named responseCode? +#### Q43. How would you write a delegate named ResultCallback with an int parameter named responseCode? - [ ] public delegate ResultCallback(int responseCode); - [ ] public delegate void ResultCallback<(int) responseCode>; @@ -493,7 +484,7 @@ public static void Main(string[] args) [Official documentation: Delegates](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/delegates/) -#### Q45. What is the difference between a static and non-static method? +#### Q44. What is the difference between a static and non-static method? - [ ] non-static methods always need to have a void return type - [ ] non-static methods do not have access to static member variables @@ -502,7 +493,7 @@ public static void Main(string[] args) [Official documentation: Static Members](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/static-classes-and-static-class-members#static-members) -#### Q46. What is the correct way to write an event named apiResult based on a delegate named ResultCallback? +#### Q45. What is the correct way to write an event named apiResult based on a delegate named ResultCallback? - [ ] public void event ResultCallback apiResult; - [ ] public event ResultCallback(() -> apiResult); @@ -511,7 +502,7 @@ public static void Main(string[] args) [Official documentation: Introduction to events](https://docs.microsoft.com/en-us/dotnet/csharp/events-overview) -#### Q47. When will the code inside finally block be executed in a try-catch statement? +#### Q46. When will the code inside finally block be executed in a try-catch statement? - [ ] if there is an error, it won't execute at all - [ ] between the try and catch blocks @@ -520,14 +511,14 @@ public static void Main(string[] args) [Official documentation: try-catch](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/try-catch) -#### Q48. What method correctly extends the string class? +#### Q47. What method correctly extends the string class? - [x] public static string IsvalidName(this string i, string value) {} - [ ] public static void IsvalidName(this string i, string value) {} - [ ] public string IsvalidName(this string i, string value) {} - [ ] public void IsvalidName(this string i, string value) {} -#### Q49. How are C# classses limited? +#### Q48. How are C# classses limited? - [x] They do not support multiple inheritance. - [ ] They support multiple inheritance. @@ -536,7 +527,7 @@ public static void Main(string[] args) [Official documentation: Class inheritance](https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/types/classes#class-inheritance) -#### Q50. What function do namespaces perform? +#### Q49. What function do namespaces perform? - [ ] Namespaces calculate code coverage at runtime. - [ ] Namespaces compile application code together at compile time. @@ -545,7 +536,7 @@ public static void Main(string[] args) [Official documentation: namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace) -#### Q51. What is the correct way to write a public property with a private backing field? +#### Q50. What is the correct way to write a public property with a private backing field? - [ ] @@ -585,7 +576,7 @@ public int Password [Official documentation: Using Properties](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/using-properties) -#### Q52. What is a thread pool? +#### Q51. What is a thread pool? - [ ] a collection of synchronous methods created during initialization that cannot be reused - [x] a collection of threads created during initialization that can be reused @@ -594,16 +585,7 @@ public int Password [Official documentation: ThreadPool Class](https://docs.microsoft.com/en-us/dotnet/api/system.threading.threadpool?view=net-5.0) -#### Q53. What is the most accurate description of a regular expression? - -- [ ] A regular expressions allows a variable to be passed by reference -- [ ] A regular expression allows a class to conform to the Equatable protocol -- [ ] A regular expression is a C# tool used to parse HTML -- [x] A regular expression is a special text string for describing a search pattern - -[Official documentation: Regular Expression Language - Quick Reference](https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference) - -#### Q54. When an object in C# is serialized, what is it converted to? +#### Q52. When an object in C# is serialized, what is it converted to? - [ ] XML - [ ] JSON @@ -612,7 +594,7 @@ public int Password [Official documentation: Serialization](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/serialization/) -#### Q55. What is a delegate +#### Q53. What is a delegate - [ ] a variable that holds a reference to a value type and its content - [ ] a specific value type that can be used only in callback methods @@ -621,7 +603,7 @@ public int Password [Official documentation: Delegates](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/delegates/) -#### Q56. What are the four keywords associated with exception handling in C#? +#### Q54. What are the four keywords associated with exception handling in C#? - [ ] try, catch, valid, invalid - [ ] try, valid, finally, throw @@ -630,7 +612,7 @@ public int Password [Tutorial Point](https://www.tutorialspoint.com/csharp/csharp_exception_handling.htm#:~:text=Exceptions%20provide%20a%20way%20to,catch%2C%20finally%2C%20and%20throw.) -#### Q57. What is the main difference between the is and as operators? +#### Q55. What is the main difference between the is and as operators? - [ ] The is operator checks instance types, while the as operator checks the inherited type. - [ ] The is operator checks primitive data types, while the as operator checks the object type. @@ -639,7 +621,7 @@ public int Password [Pluralsight guide](https://www.pluralsight.com/guides/csharp-is-as-operators-is-expressions) -#### Q58. What is the difference between finally and finalize blocks? +#### Q56. What is the difference between finally and finalize blocks? - [ ] The finally block is called during the execution of a try and catch block, while the finalize method is called after garbage collection. - [x] The finally block is called after the execution of a try and catch block, while the finalize method is called just before garbage collection. @@ -648,14 +630,14 @@ public int Password [C-sharpcorner](https://www.c-sharpcorner.com/forums/final-finally-and-finalize) -#### Q59. Your application has a value type called username that needs to be able to accept null values, but this is generating compile-time errors. How would you fix this in code? +#### Q57. Your application has a value type called username that needs to be able to accept null values, but this is generating compile-time errors. How would you fix this in code? - [ ] Null username = null; - [x] string? username = null; - [ ] Type? username = null; - [ ] Optional username = null; -#### Q60. Which code snippet correctly declares a custom exception named InvalidResponse? +#### Q58. Which code snippet correctly declares a custom exception named InvalidResponse? - [ ] struct InvalidResponse: Exception {} - [x] class InvalidResponse: Exception {} @@ -664,7 +646,7 @@ public int Password [Official documentation: Exceptions](https://docs.microsoft.com/en-us/dotnet/standard/exceptions/how-to-create-user-defined-exceptions) -#### Q61. How would you write an enum variable called AppState with values for Offline, Loading, and Ready? +#### Q59. How would you write an enum variable called AppState with values for Offline, Loading, and Ready? - [ ] enum AppState = [Offline, Loading, Ready] - [ ] enum AppState {"Offline", "Loading", "Ready"} @@ -673,7 +655,7 @@ public int Password [Official documentation: Enum](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/enum) -#### Q62. What is the main difference between a value type and a reference type? +#### Q60. What is the main difference between a value type and a reference type? - [ ] A value type can be any primitive type, while reference types must be type-agnostic. - [ ] A value type refers to another value, while a reference type refers to a value in memory. @@ -684,7 +666,7 @@ public int Password [Official documentation: Reference types](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/reference-types) -#### Q63. What is the difference between the `break` and `continue` keywords? +#### Q61. What is the difference between the `break` and `continue` keywords? - [ ] The `break` keyword is used to break out of multiple iteration statements, while `continue` can only break out of code blocks that have single iterations. - [x] The `break` keyword literally breaks out of a control flow statement, while `continue` ignores the rest of the control statement or iteration and starts the next one. @@ -693,7 +675,7 @@ public int Password [Official documentation: Jump statements](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/statements/jump-statements) -#### Q64. Which code snippet correctly declares a variable named userId with a public `get` and private `set`? +#### Q62. Which code snippet correctly declares a variable named userId with a public `get` and private `set`? - [ ] `public int userID ;` - [ ] `public int userID [get, private set];` @@ -702,7 +684,7 @@ public int Password [Official documentation: Properties](https://docs.microsoft.com/en-us/dotnet/csharp/properties) -#### Q65. What is true about virtual methods? +#### Q63. What is true about virtual methods? - [ ] `Overriding virtual methods in a derived class is mandatory.` - [ ] `Overriding virtual methods in a derived class is not possible.` @@ -713,28 +695,28 @@ public int Password [c-sharpcorner: Virtual Method in C#](https://www.c-sharpcorner.com/UploadFile/3d39b4/virtual-method-in-C-Sharp/) -#### Q66. What is likely to happen if you have multiple threads accessing the same resource in your program? +#### Q64. What is likely to happen if you have multiple threads accessing the same resource in your program? - [ ] `resource overload` - [ ] `thread jumping` - [ ] `deadlock and race conditions` - [ ] `nothing, since this is what threading is for` -#### Q67. How do you indicate that a string might be null? +#### Q65. How do you indicate that a string might be null? - [ ] `A string cannot be nullable.` - [x] `string? myVariable` - [ ] `string myVariable = null` - [ ] `string(null) myVariable` -#### Q68. Do you need to declare an out variable before you use it? +#### Q66. Do you need to declare an out variable before you use it? - [x] `No, you can declare it the parameter list.` - [ ] `Out variables are no longer part of C#.` - [ ] `You must declare it if it is a primitive type.` - [ ] `Yes.` -#### Q69. How would you access the last two people in an array named People? +#### Q67. How would you access the last two people in an array named People? - [x] `People[..^2]` - [ ] `You cannot do this in C#.` @@ -743,7 +725,7 @@ public int Password [Official Documentation: Ranges](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-8.0/ranges) -#### Q70. When can anonymous types be created? +#### Q68. When can anonymous types be created? - [x] `at compile time` - [ ] `after runtime` @@ -752,7 +734,7 @@ public int Password [C-sharpcorner: Anonymous Types](https://www.c-sharpcorner.com/UploadFile/ff2f08/anonymous-types-in-C-Sharp/) -#### Q71. What is true about thread multitasking? +#### Q69. What is true about thread multitasking? - [x] `Thread multitasking allows code to be executed concurrently` - [ ] `Thread multitasking allows code to be executed only when handling a user event.` diff --git a/c++/c++quiz.md b/c++/c++quiz.md index 045c8809b5..b71c289e9d 100755 --- a/c++/c++quiz.md +++ b/c++/c++quiz.md @@ -1092,14 +1092,7 @@ void std::mutex::lock(){ - [ ] It terminates a program. This may be achieved as a regular function call or as an exception. - [ ] There are no destructors in C++. -#### Q62. Which STL class is the best fit for implementing a phonebook? Suppose each entry contains a name and a phone number, with no duplicates, and you want to have lookup by name. - -- [ ] `std::priority_queue` -- [x] `std::map` -- [ ] `std::vector` -- [ ] `std::list` - -#### Q63. What is the main difference between these two Functions? +#### Q62. What is the main difference between these two Functions? ```cpp std::mutex::lock() @@ -1113,7 +1106,7 @@ std::mutex::try_lock() [Reference](https://en.cppreference.com/w/cpp/thread/mutex/try_lock) -#### Q64. What is one benefit of declaring the parameter as a `const` reference instead of declaring it as a regular object? +#### Q63. What is one benefit of declaring the parameter as a `const` reference instead of declaring it as a regular object? ```cpp int median(const my_array& a) @@ -1126,14 +1119,14 @@ int median(const my_array& a) Note: This one is similar to Q6, but focuses on the `const` keyword. -#### Q65. What is an include guard? +#### Q64. What is an include guard? - [ ] a preprocessor directive that prevents inconsistent behaviors in lines that contain the #ifdef, #ifndef, or #elif directives - [ ] a compiler option that prevents the user code from including additional libraries - [x] a preprocessor statement that prevents a source file from being included more than once in a project - [ ] a library that adds safety features such as mutexes, watchdog timers, and assertions to the project -#### Q66. What would be the correct declaration of a default constructor for a class named Sprite? +#### Q65. What would be the correct declaration of a default constructor for a class named Sprite? - [x] ```cpp @@ -1156,7 +1149,7 @@ Note: This one is similar to Q6, but focuses on the `const` keyword. Sprite(); ``` -#### Q67. What is the purpose of this line in a header file? +#### Q66. What is the purpose of this line in a header file? ```cpp #pragma once @@ -1169,7 +1162,7 @@ Note: This one is similar to Q6, but focuses on the `const` keyword. [reference here](https://en.cppreference.com/w/cpp/preprocessor/impl) -#### Q68. What is a variable of type double? +#### Q67. What is a variable of type double? - [ ] a 2-tuple - [ ] an integer number @@ -1178,43 +1171,14 @@ Note: This one is similar to Q6, but focuses on the `const` keyword. [Reference](https://www.educba.com/c-plus-plus-double/) -#### Q69. Consider this function declaration of is_even, which takes in an integer and returns true if the argument is an even number and false otherwise. Which declarations are correct for overloaded versions of that function to support floating point numbers and string representations of numbers? - -```cpp -bool is_even(int); -``` - -- [x] bool is_even(float f); bool is_even(char \*str); -- [ ] bool is_even(float f); bool is_even(char str); -- [ ] bool is_even_float(float f); bool is_even_str(char \*str); -- [ ] float is_even(float f); char *is_even(char *str); - -#### Q70. Other than shifting bits to the left, what is the << oprator used for ? +#### Q68. Other than shifting bits to the left, what is the << oprator used for ? - [ ] shifting characters to the left in a string. - [x] inserting characters into an output stream like std::cout. - [ ] comparing floating point numbers as less-than. - [ ] assigning a variable to a reference. -#### Q71. Does this code cause a compiler error? If so, why, and if not, what is `child_t`? - -```cpp -typedef struct{ - unsigned int age : 4; - unsigned char gender : 1; - char : 0; - unsigned int size : 2; -}child_t; -``` - -- [ ] Yes, it causes a compiler error because the colon character is not allowed in struct definitions. -- [x] and `child_t` is a type defined as a structure with bit fields. It has 4 bits for age and 1 bit for gender in the first byte, and 2 bits for size in the second byte. -- [ ] Yes, it causes a compiler error because there is an unnamed field. -- [ ] Yes, it causes a compiler error because one field is defined as having a size of 0. - -[Reference](https://en.cppreference.com/w/cpp/language/bit_field) - -#### Q72. Which choice is a reason to specify the type of a pointer instead of using `void *`, which works as a pointer ro any type? +#### Q69. Which choice is a reason to specify the type of a pointer instead of using `void *`, which works as a pointer ro any type? - [ ] The compiler needs the dara type to make sure that the pointer is not going to be used on illegal non-pointable types such as functions, labels, pointers, and reference. - [ ] `void *` does not work for any type. The language does not allow assigning anything other than `void` to a pointer to `void *`. @@ -1223,7 +1187,7 @@ typedef struct{ [Reference](https://stackoverflow.com/questions/9802585/why-is-the-data-type-needed-in-pointer-declarations) -#### Q73. What is wrong with this piece of code? +#### Q70. What is wrong with this piece of code? ```cpp #include @@ -1241,7 +1205,7 @@ int main(){ - [ ] The address of `str` is supposed to be used. That is `&str` instead of `str`. - [x] The input operator flow is inverted. it should start from `std::cin` and then flow (>>) into `str`. -#### Q74. What is this expression equivalent to? +#### Q71. What is this expression equivalent to? ```cpp A->B @@ -1252,7 +1216,7 @@ A->B - [x] `(*A).B` - [ ] `&A.B` -#### Q75. Which statement is true when declaring the member variable `count` as static? +#### Q72. Which statement is true when declaring the member variable `count` as static? ```cpp class my_class{ @@ -1265,21 +1229,21 @@ class my_class{ - [ ] The variable existd when no objects of the class have been defined, so it can be modified at any point in the source code. - [x] The variable cannot be modified by any part of the code in the same application or thread. However, other threads may modify it. -#### Q76. When placed in a valid execution context, which statement will dynamically allocate memory from the heap for an integer of value 11? +#### Q73. When placed in a valid execution context, which statement will dynamically allocate memory from the heap for an integer of value 11? - [ ] `int anInt = new int(11);` - [ ] `int* anInt = new int[11];` - [ ] `int anInt = new int[11];` - [x] `int* anInt = new int(11);` -#### Q77. Which choice best describes the type `long`? +#### Q74. Which choice best describes the type `long`? - [x] an integer number of at least 32 bits - [ ] a string with more than 255 characters - [ ] a pointer - [ ] a 64-bit floating point number -#### Q78. Which of the following types has the closest functionality to a class? +#### Q75. Which of the following types has the closest functionality to a class? - [x] `struct` - [ ] `union` @@ -1288,7 +1252,7 @@ class my_class{ [Reference](https://en.cppreference.com/w/c/language/struct) -#### Q79. Given these records in a map, how will you update the value for the key "Sinead" to 22? +#### Q76. Given these records in a map, how will you update the value for the key "Sinead" to 22? ![image](images/Q79.png) @@ -1297,14 +1261,14 @@ class my_class{ - [ ] `marks["Sinead"] -> 22` - [ ] `marks["Sinead"].value = 22` -#### Q80. Why can the std::sort receive a function object as one of its parameters? +#### Q77. Why can the std::sort receive a function object as one of its parameters? - [ ] `The std::sort function is a template. The programmer is free to enter the sorting algorithm in a function object as an argument.` - [ ] `Actually, std::sort takes only one argument, which is the container to be sorted.` - [ ] `std::sort operates on a template container. The compiler does not know how to relationally compare the values it contains, so a function must be provided to do the comparison.` - [ ] `std::sort will use the parameter function as an error handler. The function will be called if an error occurs.` -#### Q81. What will happen when you execute this code snippet? +#### Q78. What will happen when you execute this code snippet? ``` #include diff --git a/c-(programming-language)/c-quiz.md b/c-(programming-language)/c-quiz.md index c2a167ed67..ea96216be1 100755 --- a/c-(programming-language)/c-quiz.md +++ b/c-(programming-language)/c-quiz.md @@ -852,38 +852,6 @@ void *vptr=&g; - [ ] f=\*(float)vptr; - [ ] f=(float)\*vptr; -#### Q56. Using a _for_ loop, how would you write C code to count down from 10 to 1 and display each number on its own line? - -- [ ] - -```c -for(int i=10;1>0;) { - printf("%d\n", i); - i--; -} -``` - -- [x] - -```c -for (int i=10; i>0; i--) - printf("%d\n", i); -``` - -- [ ] - -```c -for (int i=1; i<=10; i++) - printf("%d", i); -``` - -- [ ] - -```c -for (int i=10; i>=0; i--) - printf("%d\n", i); -``` - #### Q56. The dynamic memory allocation functions are defined in which system header file ? - [ ] stdio.h diff --git a/css/css-quiz.md b/css/css-quiz.md index 128641b55c..bad80c5d80 100755 --- a/css/css-quiz.md +++ b/css/css-quiz.md @@ -1425,20 +1425,34 @@ p:first-of-type:first-letter { #### Q106. Which choice will not set all links that include domain.com to pink? +- [ ] A + ```css -[] a[href$='domain.com'] { +a[href$='domain.com'] { color: pink; } +``` + +- [x] B -[x] a[href='*domain.com'] { +```css +a[href='*domain.com'] { color: pink; } +``` -[] a[href*='domain.com'] { +- [ ] C + +```css +a[href*='domain.com'] { color: rgb(255, 155, 155); } +``` + +- [ ] D -[] a[href*='domain.com'] { +```css +a[href*='domain.com'] { color: pink; } ``` @@ -1447,41 +1461,53 @@ p:first-of-type:first-letter { #### Q107. Which property and value pair could be used to apply a linear gradient effect? -```css -[x] `background: linear-gradient(#648880, #293f50);` -[ ] `background-image: linear(#648880, #293f50);` -[ ] `background: gradient(linear, #648880, #293f50);` -[ ] `background-color: linear-gradient(#648880, #293f50);` -``` +- [x] ```css background: linear-gradient(#648880, #293f50);``` +- [ ] ```css background-image: linear(#648880, #293f50);``` +- [ ] ```css background: gradient(linear, #648880, #293f50);``` +- [ ] ```css background-color: linear-gradient(#648880, #293f50);``` #### Q108. You want to add a background circle behind an icon. Which style declaration is correct? +- [ ] A + ```css -[] .glyphicon-bgcircle { +.glyphicon-bgcircle { circle-radius: 50%; margins: 50px; background-color: #fdadc6; color: rgba(255, 255, 255, 1); font-size: 24px; } +``` + +- [ ] B -[] glyphicon-bgcircle { +```css +glyphicon-bgcircle { border-circle: 50%; padding: 50px; background-color: #fdadc6; color: rgba(255, 255, 255, 1); font-size: 24px; } +``` -[x] .glyphicon-bgcircle { +- [x] C + +```css +.glyphicon-bgcircle { border-radius: 50%; padding: 50px; background-color: #fdadc6; color: rgba(255, 255, 255, 1); font-size: 24px; } +``` + +- [ ] D -[] .glyphicon-bgcircle { +```css +.glyphicon-bgcircle { radius-rounded: 50%; margins: auto; background-color: #fdadc6; @@ -1534,7 +1560,7 @@ D. font-size: 20px
``` -- [ ] +- [ ] A ```css .overlay { @@ -1547,7 +1573,7 @@ D. font-size: 20px } ``` -- [ ] +- [ ] B ```css .overlay { @@ -1560,7 +1586,7 @@ D. font-size: 20px } ``` -- [ ] +- [ ] C ```css .overlay { @@ -1573,7 +1599,7 @@ D. font-size: 20px } ``` -- [x] +- [x] D ```css .overlay { @@ -1622,7 +1648,7 @@ img { #BLM ``` -- [ ] +- [ ] A ```css .highlight { @@ -1630,7 +1656,7 @@ img { } ``` -- [ ] +- [ ] B ```css #highlight { @@ -1638,7 +1664,7 @@ img { } ``` -- [x] +- [x] C ```css .highlight { @@ -1646,7 +1672,7 @@ img { } ``` -- [ ] +- [ ] D ```css #highlight { @@ -1656,25 +1682,25 @@ img { #### Q116. To prevent a background image from tiling in any direction, which style property would you apply? -- [X] +- [X] A ```css background-repeat: no-repeat; ``` -- [ ] +- [ ] B ```css background-repeat: fixed; ``` -- [ ] +- [ ] C ```css background-repeat: none; ``` -- [ ] +- [ ] D ```css background-tile: none; diff --git a/cybersecurity/cybersecurity-quiz.md b/cybersecurity/cybersecurity-quiz.md index 1d524a2635..ee1875a421 100644 --- a/cybersecurity/cybersecurity-quiz.md +++ b/cybersecurity/cybersecurity-quiz.md @@ -283,7 +283,7 @@ A rainbow table attack is a more efficient and effective way of cracking many ha - [x] packet sniffer - [ ] IPS -#### Q35. SQL injection inserts a code fragment that makes a database statement universally true, like **\_**. +#### Q36. SQL injection inserts a code fragment that makes a database statement universally true, like **\_**. - [ ] `SELECT * FROM users WHERE username = " AND 1=1--'` - [ ] `SELECT * FROM users WHERE username = " AND 1!=1--'` @@ -763,14 +763,7 @@ What are the primary goals of the digital signature in this scenario? (Choose th - [ ] threat - [x] event -#### Q100. You need to implement a solution to protect internet-facing applications from common attacks like XSS, CSRF, and SQL injection. Which option is best suited to the task? - -- [ ] a stateful packet inspection firewall -- [ ] a web application firewall (WAF) -- [ ] an Intrusion Detection and Prevention System (IDPS) appliance -- [ ] Security Information Event Management (SIEM) - -#### Q101. You are responsible for forensic investigations in your organization.You have been tasked with investigating a compromised virtual application server. Becase a revenue generating application runs on the server, the server needs to be returned to service as quickly as possible. +#### Q100. You are responsible for forensic investigations in your organization.You have been tasked with investigating a compromised virtual application server. Becase a revenue generating application runs on the server, the server needs to be returned to service as quickly as possible. What is the next step you should take to best fulfill your responsibilities and meet the needs of the business? @@ -779,14 +772,16 @@ What is the next step you should take to best fulfill your responsibilities and - [x] Take a snapshot of the compromised virtual server for your investigation. - [ ] Restart the server. Remediate the issue after business hours. -#### Q102. Site-to-site VPN provides access from one network address space (192.168.0.0/24) to another network address space **\_**.Site-to-site VPN provides access from one network address space (192.168.0.0/24) to another network address space **\_**. +#### Q101. Site-to-site VPN provides access from one network address space (192.168.0.0/24) to another network address space ** +\_**.Site-to-site VPN provides access from one network address space (192.168.0.0/24) to another network address space ** +\_**. - [x] 192.168.0.1/24192.168.0.1/24 - [ ] 192.168.0.3/24192.168.0.3/24 - [ ] 10.10.0.0/2410.10.0.0/24 - [ ] 192.168.0.2/24 -#### Q103. You are researching probable threats to your company’s internet-facing web applications. Which organization should you reference as an authoritative source for information on web-based attack vectors?You are researching probable threats to your company’s internet-facing web applications. Which organization should you reference as an authoritative source for information on web-based attack vectors? +#### Q102. You are researching probable threats to your company’s internet-facing web applications. Which organization should you reference as an authoritative source for information on web-based attack vectors?You are researching probable threats to your company’s internet-facing web applications. Which organization should you reference as an authoritative source for information on web-based attack vectors? - [ ] EC-Council - [ ] ISACAISACA @@ -795,7 +790,7 @@ What is the next step you should take to best fulfill your responsibilities and [Explanation:](https://www.imperva.com/learn/application-security/application-security/) -#### Q104. Which action is most likely to simplify security staff training, improve integration between security components, and reduce risk to the business? (Choose the best answer.)Which action is most likely to simplify security staff training, improve integration between security components, and reduce risk to the business? (Choose the best answer.) +#### Q103. Which action is most likely to simplify security staff training, improve integration between security components, and reduce risk to the business? (Choose the best answer.)Which action is most likely to simplify security staff training, improve integration between security components, and reduce risk to the business? (Choose the best answer.) - [ ] adopting a "best-in-suite" approach to securityadopting a "best-in-suite" approach to security - [x] adopting a "trust but verify" approach to securityadopting a "trust but verify" approach to security diff --git a/django/django-quiz.md b/django/django-quiz.md index 6224a2765e..ad0552faa0 100644 --- a/django/django-quiz.md +++ b/django/django-quiz.md @@ -128,7 +128,7 @@ url(r'^show/(?P[\w-]+)/', views.episode_name - [ ] Python, HTML, and template syntax - [ ] Python and template syntax -#### Q17. How would you define the relationship between a star and a constellation in a Django model? +#### Q16. How would you define the relationship between a star and a constellation in a Django model? - [x] @@ -166,126 +166,126 @@ class Constellation(models.Model): name = models.CharField(max_length=100) ``` -#### Q18. Which is NOT a valid step in configuring your Django 2.x instance to serve up static files such as images or CSS? +#### Q17. Which is NOT a valid step in configuring your Django 2.x instance to serve up static files such as images or CSS? - [x] In your urls file, add a pattern that includes the name of your static directory. - [ ] Create a directory named static inside your app directory. - [ ] Create a directory named after the app under the static directory, and place static files inside. - [ ] Use the template tag {percentage mark load static percentage mark}. -#### Q19. What is the correct way to make a variable available to all of your templates? +#### Q18. What is the correct way to make a variable available to all of your templates? - [ ] Set a session variable. - [ ] Use a global variable. - [ ] Add a dictionary to the template context. - [x] Use RequestContext. -#### Q20. Should you create a custom user model for new projects? +#### Q19. Should you create a custom user model for new projects? - [ ] No. Using a custom user model could break the admin interface and some third-party apps. - [ ] Yes. It is easier to make changes once it goes into production. - [x] No. Django's built-in models.User class has been tried and tested—no point in reinventing the wheel. - [ ] Yes, as there is no other option. -#### Q21. You want to create a page that allows editing of two classes connected by a foreign key (e.g., a question and answer that reside in separate tables). What Django feature can you use? +#### Q20. You want to create a page that allows editing of two classes connected by a foreign key (e.g., a question and answer that reside in separate tables). What Django feature can you use? - [x] actions - [ ] admin - [ ] mezcal - [ ] inlines -#### Q22. Why are QuerySets considered "lazy"? +#### Q21. Why are QuerySets considered "lazy"? - [ ] The results of a QuerySet are not ordered. - [x] QuerySets do not create any database activity until they are evaluated. - [ ] QuerySets do not load objects into memory until they are needed. - [ ] Using QuerySets, you cannot execute more complex queries. -#### Q23. You receive a `MultiValueDictKeyError` when trying to access a request parameter with the following code: request.GET['search_term']. Which solution will NOT help you in this scenario? +#### Q22. You receive a `MultiValueDictKeyError` when trying to access a request parameter with the following code: request.GET['search_term']. Which solution will NOT help you in this scenario? - [x] Switch to using POST instead of GET as the request method. - [ ] Make sure the input field in your form is also named "search_term". - [ ] Use MultiValueDict's GET method instead of hitting the dictionary directly like this: request.GET.get('search_term', ''). - [ ] Check if the search_term parameter is present in the request before attempting to access it. -#### Q24. Which function of Django's Form class will render a form's fields as a series of

tags? +#### Q23. Which function of Django's Form class will render a form's fields as a series of

tags? - [ ] show_fields() - [x] as_p() - [ ] as_table() - [ ] fields() -#### Q25. You have found a bug in Django and you want to submit a patch. Which is the correct procedure? +#### Q24. You have found a bug in Django and you want to submit a patch. Which is the correct procedure? - [ ] Fork the Django repository GitHub. - [ ] Submit a pull request. - [x] all of these answers. - [ ] Run Django's test suite. -#### Q26. Django supplies sensible default values for settings. In which Python module can you find these settings? +#### Q25. Django supplies sensible default values for settings. In which Python module can you find these settings? - [ ] django.utils.default_settings.py - [ ] django.utils.global_settings.py - [ ] django.conf.default_settings.py - [x] django.conf.global_settings.py -#### Q27. Which variable name is best according to PEP 8 guidelines? +#### Q26. Which variable name is best according to PEP 8 guidelines? - [ ] numFingers - [ ] number-of-Fingers - [x] number_of_fingers - [ ] finger_num -#### Q28. A project has accumulated 500 migrations. Which course of action would you pursue? +#### Q27. A project has accumulated 500 migrations. Which course of action would you pursue? - [ ] Manually merge your migration files to reduce the number - [ ] Don't worry about the number - [ ] Try to minimize the number of migrations - [x] Use squashmigrations to reduce the number -#### Q29. What does an F() object allow you when dealing with models? +#### Q28. What does an F() object allow you when dealing with models? - [x] perform db operations without fetching a model object - [ ] define db transaction isolation levels - [ ] use aggregate functions more easily - [ ] build reusable QuerySets -#### Q30. Which is not a Django filed type for integers? +#### Q29. Which is not a Django filed type for integers? - [ ] SmallIntegerField - [x] NegativeIntegerField - [ ] BigAutoField - [ ] PositiveIntegerField -#### Q31. Which will show the currently installed version? +#### Q30. Which will show the currently installed version? - [ ] print (django.version) - [ ] import django django.getVersion() - [x] import django django.get_version() - [ ] python -c django --version -#### Q32. You should use the http method `___` to read data and `___` to update or create data +#### Q31. You should use the http method `___` to read data and `___` to update or create data - [ ] READ; WRITE - [x] GET; POST - [ ] POST; GET - [ ] GET; PATCH -#### Q33. When should you employ the POST method over GET for submitting data? +#### Q32. When should you employ the POST method over GET for submitting data? - [ ] when efficiency is important - [ ] when you want the data to be cached - [ ] when you want to use your browser to help with debugging - [x] when the data in the form may be sensitive -#### Q34. When to use the Django sites framework? +#### Q33. When to use the Django sites framework? - [x] if your single installation powers more than one site - [ ] if you need to serve static as well as dynamic content - [ ] if you want your app have a fully qualified domain name - [ ] if you are expecting more than 10.000 users -#### Q35. Which infrastructure do you need: +#### Q34. Which infrastructure do you need: `title=models.charfield(max_length=100, validators=[validate_spelling])` @@ -294,14 +294,14 @@ name = models.CharField(max_length=100) - [ ] a validators file containing a function called validate imported at the top of model - [ ] spelling package imported at the top of model -#### Q36. What decorator is used to require that a view accepts only the get and head methods? +#### Q35. What decorator is used to require that a view accepts only the get and head methods? - [x] require_safe() - [ ] require_put() - [ ] require_post() - [ ] require_get() -#### Q37. How would you define the relation between a book and an author - book has only one author. +#### Q36. How would you define the relation between a book and an author - book has only one author. - [ ] @@ -348,35 +348,35 @@ class Book(models.model): author=Author.name ``` -#### Q38. What is a callable that takes a value and raises an error if the value fails? +#### Q37. What is a callable that takes a value and raises an error if the value fails? - [x] validator - [ ] deodorizer - [ ] mediator - [ ] regular expression -#### Q39. To secure an API endpoint, making it accessible to registered users only, you can replace the rest_framework.permissions.allowAny value in the default_permissions section of your settings.py to +#### Q38. To secure an API endpoint, making it accessible to registered users only, you can replace the rest_framework.permissions.allowAny value in the default_permissions section of your settings.py to - [ ] rest_framework.permissions.IsAdminUser - [x] rest_framework.permissions.IsAuthenticated - [ ] rest_framework.permissions.IsAuthorized - [ ] rest_framework.permissions.IsRegistered -#### Q40. Which command would you use to apply a migration? +#### Q39. Which command would you use to apply a migration? - [ ] makemigration - [ ] update_db - [ ] applymigration - [x] migrate -#### Q41. Which type of class allows QuerySets and model instances to be converted to native Python data types for use in APIs? +#### Q40. Which type of class allows QuerySets and model instances to be converted to native Python data types for use in APIs? - [ ] objectwriters - [x] serializers - [ ] picklers - [ ] viewsets -#### Q42. How should the code end? +#### Q41. How should the code end? ``` { percentage if spark >= 50 percentage } @@ -389,7 +389,7 @@ Lots of spark - [ ] Nothing needed - [ ] {percentage end percentage} -#### Q43. Which code block will create a serializer? +#### Q42. Which code block will create a serializer? ``` from rest_framework import serializers @@ -437,49 +437,49 @@ fields=('name') model=Planet ``` -#### Q44. Which class allows you to automatically create a Serializer class with fields and validators that correspond to your model's fields? +#### Q43. Which class allows you to automatically create a Serializer class with fields and validators that correspond to your model's fields? - [x] ModelSerializer - [ ] Model - [ ] DataSerializer - [ ] ModelToSerializer -#### Q45. Which command to access the built-in admin tool for the first time? +#### Q44. Which command to access the built-in admin tool for the first time? - [ ] django-admin setup - [ ] django-admin runserver - [ ] python manage.py createuser - [x] python manage.py createsuperuser -#### Q46. Virtual environments are for managing dependencies. Which granularity works best? +#### Q45. Virtual environments are for managing dependencies. Which granularity works best? - [x] you should set up a new virtualenv for each Django project - [ ] They should not be used - [ ] Use the same venv for all your Django work - [ ] Use a new venv for each Django app -#### Q47. What executes various Django commands such as running a webserver or creating an app? +#### Q46. What executes various Django commands such as running a webserver or creating an app? - [ ] migrate.py - [ ] wsgi.py - [x] manage.py - [ ] runserver -#### Q48. What do Django best practice suggest should be "fat"? +#### Q47. What do Django best practice suggest should be "fat"? - [x] models - [ ] controllers - [ ] programmers - [ ] clients -#### Q49. Which is not part of Django's design philosophy? +#### Q48. Which is not part of Django's design philosophy? - [ ] Loose Coupling - [ ] Less Code - [ ] Fast Development - [x] Implicit over explicit -#### Q50. What is the result of this template code? +#### Q49. What is the result of this template code? ``` {{"live long and prosper"|truncate:3}} @@ -490,7 +490,7 @@ model=Planet - [ ] a compilation error - [ ] liv -#### Q51. When does this code load data into memory? +#### Q50. When does this code load data into memory? ``` 1 sandwiches = Sandwich.objects.filter(is_vegan=True) @@ -503,70 +503,70 @@ model=Planet - [ ] It depends on cache. - [ ] line 2 -#### Q52. You are building a web application using a React front end and a Django back end. For what will you need to provision?\*\* +#### Q51. You are building a web application using a React front end and a Django back end. For what will you need to provision?\*\* - [ ] an NGINX web server - [ ] a NoSQL database - [ ] a larger hard drive - [ ] CORS middleware -#### Q53. To expose an existing model via an API endpoint, what do you need to implement?\*\* +#### Q52. To expose an existing model via an API endpoint, what do you need to implement?\*\* - [ ] an HTTP request - [ ] a JSON object - [ ] a query - [x] a serializer -#### Q54. How would you stop Django from performing database table creation or deletion operations via migrations for a particular model?\*\* +#### Q53. How would you stop Django from performing database table creation or deletion operations via migrations for a particular model?\*\* - [ ] Run the `migrate` command with `--exclude=[model_name]`. - [ ] Move the model definition from `models.py` into its own file. - [x] Set `managed=False` inside the model. - [ ] Don't run the `migrate` command. -#### Q55. what method can you use to check if form data has changed when using a form instance? +#### Q54. what method can you use to check if form data has changed when using a form instance? - [x] has_changed() - [ ] its_changed() - [ ] has_updated() - [ ] None of This -#### Q56. What is WSGI? +#### Q55. What is WSGI? - [x] a server - [ ] an interface specification - [ ] a Python module - [ ] a framework -#### Q57. Which generic view should be used for displaying the tittles of all Django Reinhardt's songs? +#### Q56. Which generic view should be used for displaying the tittles of all Django Reinhardt's songs? - [ ] DetailView - [ ] TittleView - [ ] SongView - [x] ListView -#### Q58. Which statement is most accurate, regarding using the default SQLite database on your local/development machine but Postgres in production +#### Q57. Which statement is most accurate, regarding using the default SQLite database on your local/development machine but Postgres in production - [x] There's less chance of introducing bugs since SQLite already works out the box - [ ] It's fine, you just need to keep both instances synchronized - [ ] It's a bad idea and could lead to issues down the road - [ ] It's the most efficient way to build a project -#### Q59. Why might you want to write a custom model Manager? +#### Q58. Why might you want to write a custom model Manager? - [ ] to perform database queries - [ ] to set up a database for testing - [x] to modify the initial QuerySet that the Manager returns - [ ] to filter the results that a database query returns -#### Q60. In Django, what are used to customize the data that is sent to the templates? +#### Q59. In Django, what are used to customize the data that is sent to the templates? - [ ] models - [x] views - [ ] forms - [ ] serializers -#### Q61. To complete the conditional, what should this block of code end with? +#### Q60. To complete the conditional, what should this block of code end with? ```shell % if sparles >= 50 % @@ -580,72 +580,59 @@ model=Planet - [ ] `% end%` - [ ] `% else %` -#### Q62. You have inherited a Django project and need to get it running locally. It comes with a requirements.txt file containing all its dependencies. Which command should you use? - -- [ ] python install -r requirements.txt -- [ ] django-admin startproject requirements.txt -- [ ] pip install Django -- [x] pip install -r requirements.txt - -#### Q63. When should you employ the POST method over the GET method for submitting data from a form? +#### Q61. When should you employ the POST method over the GET method for submitting data from a form? - [x] when the data in the form may be sensitive - [ ] when you want the data to be cached - [ ] when you want to use your browser to help with debugging - [ ] when efficiency is important -#### Q64. What is a callable that takes a value and raises an error if the value fails to meet some criteria? +#### Q62. What is a callable that takes a value and raises an error if the value fails to meet some criteria? - [ ] mediator - [x] validator - [ ] regular expression - [ ] deodorizer -#### Q65. You are uploading a file to Django from a form and you want to save the received file as a field on a model object. You can simply assign the file object from**\_to a field of type\_\_**in the model. +#### Q63. You are uploading a file to Django from a form and you want to save the received file as a field on a model object. You can simply assign the file object from**\_to a field of type\_\_**in the model. - [ ] request.META; FileField - [ ] request.FILES; BLOBField - [x] request.FILES; FileField - [ ] request.META.Files; CLOBField -#### Q66. What python module might be used to store the current state of a Django model in a file? +#### Q64. What python module might be used to store the current state of a Django model in a file? - [x] pickle - [ ] struct - [ ] marshal - [ ] serialize -#### Q66. To add a new app to an existing Django project, you must edit the **_ section of the _** file. +#### Q65. To add a new app to an existing Django project, you must edit the **_ section of the _** file. - [ ] ALLOWED_HOSTS; settings.py - [ ] APPS; manage.py - [x] INSTALLED_APPS; settings.py - [ ] TEMPLATES; urls.py -#### Q67. Which is not a third-party package commonly used for authentication? +#### Q66. Which is not a third-party package commonly used for authentication? - [ ] django-guardian - [ ] django-rest-auth - [ ] authtoken - [x] django-rest-framework-jwt -#### Q68. Which function in the django.urls package can help you avoid hardcoding URLS by generating a URL given the name of a view? +#### Q67. Which function in the django.urls package can help you avoid hardcoding URLS by generating a URL given the name of a view? - [ ] get_script_prefix() - [ ] redirect() - [x] reverse() - [ ] resolve() -#### Q69. Which is Fictional HTTP request method? +#### Q68. Which is Fictional HTTP request method? - [ ] POST - [ ] PUT - [x] PAUSE - [ ] PATCH -#### Q70. Which is not a Django field type for holding integers? - -- [x] NegativeIntegerField -- [ ] SmallIntegerField -- [ ] PositiveIntegerField -- [ ] BigAutoField diff --git a/dotnet-framework/dotnet-framework-quiz.md b/dotnet-framework/dotnet-framework-quiz.md index 56488e0614..1b06f9359d 100755 --- a/dotnet-framework/dotnet-framework-quiz.md +++ b/dotnet-framework/dotnet-framework-quiz.md @@ -270,21 +270,21 @@ - [ ] Singleton - [ ] Builder -#### Q40. Why would you use ahead-of-time (AOT) compilation? +#### Q39. Why would you use ahead-of-time (AOT) compilation? - [x] You can deliver a faster startup time, especially in big applications where much code executes on startup. - [ ] You have a slow processor. - [ ] You have little memory and disk space - [ ] The JIT compiler does not have to do a lot of disk I/O actions, which are quite expensive. -#### Q41. Which statement describes a Dispose method? +#### Q40. Which statement describes a Dispose method? - [ ] It defines an execution environment for program code and manages the CLR - [x] It belongs to the IDisposable interface and is used to free resources, such as network connection and files. - [ ] It is partially method-compiled code library for use in deployment, versioning, and security. - [ ] It is used for encapsulation of collections tied to functions of a class and object. -#### Q42. What is a thread? +#### Q41. What is a thread? - [x] A single operation that does not return a value and that usually executes asynchronously - [ ] the basic unit to which an operating system allocate processor time @@ -293,21 +293,21 @@ [Reference link](https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task?view=net-5.0) -#### Q43. You want to add responsibilities to object dynamically. Which design pattern best fit this objective? +#### Q42. You want to add responsibilities to object dynamically. Which design pattern best fit this objective? - [x] Decorator - [ ] Bridge - [ ] Singleton - [ ] Facade -#### Q44. Which choice creates an 8-tuple containing prime numbers that are less than 20? +#### Q43. Which choice creates an 8-tuple containing prime numbers that are less than 20? - [x] `var primes = Tuple.Create(2, 3, 5, 7, 11, 13, 17, 19);` - [ ] `var primes = Tuple.Create(2, 3, 5, 7, 11, 13, 17, 21);` - [ ] `var primes = Tuple.Make(2, 3, 5, 7, 11, 13, 17, 20);` - [ ] `var primes = Tuple.Make(2, 3, 5, 7, 11, 13, 17, 19);` -#### Q45. How can you recieve form data without a model binder in a controller action? +#### Q44. How can you recieve form data without a model binder in a controller action? > Note: The differences are `IFormResult`/`IActionResult` and `Forms`/`Form` @@ -332,49 +332,49 @@ return View(); } -#### Q46. Where should you store connection string information? +#### Q45. Where should you store connection string information? - [ ] in any file within the namespace of the program - [ ] in the view - [x] in configuration files - [ ] in the database -#### Q47. Why use design patterns? +#### Q46. Why use design patterns? - [ ] design patterns make the code more efficient with memory usage - [ ] design patterns minimize the number of code lines when creating complex applications - [ ] design patterns tend to be more secure and prevent code from being hacked - [x] design patterns help you solve issues related to sofware development using a proven solution, and make communication between developers more efficient -#### Q48. What is a task? +#### Q47. What is a task? - [ ] the basic unit to which an operating system allocates processor time - [ ] a program that is running on your compiler - [x] a single operation that does not return a value and that usually executes asynchronously - [ ] a series of related methods that together turn inputs into outputs -#### Q49. Which choice is NOT a component of .NET Framework? +#### Q48. Which choice is NOT a component of .NET Framework? - [ ] common language JIT - [x] .NET framework class library - [ ] common language runtime - [ ] side-by-side execution -#### Q50. Which statement about the `this` keyword is _not_ true? +#### Q49. Which statement about the `this` keyword is _not_ true? - [ ] The `this` keyword lets a constructor call a different constructor in the same class. - [x] A constructor can use a base statement and a `this` statement if the base statement comes first. - [ ] A constructor can use one `this` statement at most. - [ ] If a constructor uses a `this` statement, its code is executed after the invoked constructor is executed. -#### Q51. When should you use the .NET Core class library project type? +#### Q50. When should you use the .NET Core class library project type? - [x] when you want to increase the .NET API surface area your library can access, and allow only .NET Core apps to be compatible with your library - [ ] when you want to increase the number of apps that are compatible with your library, and decrease the .NET API surface area your library can access - [ ] when you want to decrease speed but have more features - [ ] when you want to increase compilation speed and have fewer features -#### Q52. Why would the .NET Framework use Normal-JIT (Just-in-Time)? +#### Q51. Why would the .NET Framework use Normal-JIT (Just-in-Time)? - [ ] to compile complete source code into native code in a single compilation cycle during deployment of the application - [ ] to compile only the methods that are called at runtime and remove them from memory after execution @@ -383,7 +383,7 @@ [JIT (Just-In-Time) Compiler](https://www.c-sharpcorner.com/UploadFile/nipuntomar/jit-just-in-time-compiler/) -#### Q53. What is .NET? +#### Q52. What is .NET? - [ ] .NET is a general-purpose programming language. The language has expanded significantly over time, and now has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation. - [ ] .NET is a virtual machine that enables a computer to run programs written in several languages and compile programs to bytecode. @@ -392,7 +392,7 @@ [What is .NET?](https://dotnet.microsoft.com/learn/dotnet/what-is-dotnet) -#### Q54. The ASP.NET Core Module is a native IIS module that plugs into the IIS pipeline to either **\_**. +#### Q53. The ASP.NET Core Module is a native IIS module that plugs into the IIS pipeline to either **\_**. - [ ] host an ASP.NET Code app inside of the IIS worker process, called the out-of-process hosting model, or forward web requests to a backend ASP.NET Core app running the Kesrel server, called the in-process hosting model - [ ] create IIS code the server needs in a file with the extension required, or run the IIS server in a mode compatible for ASP.NET Core @@ -401,7 +401,7 @@ [ASP.NET Core Module](https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-5.0) -#### Q55. In the code below, what is the difference between RenderPartial and RenderAction? +#### Q54. In the code below, what is the difference between RenderPartial and RenderAction? ```cs @{ @@ -415,7 +415,7 @@ - [ ] RenderAction will call an action method of the current controller and render a result inline. RenderPartial will render the specified view inline without calling any action method. - [ ] RenderPartial will call an action method of the current model and render a result inline. RenderAction will render the specified view inline without calling any action method. -#### Q56. What is the Liskov substitution principle? +#### Q55. What is the Liskov substitution principle? - [ ] Many client-specific interfaces are better than one general-purpose interface. - [x] Objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program. @@ -424,7 +424,7 @@ [Liskov substitution principle](https://en.wikipedia.org/wiki/Liskov_substitution_principle) -#### Q57. What method do you use to explicitly kill a user's session? +#### Q56. What method do you use to explicitly kill a user's session? - [ ] `Session.Timeout()` - [x] `Session.Abandon()` @@ -433,7 +433,7 @@ [Session.Abandon Method]() -#### Q58. Which choice best describes the difference between globalization and localization? +#### Q57. Which choice best describes the difference between globalization and localization? - [ ] Localization enables the .NET runtime to provide services to managed code so language compilers can emit metadata and references in your code. Globalization reverses this process. - [ ] Globalization enables the .NET runtime to provide services to managed code so language compilers can emit metadata and references in your code. Localization reverses this process. @@ -442,7 +442,7 @@ [Globalize and localize .NET applications](https://docs.microsoft.com/en-us/dotnet/core/extensions/globalization-and-localization) -#### Q59. What does CIL stand for? +#### Q58. What does CIL stand for? - [ ] C# Interpreted Language - [x] Common Intermediate Language @@ -451,81 +451,74 @@ [What is the full form of CIL?](https://ythi.net/abbreviations/english/what-does-cil-mean-what-is-the-full-form-of-cil/) -#### Q60. Which choice best describes the difference between a namespace and an assembly? +#### Q59. Which choice best describes the difference between a namespace and an assembly? - [ ] Namespace contains code to form MSIL (Microsoft Intermediate Language). An assembly contains a set of unique names. - [ ] Namespace is the logical naming decided at design time by the developer. Scope for a particular type is defined at run time using an assembly. - [ ] A namespace has logical units that are physically grouped together. An assembly does not have any classification. - [ ] A namespace has logical units that are physically grouped together for assemblies. Assembly classes are available in your program and will be logically grouped. -#### Q61. What is a tuple? +#### Q60. What is a tuple? - [ ] A data structure that has a specific number and sequence of elements - [ ] An object to store multiple variables of the same type in an array data structure - [ ] A group of classes designed specifically for grouping together objects and performing tasks on them - [ ] An array whose elements are jagged -#### Q62. What does IL stand for? +#### Q61. What does IL stand for? - [x] Intermediate Language - [ ] Intelligent Language - [ ] Intelligent Linq - [ ] Interpreted Language -#### Q63. You want to create an instance of several families of classes. Which design pattern best fits this objective? +#### Q62. You want to create an instance of several families of classes. Which design pattern best fits this objective? - [ ] Decorator - [ ] Singleton - [x] Abstract Factory - [ ] Bridge -#### Q64. Which statement about a read-only variable is _not_ true? +#### Q63. Which statement about a read-only variable is _not_ true? - [ ] It can be either static or an instance memeber. - [ ] At run time, its value is evaluated. - [ ] It can be initialized in either the constructor or the declaration. - [x] It can be initialized at declaration only. -#### Q65. What is the interface segregation principle? +#### Q64. What is the interface segregation principle? - [x] Many client-specific interfaces are better than one general-purpose interface. - [ ] Software entities should be open for extension, but closed for modification. - [ ] A class should have only a single responsibility - that is, only changes to one part of the software's specification should be able to affect the specification of the class. - [ ] Objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program. -#### Q66. Which choice is a set of features that extends the query capabilities of the .NET language syntax by adding sets of new standard query operators that allow data manipulation, regardless of the data source? - -- [ ] XAML -- [ ] C# -- [ ] XML -- [x] LINQ - -#### Q67. Why would the .NET Framework use Econo-JIT (Just-inTime)? +#### Q65. Why would the .NET Framework use Econo-JIT (Just-inTime)? - [ ] to compile only the methods that are called at run time and then store them in cache for one minute - [ ] to compile only methods called at run time - which are compiled the first time the methods are called and then stored in cache to be used for execution when the same methods are called again - [ ] to compile complete source code into native code in a single compilation cycle during deployment of the application - [x] to compile only the methods that are called at run time and remove them from memory after execution -#### Q68. What is the difference between a heap and a stack? +#### Q66. What is the difference between a heap and a stack? - [x] The stack contains stored value types; the heap contains stored reference types. - [ ] The heap is stored value types; the stack is stored reference types. - [ ] The heap is stored object types; the stack is stored class types. - [ ] The stack is stored object types; the heap is stored class types. -#### Q69. What is open closed principle? +#### Q67. What is open closed principle? - [x] software entities should be open for extension, but closed for modification. -#### Q70. How do you make sure that the garbage collector is done running when you call `GC.Collect()`? +#### Q68. How do you make sure that the garbage collector is done running when you call `GC.Collect()`? - [ ] There is no way to find this out. - [ ] You cannot. [`GC.Collect()`](https://docs.microsoft.com/en-us/dotnet/api/system.gc.collect) is a blocking method, and will return only once the garbage collector is done running. - [ ] by calling [`GC.WaitForFullGCComplete()`](https://docs.microsoft.com/en-us/dotnet/api/system.gc.waitforfullgccomplete) - [ ] by calling [`GC.WaitForPendingFinalizers()`](https://docs.microsoft.com/en-us/dotnet/api/system.gc.waitforpendingfinalizers) -#### Q71. What does JIT do in .Net? +#### Q69. What does JIT do in .Net? - [ ] JIT is used for deployment, versioning, and security. - [x] JIT translates the IL code to an assembly code and uses the CPU architecture of the target machine to execute a .NET application. diff --git a/git/git-quiz.md b/git/git-quiz.md index bb1999e2eb..134b1e7c21 100755 --- a/git/git-quiz.md +++ b/git/git-quiz.md @@ -836,29 +836,7 @@ Which of the following options is correct ? [Reference](https://stackoverflow.com/questions/1992364/git-recover-deleted-remote-branch) -#### Q102. After checking your Git status, you get the following output, which shows the file beta-notes.js in the commit but also unstaged. How can this situation occur? - -```bash -Changes to be committed: - (use "git reset HEAD ..." to unstage) - - modified: beta-notes.js - -Changes not staged for commit: - (use "git add ..." to update what will be committed) - (use "git checkout -- ..." to discard changes in working directory) - - modified: beta-notes.js -``` - -- [ ] There were two copies of beta-notes.js but one was deleted. -- [ ] There are two tracked copies of beta-notes.js but one was removed from the commit. -- [ ] Two copies of beta-notes.js were created, but only one is being tracked. -- [x] beta-notes.js was staged, then modified afterwards, creating two different versions of the file. - -[Reference](https://stackoverflow.com/questions/24837841/can-a-file-be-both-staged-and-unstaged-in-git) - -#### Q103. How would you display a histogram showing inserts, deletion, and modifications per file for a specific commit along with its general commit information? +#### Q102. How would you display a histogram showing inserts, deletion, and modifications per file for a specific commit along with its general commit information? - [ ] Use `git stat`. - [ ] Use `git debug --prettyprint`. @@ -867,7 +845,7 @@ Changes not staged for commit: [Reference](https://git-scm.com/docs/git-show#Documentation/git-show.txt---statltwidthgtltname-widthgtltcountgt) -#### Q104. What features do repository managers such as GitHub provide beyond Git? +#### Q103. What features do repository managers such as GitHub provide beyond Git? - [ ] Repository managers are proprietary versions of Git that do not include enhanced features. - [ ] Repository managers provide an enhanced command-line tool that is used to manage multiple local repositories. @@ -876,7 +854,7 @@ Changes not staged for commit: [reference](https://www.theserverside.com/video/Git-vs-GitHub-What-is-the-difference-between-them) -#### Q105. What command finds the HEAD of the current branch? +#### Q104. What command finds the HEAD of the current branch? - [ ] `git head --verify` - [ ] `git log --head` @@ -885,21 +863,21 @@ Changes not staged for commit: [reference](https://git-scm.com/docs/git-show-ref) -#### Q106. When Git Workflows contain a long-running branch, what purpose does the long-running branch serve? +#### Q105. When Git Workflows contain a long-running branch, what purpose does the long-running branch serve? - [ ] Long-running branches store unstable code until it os peer reviewed for integration into a feature branch. - [ ] Long-running branches correspond to agile sprints and are used to store related to features developed in the sprint. - [ ] Long-running branches contain code related to expiremental feature development that is merged into short-lived branches such as master. - [x] Long-running branches correspond to different stages of development and are allways open for topic/feature branches to be pulled into. -#### Q107. What command takes changes from the master branch on the remote repository orgin and merges then to the local checked-out branch? +#### Q106. What command takes changes from the master branch on the remote repository orgin and merges then to the local checked-out branch? - [ ] `git commit -u origin` - [ ] `git checkout origin` - [x] `git pull origin master` - [ ] `git push origin master` -#### Q108. While pushing changes to a remote repository, you receive the following message. How do you resolve this issue? +#### Q107. While pushing changes to a remote repository, you receive the following message. How do you resolve this issue? ```bash error: failed to push some refs to 'https://github.com/myrepo/simple.git' @@ -911,77 +889,77 @@ hint: Updates were rejected because the remote contains work that you do not hin - [ ] Execute a fetch, then execute another push. - [ ] Use the --force option with the push command. -#### Q109. What does the -p option add to the output of the `git log` command? +#### Q108. What does the -p option add to the output of the `git log` command? - [ ] It adds patch output that shows the differences introduced in each commit. - [x] It adds patch output that shows a summary listing modified files. - [ ] It adds padding to the output and displays a histogram showing the number of lines changed in each commit. - [ ] It adds the full commit message and notes associated with each commit. -#### Q110. What is the staging area or index? +#### Q109. What is the staging area or index? - [ ] an area that stores commits prior to them being pushed to the remote repository - [ ] an area containing stash entries that can applied to the working files - [ ] an area where changes from a branch in the remote repository are stored before they are applied to a local branch - [x] an area that stores information about changes that will be included in the next commit -#### Q111. What command would you use to stage changes to the index strictly for properties files in the current directory? +#### Q110. What command would you use to stage changes to the index strictly for properties files in the current directory? - [x] `git add *.properties` - [ ] `git add %.properties` - [ ] `git add .properties` - [ ] `git add properties` -#### Q112. What are untracked files? +#### Q111. What are untracked files? - [ ] files in the local repository that have not been merged into the master branch - [ ] staged files that Git does not know about because the have not been committed - [x] files in the working directory that Git does not know about because the have not been staged or committed - [ ] files in the remote repository that Git does not know about because they have not been tagged -#### Q113. What command takes changes from the master branch on the remote repository origin and merges them to the local checked-out branch? +#### Q112. What command takes changes from the master branch on the remote repository origin and merges them to the local checked-out branch? - [ ] git checkout origin - [ ] git commit -u origin - [x] git pull origin master - [ ] git push origin master -#### Q114. What type of Git hook could be used to validate that a commit message contains a ticket number? +#### Q113. What type of Git hook could be used to validate that a commit message contains a ticket number? - [ ] pre-commit - [x] commit-msg - [ ] applypatch-msg - [ ] prepare-commit-msg -#### Q115. What is the difference between git stash pop and git stash apply? +#### Q114. What is the difference between git stash pop and git stash apply? - [ ] git stash pop pushes the topmost commit to the current branch, while git stash apply caches the last commit in the current branch. - [x] git stash pop applies the topmost entry in the stash to the working files and removes it from the stash, while git stash apply applies the topmost entry in the stash to the working files but leaves it in the stash. - [ ] git stash pop merges the topmost commit to the current branch, while git stash apply merges the last commit in the current branch. - [ ] git stash pop applies the topmost entry in the stash to the working files but leaves it in the stash, while git stash apply applies the topmost entry in the stash to the working files and removes it from the stash. -#### Q116. After making some major changes to your code, you are a little nervous about committing. What command would you use to review the commit prior to making it? +#### Q115. After making some major changes to your code, you are a little nervous about committing. What command would you use to review the commit prior to making it? - [ ] git commit --verify - [ ] git notes show - [ ] git commit preview - [x] git commit --dry-run -#### Q117. What statement best describes Git's concept of HEAD? +#### Q116. What statement best describes Git's concept of HEAD? - [ ] a pointer to the most recently changed file in the stage/index - [ ] a pointer to the master branch - [x] a pointer to the most recent commit in the currently checked-out branch - [ ] a pointer to where the repository is stored in memory -#### Q118. After staging changes to several files, you realize the changes to the confin.properties file are incorrect, and need to be removed from the stage and working directory. What command can you use to remove the staged changes to the file? +#### Q117. After staging changes to several files, you realize the changes to the confin.properties file are incorrect, and need to be removed from the stage and working directory. What command can you use to remove the staged changes to the file? - [ ] git reset HEAD^ -- config.properties - [x] git rm config.properties - [ ] git rf config.properties - [ ] git checkout HEAD -- config.properties -#### Q119. After a recent release with a stack trace, an issue is create that indicates the problem is with a newly added configuration property named MaxConnections. What command can find all commits that add or remove the string MaxConnections? +#### Q118. After a recent release with a stack trace, an issue is create that indicates the problem is with a newly added configuration property named MaxConnections. What command can find all commits that add or remove the string MaxConnections? - [ ] - git grep -a "MaxConnections" - [ ] - git log --search-string "MaxConnections" diff --git a/go/go-quiz.md b/go/go-quiz.md index 2f889826c0..65e9e2e156 100644 --- a/go/go-quiz.md +++ b/go/go-quiz.md @@ -419,21 +419,14 @@ Relevant excerpt from the article: Explanation: There is defined neither log.ERROR, nor log.Error() in [log package](https://pkg.go.dev/log); log.Print() arguments are handled in the manner of fmt.Print(); log.Printf() arguments are handled in the manner of fmt.Printf(). -#### Q34. How does a `sync.Mutex` block while it is locked? - -- [x] any other call to lock that Mutex -- [ ] all goroutines -- [ ] any writes to the variable it is locking -- [ ] any reads or writes of the variable is it locking - -#### Q35. Which file names will the `go test` command recognize as test files? +#### Q34. Which file names will the `go test` command recognize as test files? - [ ] any that starts with `test` - [ ] any files that include the word `test` - [ ] only files in the root directory that end in `_test.go` - [x] any that ends in `_test.go` -#### Q36. What will be the output of this code? +#### Q35. What will be the output of this code? ``` ch := make(chan int) @@ -447,7 +440,7 @@ fmt.Println(val) - [ ] It will not compile - [ ] 2.718 -#### Q37. What will be the output of this program? +#### Q36. What will be the output of this program? ``` ch := make(chan int) @@ -461,7 +454,7 @@ fmt.Println(val) - [x] 0 - [ ] NaN -#### Q38. What will be printed in this code? +#### Q37. What will be printed in this code? ``` var stocks map[string]float64 // stock -> price @@ -474,7 +467,7 @@ fmt.Printf("%f\n", price) - [ ] The code will panic - [ ] NaN -#### Q39. What is the common way to have several executables in your project? +#### Q38. What is the common way to have several executables in your project? - [x] Have a cmd directory and a directory per executable inside it. - [ ] Comment out main. @@ -485,7 +478,7 @@ fmt.Printf("%f\n", price) 2. [medium](https://medium.com/@benbjohnson/structuring-applications-in-go-3b04be4ff091) 3. [medium](https://medium.com/golang-learn/go-project-layout-e5213cdcfaa2) -#### Q40. How can you compile main.go to an executable that will run on OSX arm64 ? +#### Q39. How can you compile main.go to an executable that will run on OSX arm64 ? - [ ] Set GOOS to **arm64** and GOARCH to **darwin**. - [ ] Set GOOS to **osx** and GOARCH to **arm64**. @@ -494,7 +487,7 @@ fmt.Printf("%f\n", price) [documentation](https://pkg.go.dev/cmd/go#hdr-Build_constraints) -#### Q41. What is the correct syntax ta start a goroutine that will `print Hello Gopher!`? +#### Q40. What is the correct syntax ta start a goroutine that will `print Hello Gopher!`? - [ ] `go(fmt.Println("Hello Gopher!"))` - [ ] `go func() { fmt.Println("Hello Gopher!") }` @@ -503,7 +496,7 @@ fmt.Printf("%f\n", price) [Example of start a goroutine](https://go.dev/play/p/KGgnAWpZMrS) -#### Q42. If you iterate over a map in a for range loop, in which order will the key:value pairs be accessed? +#### Q41. If you iterate over a map in a for range loop, in which order will the key:value pairs be accessed? - [x] in pseudo-random order that cannot be predicted - [ ] in reverse order of how they were added, last in first out @@ -512,7 +505,7 @@ fmt.Printf("%f\n", price) [Reference](https://go.dev/ref/spec#:~:text=The%20iteration%20order%20over%20maps%20is%20not%20specified) -#### Q43. What is an idiomatic way to customize the representation of a custom struct in a formatted string? +#### Q42. What is an idiomatic way to customize the representation of a custom struct in a formatted string? - [ ] There is no customizing the string representation of a type. - [ ] Build it in pieces each time by calling individual fields. diff --git a/google-ads/google-ads-quiz.md b/google-ads/google-ads-quiz.md index b29d0f742c..302467b68a 100755 --- a/google-ads/google-ads-quiz.md +++ b/google-ads/google-ads-quiz.md @@ -203,98 +203,85 @@ - [x] RLSA - [ ] Target ROAS -#### Q30. Maurice creates an ad heading that reads "Buy {Keyword:hats} Today". Which headline could not be displayed to a user for this ad? - -- [ ] Buy Caps Today -- [ ] Buy Helmets Today -- [ ] Buy Hats -- [ ] TBuy Fedoras Today - -#### Q31. Why are aad extensions beneficial? +#### Q30. Why are aad extensions beneficial? - [ ] They increase the character count for descriptions and headlines - [ ] They expand the ad and tend to increase the clickthrough rate - [ ] They allow you to integrate your data with third-party platforms such as Google Analytics - [ ] They reduce the overall cost of your campaigns -#### Q32. In a text ad, the display URL is made up of the domain from your final URL and up to two **\_\_\_**. +#### Q31. In a text ad, the display URL is made up of the domain from your final URL and up to two **\_\_\_**. - [ ] descriptions - [ ] paths - [ ] keywords - [ ] tracking tags -#### Q33. Within the Display Network, locations where your ad can appear are referred to as **\_**. +#### Q32. Within the Display Network, locations where your ad can appear are referred to as **\_**. - [ ] ad slots - [ ] placements - [ ] landing pages - [ ] displays -#### Q34. Which setting lets you monitor how certain criteria perform with your ads without limiting reach? +#### Q33. Which setting lets you monitor how certain criteria perform with your ads without limiting reach? - [ ] remarketing - [ ] conversion value - [ ] targeting - [ ] observation -#### Q35. Tory manages marketing for a hotel franchise with a thousand locations worldwide. Each hotel location has its own landing page. If Tory wanted to quickly generate search ads for every location, which ad type would be most beneficial? +#### Q34. Tory manages marketing for a hotel franchise with a thousand locations worldwide. Each hotel location has its own landing page. If Tory wanted to quickly generate search ads for every location, which ad type would be most beneficial? - [ ] Dynamic Search Ads - [ ] Responsive Search Ads - [ ] Universal Search Ads - [ ] Programmatic Search Ads -#### Q36. Which keyword is of the "phrase match" type? +#### Q35. Which keyword is of the "phrase match" type? - [ ] [discount flight deals] - [ ] discount+flight+deals - [ ] "discount flight deals" - [ ] discount flight deals -#### Q37. Janice operates a brand-new dry cleaning business, with five locations throughout Ireland. What would be a good way to organize a campaign announcing the grand opening? +#### Q36. Janice operates a brand-new dry cleaning business, with five locations throughout Ireland. What would be a good way to organize a campaign announcing the grand opening? - [ ] one campaign with an ad group for each location - [ ] one ad group containing all locations - [ ] one ad group for each service - [ ] one campaign for each location -#### Q38. Which factor does Google Ads consider when determining whether a remarketing list qualifies for a similar audiences list? - -- [ ] the average bid targeting the list -- [ ] the average monthly spend targeting the list -- [ ] the amount of revenue generated by the list -- [ ] the number of visitors on the list - -#### Q39. What is ad frequency? +#### Q37. What is ad frequency? - [ ] the total number of impressions your advertisement receives - [ ] the total number of users who clicked on your advertisement - [ ] the number of times a single user will see your advertisement - [ ] the number of visitors who completed the checkout process -#### Q40. Which metric does not help in understanding your ROI? +#### Q38. Which metric does not help in understanding your ROI? - [ ] production costs - [ ] frequency - [ ] revenue - [ ] cost per conversion -#### Q41. Which choice represents the hierarchy of search campaigns in Google Ads? +#### Q39. Which choice represents the hierarchy of search campaigns in Google Ads? - [ ] ads > keywords > campaign - [ ] campaign > ad group > ads - [ ] keywords > campaign > ads - [ ] ad group > campaign > ads -#### Q42. If you continuously search for your own advertisement using Google, just to confirm that it appears, it is very likely that you will inflate your **\_** and decrease your **\_**. +#### Q40. If you continuously search for your own advertisement using Google, just to confirm that it appears, it is very likely that you will inflate your ** +\_** and decrease your **\_**. - [ ] impressions; clickthrough rate - [ ] conversions; ROI - [ ] clickthrough rate; impressions - [ ] ROI; conversions -#### Q43. Which report would most accurately show how far away users are when clicking your ads in relation to the location of your business? +#### Q41. Which report would most accurately show how far away users are when clicking your ads in relation to the location of your business? - [ ] dimension report - [ ] geographic report @@ -303,14 +290,15 @@ [Reference](https://support.google.com/google-ads/answer/2453994) -#### Q44. If your average daily budge is $20, what is the maximum amount Google Ads may charge you on a single day? +#### Q42. If your average daily budge is $20, what is the maximum amount Google Ads may charge you on a single day? - [ ] $22 - [ ] $20 - [ ] $40 - [ ] $36 -#### Q45. Ursula owns a yoga studio in New York City (NYC). A customer performs several searches in the following order: "yoga studio near me", "best yoga NYC", "yoga free trial NYC". What attribution model would assign 100% of the credit for the conversion to _yoga free trial NYC_? +#### Q43. Ursula owns a yoga studio in New York City (NYC). A customer performs several searches in the following order: "yoga studio near me", "best yoga NYC", "yoga free trial NYC". What attribution model would assign 100% of the credit for the conversion to _ +yoga free trial NYC_? - [ ] last position - [ ] last search diff --git a/google-analytics/google-analytics-quiz.md b/google-analytics/google-analytics-quiz.md index 0c3197e2b6..4f95664638 100755 --- a/google-analytics/google-analytics-quiz.md +++ b/google-analytics/google-analytics-quiz.md @@ -183,42 +183,28 @@ - [ ] Conversions > Goals > Overview - [ ] Behavior > Events > Overview -#### Q26. If you wanted to verify Google Analytics was working immediately after installation, which report would you review? - -- [ ] Acquisition > Overview -- [x] Realtime > Overview -- [ ] Behavior > Behavior Flow -- [ ] Audience > Active Users - -#### Q27. What does this represent inside of Google Analytics? +#### Q26. What does this represent inside of Google Analytics? - [x] segment - [ ] report tab - [ ] data header - [ ] view -#### Q28. What is the relationship between an event and an event goal? - -- [ ] An event goal must be created in order to track events. -- [ ] Nothing, an event is another name for event goal. -- [ ] An event is captured per user; an event goal is captured per session. -- [x] An event is a user interaction; an event goal is triggered by a selected event. - -#### Q29. When configuring the global site tag, where in the HTML should it be placed? +#### Q27. When configuring the global site tag, where in the HTML should it be placed? - [ ] directly before the ` ` tag - [x] directly after the `` tag - [ ] directly after the `` tag - [ ] directly before the `` tag -#### Q30. Refer to the two following URLs. How can you make this data more readable in Google Analytics by mapping the actual product names to the ID in the URL? `.../shop/?ProductID=1234` `.../shop/?ProductID=5678` +#### Q28. Refer to the two following URLs. How can you make this data more readable in Google Analytics by mapping the actual product names to the ID in the URL? `.../shop/?ProductID=1234` `.../shop/?ProductID=5678` - [ ] Configure calculated metrics. - [ ] Use a custom import. - [x] This functionality is not possible. - [ ] Create a search and replace filter. -#### Q31. What is this report an example of? +#### Q29. What is this report an example of? ![Tree map](https://i.imgur.com/CJFjxxD.png) @@ -227,308 +213,301 @@ - [ ] user flow - [x] treemap -#### Q32. You already have Google Analytics set up on your website, but decide to add Google Tag Manager. What do you do with the existing Analytics tag? +#### Q30. You already have Google Analytics set up on your website, but decide to add Google Tag Manager. What do you do with the existing Analytics tag? - [x] Remove the tag. - [ ] Move the tag to just before ` `. - [ ] Keep the tag. - [ ] Move the tag to just before ``. -#### Q33. How do you review the revenue and conversion rate between your traffic sources? +#### Q31. How do you review the revenue and conversion rate between your traffic sources? - [ ] Create two segments, one for revenue and one for conversion rate, and then review Acquisition > All Traffic. - [ ] View Ecommerce > Overview and toggle Traffic Sources in the Explorer tab. - [x] Create two segments, one for revenue and one for conversion rate, and then review Conversions > Ecommerce. - [ ] Go to All Traffic > Source Medium and set eCommerce in the Conversions menu. -#### Q34. Which calculated metric would return average events per user? +#### Q32. Which calculated metric would return average events per user? - [x] `{{Total Events}} / {{Users}} Type: Float` - [ ] `{{Goals}} / {{Users}} Type: Percentage` - [ ] `{{Goals}} / {{Users}} Type: Float` - [ ] `{{Total Events}} / {{Users}} Type: Percentage` -#### Q35. What report helps you understand how many days it takes from the time a user first visits to the time the user converts? +#### Q33. What report helps you understand how many days it takes from the time a user first visits to the time the user converts? - [ ] Assisted Conversions - [x] Time Lag - [ ] Path Length - [ ] Shopping Behavior -#### Q36. What is a best practice after launching a major change to your home page? +#### Q34. What is a best practice after launching a major change to your home page? - [ ] Create a new filter. - [x] Create an annotation. - [ ] Create a new view. - [ ] Create a new property. -#### Q37. You want to enable a destination goal for a URL that appends query string parameters with each submission—for example, `/thanks?uid=123`. Which match types would work? +#### Q35. You want to enable a destination goal for a URL that appends query string parameters with each submission—for example, `/thanks?uid=123`. Which match types would work? - [ ] equals to /thanks - [ ] begins with /thanks - [x] equals to /thanks?uid= - [ ] regular expression /thanks[a z] -#### Q38. You notice a sudden and unexplained change in traffic. Where do you look to see if someone added a filter? +#### Q36. You notice a sudden and unexplained change in traffic. Where do you look to see if someone added a filter? - [ ] Admin > Views > View Settings - [x] Admin > Account > Change History - [ ] Admin > Views > Annotations - [ ] Admin > Account > User Management -#### Q39. Your website has a logged in experience for users. What do you implement to track individual engagement across multiple sessions and multiple devices? +#### Q37. Your website has a logged in experience for users. What do you implement to track individual engagement across multiple sessions and multiple devices? - [ ] Client- [ ] ID - [x] User-ID - [ ] cross- [ ] domain tracking - [ ] session unification -#### Q40. What are these examples of? +#### Q38. What are these examples of? - [ ] annotations - [x] affinity categories - [ ] custom audiences - [ ] channels -#### Q41. Where can you check the status of your tracking code? +#### Q39. Where can you check the status of your tracking code? - [ ] Admin > Tracking Info > Tracking Code - [ ] Customization > Settings > Tracking Code - [ ] Customization > Property > Tracking - [x] Admin > Property Settings -#### Q42. What feature do you use to capture how many times a button was pressed? +#### Q40. What feature do you use to capture how many times a button was pressed? - [ ] action tracking - [ ] click handler - [x] event tracking - [ ] goals -#### Q43. Which step in this funnel had the largest percentage of exits? +#### Q41. Which step in this funnel had the largest percentage of exits? - [ ] Billing and Shipping - [x] Cart - [ ] There are no exits. - [ ] Payment -#### Q44. What can you use as the basis for remarketing within Google Ads? +#### Q42. What can you use as the basis for remarketing within Google Ads? - [ ] dynamics - [ ] personas - [x] audiences - [ ] tags -#### Q45. If you want to exclude traffic to your website from people on your company network, what do you create? +#### Q43. If you want to exclude traffic to your website from people on your company network, what do you create? - [ ] a filter to exclude traffic to the hostname - [ ] a segment to exclude traffic to the hostname - [ ] a segment to exclude traffic from IP addresses - [x] a filter to exclude traffic from IP addresses -#### Q46. You are running Google Ads and want to automatically track ad performance within Google Analytics. What feature do you enable? +#### Q44. You are running Google Ads and want to automatically track ad performance within Google Analytics. What feature do you enable? - [x] auto tagging - [ ] ad serving - [ ] advertising features - [ ] API link -#### Q47. What is an example of a property in Google Analytics? +#### Q45. What is an example of a property in Google Analytics? - [ ] account - [x] website - [ ] graph - [ ] custom report -#### Q48. By default, if a URL is accessed in the browser once as /contact/ and once again as /CONTACT/, how does the data appear in Google Analytics? +#### Q46. By default, if a URL is accessed in the browser once as /contact/ and once again as /CONTACT/, how does the data appear in Google Analytics? - [ ] two pageviews for /contact/ - [x] one pageview for /contact/ and one pageview for /CONTACT/ - [ ] An error will be present, as a filter must be created to support this use case. - [ ] two pageviews for /CONTACT/ -#### Q49. What is the hierarchy between sessions, users, and hits? +#### Q47. What is the hierarchy between sessions, users, and hits? - [x] User > Session > Hit - [ ] Session > Hit > User - [ ] Session > User > Hit - [ ] User > Hit > Session -#### Q50. Which feature would allow you to navigate between multiple reports while comparing the data collected for visitors in Los Angeles to the data for visitors in London? +#### Q48. Which feature would allow you to navigate between multiple reports while comparing the data collected for visitors in Los Angeles to the data for visitors in London? - [x] segments - [ ] filters - [ ] views - [ ] dimensions -#### Q51. Where could you analyze the conversion paths users followed across various marketing channels? +#### Q49. Where could you analyze the conversion paths users followed across various marketing channels? - [ ] Conversions > Goals > Reverse Goal Path - [ ] Conversions > Goals > Funnel Visualization - [ ] Behavior > Behavior Flow - [x] Conversions > Multi- [ ] Channel Funnels -#### Q52. What does Google Analytics add to the first party cookie to differentiate new from returning visitors? +#### Q50. What does Google Analytics add to the first party cookie to differentiate new from returning visitors? - [ ] an HTTP request - [x] a randomly generated client ID - [ ] a 1x1 tracking pixel - [ ] a SessionStorage object -#### Q53. It is September, and you want to evaluate the most popular page on your site for the month of August. What first steps would you take? +#### Q51. It is September, and you want to evaluate the most popular page on your site for the month of August. What first steps would you take? - [x] 1. Set Date Range to Last 30 Days. 2. Visit Behavior > Site Content > All Pages. - [ ] 1. Set Date Range to Last 30 Days. 2. Visit Behavior > Site Content > Content Drilldown. - [ ] 1. Set Date Range to Last Month. 2. Visit Behavior > Site Content > Content Drilldown. - [x] 1. Set Date Range to Last Month. 2. Visit Behavior > Site Content > All Pages. -#### Q54. This report is sorted by bounce rate in ascending order. How do you view these results in order of importance instead? +#### Q52. This report is sorted by bounce rate in ascending order. How do you view these results in order of importance instead? - [ ] Sort Type: Absolute Change - [ ] Toggle Comparison View - [x] Sort Type: Weighted Sort - [ ] Use Table Filter -#### Q55. What channel receives attribution if no traffic source data is available? +#### Q53. What channel receives attribution if no traffic source data is available? - [ ] (Other) - [x] Direct - [ ] Referral - [ ] Organic Search -#### Q56. Which is an example of a micro goal? +#### Q54. Which is an example of a micro goal? - [x] signing up for an account after clicking an ad - [ ] playing a video before signing up - [ ] buying a product after reading an email - [ ] filling out a contact form after reading a social post -#### Q57. What parameter should you use if you were tracking different versions of an ad? +#### Q55. What parameter should you use if you were tracking different versions of an ad? - [x] utm_campaign - [ ] utm_medium - [ ] utm_term - [ ] utm_content -#### Q58. The tracking ID contains a string that follows this format: `UA XXXXXX Y`. What does the Y refer to? +#### Q56. The tracking ID contains a string that follows this format: `UA XXXXXX Y`. What does the Y refer to? - [x] the property number - [ ] the account number - [ ] the view number - [ ] It is random. -#### Q59. If a user fills in a contact form and provides an email address, which report would contain that information? +#### Q57. If a user fills in a contact form and provides an email address, which report would contain that information? - [ ] Behavior > Events > Overview - [x] Acquisition > Social > Form Submissions - [ ] Acquisition > Social > Users Flow - [ ] No report contains this information. -#### Q60. If you want to quickly see what days and times were most popular for visiting your site, what do you do? +#### Q58. If you want to quickly see what days and times were most popular for visiting your site, what do you do? - [ ] Go to Home > Users by time of day (Widget) - [x] Go to the report at Audience > Cohort Analysis and toggle By Day. - [ ] Go to Behavior > Engagement and toggle Hourly. - [ ] Create a pivot table by Hour on Site Content > All Pages. -#### Q61. If your site does not attribute transactions to the original source, but instead shows all transactions attributed to your payment processor (for example Stripe, PayPal, or Square), how do you remedy this issue? +#### Q59. If your site does not attribute transactions to the original source, but instead shows all transactions attributed to your payment processor (for example Stripe, PayPal, or Square), how do you remedy this issue? - [ ] Switch to Enhanced Ecommerce. - [ ] Use a search and replace filter. - [x] Create a referral exclusion. - [ ] Add gtag.js to PayPal tags. -#### Q62. What do you use to compare three dimensions? +#### Q60. What do you use to compare three dimensions? - [ ] performance table - [x] custom reports - [ ] Explorer panel - [ ] relational table -#### Q63. Is it possible to measure how far someone scrolls on a page using Google Analytics? If so, how? +#### Q61. Is it possible to measure how far someone scrolls on a page using Google Analytics? If so, how? - [ ] yes, with a calculated metric - [x] yes, by viewing in page analytics - [ ] yes, with event tracking - [ ] no, not possible -#### Q64. When you enable advertising features, what do you gain access to? +#### Q62. When you enable advertising features, what do you gain access to? - [ ] Google Ads data sync - [ ] enhanced UTM tracking - [ ] Google Adsense data sync - [x] Demographics and Interests reports -#### Q65. Which choice is an example of a micro goal? - -- [ ] playing a video before signing up -- [ ] buying a product after reading an email -- [ ] filling out a contact form after reading a social post -- [x] signing up for an account after clicking an ad - -#### Q66. What is the latest version of the analytics tracking tag? +#### Q63. What is the latest version of the analytics tracking tag? - [x] gtag.js - [ ] urchin.js - [ ] gaq.push and ga.js - [ ] analytics.js -#### Q67. What is an example of a dimension? +#### Q64. What is an example of a dimension? - [ ] Sessions - [ ] Bounce Rate - [ ] Conversions - [x] Source/Medium -#### Q68. Which report displays the page a visitor arrived on? +#### Q65. Which report displays the page a visitor arrived on? - [ ] Behavior Flow - [ ] Exit Pages - [x] Landing Pages - [ ] Channels -#### Q69. You are tracking events of playback of video on the home page of a website. You want users who watch the video, but still leave the page with no additional pageviews or interactions, to still be included in the bounce rate calculation. What must be configured? +#### Q66. You are tracking events of playback of video on the home page of a website. You want users who watch the video, but still leave the page with no additional pageviews or interactions, to still be included in the bounce rate calculation. What must be configured? - [x] non-interaction event - [ ] implicit event - [ ] advanced events - [ ] default event -#### Q70. Which attribution model does Google Analytics apply by default for standard reports? +#### Q67. Which attribution model does Google Analytics apply by default for standard reports? - [ ] Linear - [ ] First Interaction - [ ] Last Interaction - [x] Last Non-Direct Click -#### Q71. If you want to track one destination goal but have two URLs that could trigger the goal (for example,/thank-you and /checkout-complete), what approach can you use? +#### Q68. If you want to track one destination goal but have two URLs that could trigger the goal (for example,/thank-you and /checkout-complete), what approach can you use? - [ ] Create a content grouping, and then use the group as the destination. - [ ] Add the additional page as a funnel step. - [x] Use a regular expression when adding the goal destination. - [ ] That is not possible. -#### Q72. If you created a calculated metric that returned a value of "80" with Time as the formatting type, how would it be represented in Google Analytics? +#### Q69. If you created a calculated metric that returned a value of "80" with Time as the formatting type, how would it be represented in Google Analytics? - [ ] 0:01:20 - [x] 80 - [ ] 80:00:00 - [ ] 1:20:00 -#### Q73. You want to compare the revenue, top products, and average order value between people who viewed three or more pages on your site, to those who viewed fewer. What do you do? +#### Q70. You want to compare the revenue, top products, and average order value between people who viewed three or more pages on your site, to those who viewed fewer. What do you do? - [ ] Create a custom report where Page Depth is >/3 or Page Depth is <3. Toggle on Revenue, Top Products, and Average Order Value as Dimensions. - [ ] View the Product Performance report and add Page Depth as a secondary dimension. Create a table filter for Page Depth greater than 3 and Page Depth less than 3. - [x] Create a custom segment where Page Depth is >/3 and another segment where Page Depth is <3. Apply both segments while on the Ecommerce Overview report. - [ ] View the Ecommerce Overview report and create a table filter where Page Depth is >/3 or Page Depth is <3. -#### Q74. If you wanted to create a user-defined metric to measure Revenue per User, what would you use? +#### Q71. If you wanted to create a user-defined metric to measure Revenue per User, what would you use? - [ ] ecommerce metrics - [ ] custom dimensions - [x] calculated metrics - [ ] custom metrics -#### Q75. You are managing analytics for a recipe website that has the following categories: Appetizers, Main Dishes, and Desserts. What do you create in order to compare aggregated data of all recipes in the Appetizer category vs. all recipes in the Desserts category? +#### Q72. You are managing analytics for a recipe website that has the following categories: Appetizers, Main Dishes, and Desserts. What do you create in order to compare aggregated data of all recipes in the Appetizer category vs. all recipes in the Desserts category? - [ ] custom channels - [ ] advanced filters @@ -537,49 +516,49 @@ [answer](https://support.google.com/analytics/answer/2853423?hl=en) -#### Q76. How would you add a secondary dimension to a report? +#### Q73. How would you add a secondary dimension to a report? - [ ] from the Insights panel - [x] from the Secondary dimension menu - [ ] all of these answers - [ ] with a table filter -#### Q77. You operate a website that has a three-step sign-up process. However, each step of the sign-up process loads at the same URL. If you wanted to assign a unique URL to each step and track it within Google Analytics as a pageview, what would you do? +#### Q74. You operate a website that has a three-step sign-up process. However, each step of the sign-up process loads at the same URL. If you wanted to assign a unique URL to each step and track it within Google Analytics as a pageview, what would you do? - [ ] Use virtual pageviews. - [ ] Configure a campaign URL. - [ ] Use the preview tag. - [x] Use event tracking. -#### Q78. It is a best practice to always have one of what kind of view? +#### Q75. It is a best practice to always have one of what kind of view? - [ ] property - [ ] custom - [ ] segmented - [x] unfiltered -#### Q79. You send an email including a link to your website without any UTM parameters. A visitor clicks that link from a secured (https) email platform such as Gmail. What source is shown for that traffic? +#### Q76. You send an email including a link to your website without any UTM parameters. A visitor clicks that link from a secured (https) email platform such as Gmail. What source is shown for that traffic? - [ ] Email - [x] Referral - [ ] (other) - [ ] Direct -#### Q80. Which type of goal allows you to specifiy a funnel? +#### Q77. Which type of goal allows you to specifiy a funnel? - [ ] Destination - [ ] Duration - [ ] Pages/Screens per Session - [ ] Event -#### Q82. What is an interaction that causes data to be sent to Analytics? +#### Q78. What is an interaction that causes data to be sent to Analytics? - [ ] dimension - [ ] metric - [x] hit - [ ] tag -#### Q83. What are the four scope types? +#### Q79. What are the four scope types? - [ ] Visitors, Visits, Events, and Products - [ ] Visitors, Visits, Actions, and Catalog diff --git a/google-cloud-platform/gcp-quiz.md b/google-cloud-platform/gcp-quiz.md index 4b3f6471de..5396b7e6ed 100755 --- a/google-cloud-platform/gcp-quiz.md +++ b/google-cloud-platform/gcp-quiz.md @@ -121,119 +121,119 @@ Note: Free trial doesn't have the organizations. - [ ] Redis and PostgreSQL - [x] MySQL and PostgreSQL -#### Q19. You want to quickly test a single Docker container image that will start a stateless HTTP service on GCP. Which service do you select to host your container image? +#### Q18. You want to quickly test a single Docker container image that will start a stateless HTTP service on GCP. Which service do you select to host your container image? - [ ] Cloud Run - [ ] Cloud Run on Google Kubernetes Engine - [ ] Cloud Functions - [x] Google Kubernetes Engine -#### Q20. You want to develop Firebase security rules following Google best practices. Which tool(s) do you use? +#### Q19. You want to develop Firebase security rules following Google best practices. Which tool(s) do you use? - [x] Firebase Emulator - [ ] Firebase Emulator and GCP Rules Simulator - [ ] GCP policy emulator and Firebase Rules Simulator - [ ] Firebase Emulator and Firebase Rules Simulator -#### Q21. You want to build an application with conversation interpretation based on machine learning speech understanding. Which service is a best fit for this scenario? +#### Q20. You want to build an application with conversation interpretation based on machine learning speech understanding. Which service is a best fit for this scenario? - [x] Dialogflow - [ ] Natural Language Translation - [ ] Speech API - [ ] AutoML Natural Language -#### Q22. Which service must you enable on your GKE cluster in order to use Cloud Run on Google Kubernetes Engine (GKE)? +#### Q21. Which service must you enable on your GKE cluster in order to use Cloud Run on Google Kubernetes Engine (GKE)? - [x] Stackdriver - [ ] Istio - [ ] Knative - [ ] Spinnaker -#### Q23. How can you enable clients inside a GKE cluster to be able to contact Pods? +#### Q22. How can you enable clients inside a GKE cluster to be able to contact Pods? - [ ] Configure the clients to connect via the default cluster IP. - [ ] Configure an external name. Configure the clients to connect via the external name. - [x] Configure a node port. COnfigure the clients to connect via the node port. - [ ] Configure a load balancer. Configure the clients to connect via the load balancer. -#### Q24. You want to capture the message acknowledgment state of a subscription at a given time. What do you do? +#### Q23. You want to capture the message acknowledgment state of a subscription at a given time. What do you do? - [ ] Create a Cloud Pub/Sub subscription backup. - [ ] Create a Cloud Pub/Sub subscription topic. - [x] Create a Cloud Pub/Sub subscription snapshot. - [ ] Create a Cloud Pub/Sub subscription. -#### Q25. You need to set a bucket storage class for data that will be accessed once a month or less. Which type do you select? +#### Q24. You need to set a bucket storage class for data that will be accessed once a month or less. Which type do you select? - [ ] coldline - [ ] multi-regional - [ ] regional - [x] nearline -#### Q26. Which command copies a file named test.txt to a Cloud Storage bucket named myBucket? +#### Q25. Which command copies a file named test.txt to a Cloud Storage bucket named myBucket? - [ ] `gcloud cp gs://myBucket test.txt` - [ ] `gsutil cp gs://myBucket test.txt` - [ ] `gcloud cp test.txt gs://myBucket` - [x] `gsutil cp test.txt gs://myBucket` -#### Q27. Which command adds a column family named `cf1` to your Bigtable table named `my-table`? +#### Q26. Which command adds a column family named `cf1` to your Bigtable table named `my-table`? - [ ] `cbt createfamily cf1 my-table` - [x] `cbt createfamily my-table cf1` - [ ] `gcloud createfamily cf1 my-table cf1` - [ ] `gcloud createfamily my-table cf1` -#### Q28. Which command do you use to connect to a running Compute Engine instance with SSH? +#### Q27. Which command do you use to connect to a running Compute Engine instance with SSH? - [ ] `gcloud ssh compute [instance_name] --zone=[zone]` - [ ] `compute ssh connect [instance_name] --zone=[zone]` - [x] `gcloud compute ssh [instance_name] --zone=[zone]` - [ ] `compute connect ssh [instance_name] --zone=[zone]` -#### Q29. You need to set CORS for some objects in a bucket for a client-side application. What do you do? +#### Q28. You need to set CORS for some objects in a bucket for a client-side application. What do you do? - [ ] Segment the objects into two buckets. For the CORS objects, set the CORS policy at the bucket level. - [x] Segment the objects into two buckets. For the CORS objects, set the CORS policy at the bucket level. Add client-side code to handle the requests. - [ ] Leave the objects in one bucket. Set the CORS policy at the object level. - [ ] Leave the objects in one bucket. Set the CORS policy at the object level. Add client-side code to handle the requests. -#### Q30. For your application, you are building a CI/CD pipeline that logs information when a message is sent to a queue. Which services should you select? +#### Q29. For your application, you are building a CI/CD pipeline that logs information when a message is sent to a queue. Which services should you select? - [ ] Cloud Functions and Cloud Spanner - [x] Cloud Functions and Cloud Pub/Sub - [ ] Cloud Run and Cloud Pub/Sub - [ ] Cloud Run and Cloud Spanner -#### Q31. You need to create instances with identical configurations that cannot be changed. Which Compute Engine feature do yo use? +#### Q30. You need to create instances with identical configurations that cannot be changed. Which Compute Engine feature do yo use? - [x] instance templates - [ ] instance groups - [ ] snapshots - [ ] instances -#### Q32. You want to automatically perform security scans on user-developed containers. Where should you advise your users to host their containers? +#### Q31. You want to automatically perform security scans on user-developed containers. Where should you advise your users to host their containers? - [x] Google Container Registry - [ ] GitLab - [ ] Artifactory - [ ] Docker Hub -#### Q33. You need to control incoming and outgoing traffic to a Compute Engine instance. What do yo do? +#### Q32. You need to control incoming and outgoing traffic to a Compute Engine instance. What do yo do? - [x] Configure firewall rules. - [ ] Configure VPC Network Peering. - [ ] Configure routes. - [ ] Configure external IP addresses. -#### Q34. Which object is a container for GCP services instances? +#### Q33. Which object is a container for GCP services instances? - [ ] group - [ ] folder - [x] project - [ ] organization -#### Q35. What is needed to access GCP APIs in your project? +#### Q34. What is needed to access GCP APIs in your project? - [ ] GCP VMs - [ ] GCP buckets @@ -242,7 +242,7 @@ Note: Free trial doesn't have the organizations. [reference link](https://cloud.google.com/endpoints/docs/openapi/enable-api) -#### Q36. Which object is used to hold payment information for a GCP project? +#### Q35. Which object is used to hold payment information for a GCP project? - [ ] organization - [x] billing account @@ -251,7 +251,7 @@ Note: Free trial doesn't have the organizations. [reference link](https://cloud.google.com/billing/docs/images/billing-project.png) -#### Q37. You need to cache your HTTP and HTTPS static content closer to users, so that you can get faster delivery and reduce serving costs. Which service do you set up? +#### Q36. You need to cache your HTTP and HTTPS static content closer to users, so that you can get faster delivery and reduce serving costs. Which service do you set up? - [ ] Cloud DNS - [ ] Cloud NAT @@ -260,7 +260,7 @@ Note: Free trial doesn't have the organizations. [reference link](https://cloud.google.com/cdn/docs/caching) -#### Q38. You are designing security for an IoT device application. What best practices should you include in your design? +#### Q37. You are designing security for an IoT device application. What best practices should you include in your design? - [ ] Use a private key for each device. Keep the private key secret. - [ ] Use a public key for each device. Keep the public key secret. @@ -269,28 +269,28 @@ Note: Free trial doesn't have the organizations. [reference link](https://cloud.google.com/iot/docs/concepts/device-security) -#### Q39. You need to set a WordPress site with high availability on GCP using the fewest steps. What do you do? +#### Q38. You need to set a WordPress site with high availability on GCP using the fewest steps. What do you do? - [ ] Configure and launch the WordPress HA deployment template from the GCP Marketplace. - [ ] Configure and launch the WordPress HA deployment template from the WordPress Marketplace. - [x] Create, configure, and launch a WordPress HA deployment template on Compute Engine. - [ ] Create, configure, and launch a WordPress HA deployment template on Google Kubernetes Engine. -#### Q41. How do you configure Cloud Build to rebuild your image when a change is made to the source code? +#### Q39. How do you configure Cloud Build to rebuild your image when a change is made to the source code? - [x] Add a Cloud Build trigger, and set it to fire on commit to associate repository. - [ ] Add a Cloud Build function, and set it to fire on commit to associate repository. - [ ] Add a Cloud Build trigger, and set it to fire on commit to associate registry. - [ ] Add a Cloud Build function, and set it to fire on commit to associate registry. -#### Q42. To be able to decrypt files that were encrypted with a customer-manager key, what conditions must be met? +#### Q40. To be able to decrypt files that were encrypted with a customer-manager key, what conditions must be met? - [x] Specify the decryption key with the same name as the encryption key. At least one version of a key with that name must be enabled. - [ ] Specify a decryption key and version with the same name as the encryption key and version. The name key and that version must be enabled. - [ ] Specify the decryption key with the same name as the encryption key. The named key and that version must be enabled. - [ ] Specify a decryption key and version with the same name as the encryption key and version. At least one version of a key with that name must be enabled. -#### Q43. You want to encrypt a Compute Engine. What do you need to do? +#### Q41. You want to encrypt a Compute Engine. What do you need to do? - [x] Nothing. Images are encrypted by default with a Google-managed key. - [ ] Nothing. Images are encrypted by default with a customer-managed key. @@ -299,7 +299,7 @@ Note: Free trial doesn't have the organizations. [Reference](https://cloud.google.com/compute/docs/disks/customer-supplied-encryption) -#### Q44. You want to quickly evaluate Cloud Filestore. What are the steps, in order, to set up a test environment? +#### Q42. You want to quickly evaluate Cloud Filestore. What are the steps, in order, to set up a test environment? - [ ] ``` @@ -332,7 +332,7 @@ Note: Free trial doesn't have the organizations. [Reference](https://cloud.google.com/filestore/docs/quickstart-console) -#### Q45. You need to optimize spending for always-on Compute Engine virtual machines of certain sizes and types-with minimum effort. What do you do? +#### Q43. You need to optimize spending for always-on Compute Engine virtual machines of certain sizes and types-with minimum effort. What do you do? - [ ] Analyze machine usage to verify that machines will be on for more that 25% of the time, and verify that contained use discounts have been automatically applied to your bill. - [x] Analyze machine usage to verify that machines will be on for more that 25% of the time, and verify that sustained use discounts have been automatically applied to your bill. @@ -341,28 +341,28 @@ Note: Free trial doesn't have the organizations. [Reference](https://cloud.google.com/compute/docs/sustained-use-discounts) -#### Q46. You are designing a GCP replacement for your on-premises data warehouse. Which service do you select? +#### Q44. You are designing a GCP replacement for your on-premises data warehouse. Which service do you select? - [ ] Cloud SQL - [ ] Bigtable - [ ] Cloud Spanner - [x] BigQuery -#### Q47. How can you quickly back up a persistent disk on Compute Engine? +#### Q45. How can you quickly back up a persistent disk on Compute Engine? - [x] Take a snapshot - [ ] Create an instance group - [ ] Create an instance template - [ ] Create an image -#### Q48. You are implementing IAM roles for your organization following GCP best practice. Which statement best reflects this? +#### Q46. You are implementing IAM roles for your organization following GCP best practice. Which statement best reflects this? - [ ] At minimum, you should have two levels of access: one for admins, one for users. - [ ] At minimum, you should have three levels of access: one for networking, one for security, one for developers. - [x] At minimum, you should have three levels of access: one for admins, one for security, one for users. - [ ] At minimum, you should have two levels of access: one for networking, one for developers. -#### Q49. You need to quickly build an application that logs all file uploads to a Cloud Storage bucket. Which service do you select? +#### Q47. You need to quickly build an application that logs all file uploads to a Cloud Storage bucket. Which service do you select? - [x] Cloud Functions - [ ] Cloud Run @@ -371,7 +371,7 @@ Note: Free trial doesn't have the organizations. [Reference](https://cloud.google.com/functions#all-features) -#### Q50. You need to answer the question "How long does it take my application to handle a given request?" What do you do? +#### Q48. You need to answer the question "How long does it take my application to handle a given request?" What do you do? - [ ] Configure Stackdriver Error Reporting. - [ ] Configure Stackdriver Profiler. @@ -380,14 +380,14 @@ Note: Free trial doesn't have the organizations. [Reference](https://stackoverflow.com/questions/69434714/how-to-use-stackdriver-on-gcp-to-get-how-long-does-it-take-to-process-a-request) -#### Q51. You want to select a fully managed, serverless platform for developing and hosting web applications at scale on GCP. Which service should you choose? +#### Q49. You want to select a fully managed, serverless platform for developing and hosting web applications at scale on GCP. Which service should you choose? - [x] Google App Engine. - [ ] Cloud Functions. - [ ] Google Kubernetes Engine. - [ ] Google Compute Engine. -#### Q52. You have a set of exploratory queries that you want to run as inexpensively as possible in BigQuery. What should you do? +#### Q50. You have a set of exploratory queries that you want to run as inexpensively as possible in BigQuery. What should you do? - [ ] Set the job priority for each query to Batch and expect to see query results immediately. - [x] Set the job priority for each query to Interactive and expect to see query results immediately. @@ -398,35 +398,35 @@ Explanation: _BigQuery offers a choice of two pricing models for runnig queries: [Reference](https://cloud.google.com/bigquery/pricing) -#### Q53. How do you run a Docker container image on a Google Compute Engine virtual machine? +#### Q51. How do you run a Docker container image on a Google Compute Engine virtual machine? - [ ] Create a VM instance, and then SSH into the instance and install Kubernetes tools. - [ ] Create a VM instance, and then SSH into the instance and install Docker tools. - [ ] Create a VM instance and, in the web UI, select Allow HTTP traffic. - [x] Create a VM instance and, in the web Ul, select Deploy a container image to this instance. -#### Q54. To configure a GCP Organization, which item should you create first?To configure a GCP Organization, which item should you create first? +#### Q52. To configure a GCP Organization, which item should you create first?To configure a GCP Organization, which item should you create first? - [x] Admin account - [ ] Super Admin account - [ ] multi-factor authentication - [ ] recovery password -#### Q55. Which container(s) does Google Kubernetes Engine support?Which container(s) does Google Kubernetes Engine support? +#### Q53. Which container(s) does Google Kubernetes Engine support?Which container(s) does Google Kubernetes Engine support? - [ ] Docker or Singularity - [ ] Docker, Singularity, or containerd - [ ] Singularity only - [x] Docker only -#### Q56. Cloud Genomics enables pipelines to run on top of which GCP service?Cloud Genomics enables pipelines to run on top of which GCP service? +#### Q54. Cloud Genomics enables pipelines to run on top of which GCP service?Cloud Genomics enables pipelines to run on top of which GCP service? - [x] Cloud Dataflow - [ ] Google Kubernetes Engine - [ ] Cloud Dataproc - [ ] Compute Engine -#### Q57. You want to encrypt a Compute Engine image. What do you need to do ? +#### Q55. You want to encrypt a Compute Engine image. What do you need to do ? - [ ] Nothing. Images are encrypted by default with a Google - managed key. - [ ] Associate your image with the default Google-managed key to encrypt it. diff --git a/html/html-quiz.md b/html/html-quiz.md index 7299100ddf..05c1a5d98b 100755 --- a/html/html-quiz.md +++ b/html/html-quiz.md @@ -42,14 +42,7 @@ - [ ] when linking one webpage to another - [ ] when linking style sheets, external URLs, and favicons -#### Q7. The "value" attribute is associated with which set of tags? - -- [ ] `