Skip to content
VUBuddy

CS101 Sample Solution 2 Fall 2021

Introduction to Computing PDF 311 KBUpdated 23 Oct 2026
Quiz CS101 Sample Solution 2 Fall 2021 PDF 311 KB
vubuddy.com
Type
Quiz
Course
CS101 Introduction to Computing
Size
PDF 311 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 311 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 2, 3, 4 of 5. Download the file for all 5 pages.

Marks (15)

Write the HTML code to make a webpage as depicted in the following diagram (Sample output).

<html> · <head> · </head> · <body> · <img · width="170" height="90"> · <H1>Grade Details</H1> · <B>Intermediate</B> · <P>Obtained Marks: 912</P> · <p><i> Percentage: 83%</i></p> · <p><i> Grade: A+</i></p> · <H1> Current Enrolled Courses </H1> · <ul> · <li>CS101</li> · <li>CS201</li> · <li>ENG101</li> · <li>MTH101</li> · <li>VU001</li> · <li>PAK301</li> · </ul> · </body> · </html> · Sample Output: · Note:

  • Use your VUID as the title of the web page and the contact information should contain your VU email id that is given at the end of the sample page.
  • The VU logo should have a link to open the VU website “ ”. You can include the VU logo in your webpage from the following URL:
  • You have to write your marks, percentage and grade obtained in the intermediate degree.
  • Also add a list of your enrolled courses in the current semester as depicted in the diagram.

Write the HTML code in the Notepad editor. Name the Notepad file your VU-ID and save the file with .html extension. Open the .html file and take a screenshot of your output. Paste your HTML code and output screenshot in the solution file that should be a Microsoft Word document (.doc or .docx).

Marks (5)

Suppose a refreshment center is offering the following 8 flavors of juices and shakes.

Sr. No.

Juice

Pena Colada

Strawberry

Pineapple Mango

Orange

Cookies and cream Milk shake

Coffee Milkshake

Candy Flavor Milkshake

The availability of these 8 flavors can be represented in the form of an 8-bit status string e.g. “11111111” where each bit “1” from left to right represents the availability of each flavor in the table from top to bottom respectively. The left-most bit represents the availability status of Pena Colada and the right-most bit represents the availability of Candy Flavor Milkshake. In the status string, “1” means the flavor is available and the unavailability of a flavor will be represented by “0” at the respective bit position.

Considering the above scenario, perform the following operations:

A. Assuming that all the flavors were available in the morning. If the juices at serial no. 3 and 5 in the table are finished at 2:00 PM, compute the new status string by using the appropriate logical operation.

B. If the availability status string of juices and shakes is “10101001” at 4:00 PM, check the availability of the “Coffee Milk Shake” using the appropriate logical operation:

C. Question No 2 Solution:

D. E.

Pena Colada Strawbe rry Pineappl e Mang o Orang e Cookies and Cream Milk Shake Coffee Milksh ake Candy Flavor Milkshak e

Mornin g Status

Calculate New Status After 2PM using AND Operation

All CS101 files →
CS101 Introduction to Computing All CS101 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.