Weprovide solutions to the Practice Exercises of the Tenth Edition of Operating System Concepts , bySilberschatz, Galvin and Gagne. These practiceexercises are different from the exercisesprovided in the text.(Solutions to the exercises in the text areavailable only to instructors.)Students are encouraged to solve the practice exercises on their own,and later use the solutions to check their own solutions.The material below are copyright by Silberschatz, Galvin and Gagne, 2018Use of the material is authorized for personal use, and for use inconjunction with a course for which Operting System Concepts isthe prescribed text.Any use that differs from the above, and any for profit sale ofthe manual (in any form) requires the consent of the copyright owners;contact Avi Silberschatz (
a...@yale.edu) to obtain thecopyright owners consent.
HTML is an acronym for HyperText Markup Language. The language provides the basic building blocks for web pages and web applications. HTML is used to structure and describe the contents of a web document to a browser. If you want to become a web developer, mastery of HTML is important. Luckily, you can master this basic language with HTML exercises.
Solution: First, create a structure for the website. You can use a free HTML framework. The structure should contain header, main, and footer elements. Then, create a navigation bar and paste it at the top of the page. Next, create a default background image and style it. To create a navigation bar and background, place the code snippet beneath the navigation bar before the opening tag or closing tag.
An HTML attribute is one word or a string of words placed inside an opening tag to define the properties of an HTML element. The purpose of an attribute is to determine how an HTML element behaves. So, how do you create an HTML attribute?
The image link tells the web page where the image is located. This information is usually embedded in the src attribute. It contains details such as the web address and the URL of the image. So, how do we create an image link on a web page?
Solution: Linking an image in HTML is a fairly simple procedure. To solve this problem, we have to include the image tag ( tag) in the anchor element ( tag). The anchor element helps us create the hyperlink. Including the image tag in the anchor tag tells the browser that it is a functional link.
HTML forms contain elements called interactive controls. These include checkboxes, text fields, submit or reset buttons, and menus used to gather input from website visitors. This information could be names, phone numbers, and email or home addresses. Online forms are a cheaper and more personal way of gathering information about your visitors. An HTML form could be a contact form or a church donation form. So, how do we create one?
Solution: To create an HTML form, use the tag in HTML. Then, each of the interactive controls is created using the element. Next, the type attribute will specify the type of input using values. You can group the form controls using the element.
An HTML table is used to arrange web data in a more structured format using rows and columns. You can input different data in the tables, including text, images, and even more tables. Tables help simplify complex data. You can easily summarize the key points you want to communicate to your reader in a table. So, how do you create an HTML table?
Solution: To create an HTML table, use the tag. Within the tag, you must embed tags such as the header, row, and data tags. The table header tag is represented as . The table row tag is represented as , and the table data tag is represented as .
An alt attribute, or alternative attribute, is usually embedded within an HTML code snippet. It defines how an image has been used in a webpage. Understanding how alt attributes work is key to designing scalable web pages and websites. So, how are alt attributes used?
The audio feature in HTML5 provides a way to embed audio and video in your web documents. You can also link audio files, just like you can with an image or video file. You just need the correct elements. So, how do we insert an audio file into an HTML5 document?
Solution: To insert an audio file in your HTML document, you need the HTML5 element, the default control set of the browser, and the src attribute to locate the audio sources. Your code will begin with and end with .
This HTML task helps you build your HTML and CSS skills. In this HTML exercise, you will build a replica of an existing website using HTML and CSS code. At the end of this basic project, both websites should look the same and perform the same functions.
Solution: To replicate a website with HTML and CSS, pick a simple website. Static websites are easier to clone than dynamic websites. Next, browse the site to build familiarity. This includes familiarizing yourself with the HTML and CSS layout of the website. Then, set up your coding environment using a code editor. You can use existing HTML code snippets and a free hosting platform to host your website.
HTML exercises are bite-sized challenges to help you gain a deeper understanding of HTML and web development processes. HTML exercises are an ideal way to improve your coding skills. These common exercises help you understand the different elements of the markup language.
HTML projects are a series of tasks that lead to the creation of a defined product. Even beginner-friendly projects help you to better understand the processes involved in web development because each creative project you perform involves more than one stage of web development. Participating in HTML projects helps you create a professional portfolio that you can use to display your coding skills to prospective employers.
HTML quizzes are test questions used to challenge your HTML knowledge. Websites like Code Cracker and W3Schools help hone HTML skills through timed test sessions that are graded immediately. Sometimes, you can take quizzes in competition with other participants. HTML quizzes are very useful when preparing for HTML interview questions.
Another way to build your HTML skills is by joining forums and following blog posts that focus on HTML and web development. Forums such as HTMLForum and CodeForum can provide good learning resources and opportunities. You can gain access to templates, articles, tutorials, courses, and job opportunities.
You can practice HTML through several internet platforms. Finding a good platform to aid your learning process is important. Learning HTML can be so much faster and easier if you choose a platform that provides you access to resources such as tutorials, quizzes, templates, and mentorships to help build your skills. Some of the top HTML learning platforms are listed below.
The best way to learn HTML is through any method that incorporates your learning needs. The method you choose should provide opportunities for mentorships, tutorials, and challenging tasks that allow you to measure your progress.
As a beginner, you should combine courses, tutorials, exercises, quizzes, mentorships, and projects. Front end bootcamps can offer you all of these and more. Whatever time you can afford to devote to practicing HTML, it will be worth the effort.
Note that these options can all be specified either globally orper-chunk. For example, the following code sets global default optionsusing the setup chunk and also sets some local options onthe addition chunk:
By default, exercise code chunks are NOT pre-evaluated (i.e there isno initial output displayed for them). However, in some cases you maywant to show initial exercise output (especially for exercises like theones above where the user is asked to modify code rather than write newcode from scratch).
learnr will automatically associate any chunk with alabel in the format -setup as a setup chunkspecifically associated with , where is replaced with the label of the exercisechunk. For example, the filter-setup chunk will be used asthe setup chunk for the filter exercise:
If may also chain setup chunks where each setup chunk inherits itsparent setup chunk using the exercise.setup chunk option.(Note: You must use exercise.setup forchaining. You cannot rely on the -setup suffix labelingscheme.) learnr will keep following the trail ofexercise.setup chunks until there are no more chunks to befound. To demonstrate, we can convert the first exercise in the aboveexamples to be another setup chunk called filtered-flightswith its exercise.setup=prepare-flights. This will nowfilter the data and store it and can be referenced inside thearrange exercise:
You can chain use exercise chunks in the setup chunk chain, but keepin mind that the code as it appears in the R Markdown source is used toserve as the setup code, not the user input. For example, if you turnedfiltered-flights back to an exercise, the pre-filled codeis used as setup for the arrange exercise that use it asits setup:
Occasionally, you may write an exercise that requires users tointeract with files on disk, such as data files in .csv or.rds format. learnr will look for a foldernamed data/ in the same directory as the tutorial sourceand, if present, will make this directory available to users in allexercises in the tutorial.
You can also set this option globally in the globalsetup chunk with tutorial_options(). When setthis way, the chunk-level option will take precedence over the globaloption so that you can choose to always reveal or hide the solution to aparticular exercise. The current default is to reveal exercisesolutions, but in a future version of learnr the default behavior willchange to hide solutions.
You might want users of your tutorials to see only one sub-topic at atime as they work through the material (this can be helpful to reducedistractions and maintain focus on the current task). If you specify theprogressive option then all Level 3 headings(###) will be revealed progressively. For example:
3a8082e126