-
Re: CS101 Assignment 1 Solution and Discussion
Introduction to Computing (CS101)
Assignment # 01
Fall 2020
Total marks = 2030 November 2020
Please carefully read the following instructions before attempting assignment.
RULES FOR MARKING
It should be clear that your assignment would not get any credit if:
The assignment is submitted after the due date.
The submitted assignment does not open or file is corrupt.
Strict action will be taken if submitted solution is copied from any other student or from the internet.You should consult the recommended books to clarify your concepts as handouts are not sufficient.
You are supposed to submit your assignment in .doc or docx format.
Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.Objectives:
To understand the practical implementation of Number System.
To understand the basic concept of Boolean Logical Operations and how to use it to solve a problem.NOTE
No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.
If you find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.
For any query, feel free to email at:
[email protected]Questions No 01 Marks (10)
Convert the following decimal numbers into equivalent binary numbers and then convert the binary answer back into equivalent decimal. Show all the steps of conversions.
4789
-8735Questions No 02 Marks (10)
Solve the given Boolean Expression by using truth table.
(A⊕D).(A+B).((B ̅+C ̅ )⊕(B+C+D)) -
Re: CS101 Assignment 1 Solution and Discussion
Introduction to Computing (CS101)
Assignment # 01
Fall 2020
Total marks = 20
30 November 2020
Please carefully read the following instructions before attempting assignment.
RULES FOR MARKING
It should be clear that your assignment would not get any credit if:
The assignment is submitted after the due date. The submitted assignment does not open or file is corrupt. Strict action will be taken if submitted solution is copied from any other student or from the internet.You should consult the recommended books to clarify your concepts as handouts are not sufficient.
You are supposed to submit your assignment in .doc or docx format.
Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.
Objectives:
· To understand the practical implementation of Number System.
· To understand the basic concept of Boolean Logical Operations and how to use it to solve a problem.
NOTE
No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.
If you find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.
For any query, feel free to email at:
Questions No 01 Marks (10)
Convert the following decimal numbers into equivalent binary numbers and then convert the binary answer back into equivalent decimal. Show all the steps of conversions.
4789 -8735Questions No 02 Marks (10)
Solve the given Boolean Expression by using truth table.
A
B
C
D
-
You are required to make a bill calculator application for a fast food restaurant. The restaurant offers some foods, that can be ordered by customers. Customer can order any number of items. You should design a program to calculate bill accordingly.
Program should add 19% GST to the stated order by your customer. If the customer’s bill is greater than 1000 rupees, the restaurant will give 5% discount on complete calculated bill.
You program must show the complete order details along with GST calculations, Discount (if applicable) and final amount.
To design/code, please follow the stated steps:
Your program must show menu items on the program startup:
a) Pizza (Rs 999)
b) Burger (Rs 250)
c) Sandwich (Rs 150)
d) Paratha Roll (200) Program must ask quantity for each item and calculate its total price. Program will add 19% GST to the bill and Calculate total Bill. Program will offer/give 5% discount if total bill is greater than 1000 Rs. Show the payment along with all calculation (price, GST, discount) in proper format. -
Re: CS101 Assignment 2 Solution and Discussion Fall-2019
Introduction to Computing (CS101)
Assignment # 02
Spring 2020
Total marks = 20Deadline Date
16th June, 2020Please carefully read the following instructions before attempting assignment.
RULES FOR MARKING
It should be clear that your assignment would not get any credit if:
• The assignment is submitted after the due date.
• The submitted assignment does not open or file is corrupt.
• Strict action will be taken if submitted solution is copied from any other student or from the internet.You should consult the recommended books to clarify your concepts as handouts are not sufficient.
You are supposed to submit your assignment in .doc or docx format.
Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.Objective:
Objective of this assignment is to increase the learning capabilities of the students about
• To understand the conversion of numbers in to binary by using arithmetic operations.
• To understand the basic concept of logical operations and how to use it to solve a problem.NOTE
No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.
If you find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline, no queries will be entertained in this regard.
For any query, feel free to email at:
[email protected]Question # 01 10 marks
In CPU all the arithmetic operations are performed in binary numbers (0 and 1). Suppose you have a small CPU which is designed to perform all arithmetic operations using addition only. You will explain how the following operations will be solved out by the CPU.
i) Multiplication of 6 and 2
ii) Addition of 7 and 3
iii) Subtraction of 5 and 4Question # 02 10 marks
You have an image that can be represented in 8 bits. The image is given below:
Masking
(00110011)2
You are required to send this image to someone but not in original form. So, nobody can extract the features from the image.
So, we will perform following two operations on the image.
You will apply an 8-bit (10101011)2 mask using AND logic operation. Inversion
You will invert the masked image using XOR logic operation. -
Re: CS101 Assignment 1 Solution and Discussion Fall-2019
Question 1: You are required to perform the following stated operation in binary number system
(320)10+(-122)10
Please first convert the stated Decimal Numbers into Binary Numbers.
Perform Arithmetic operation on Binary numbers.
Convert the calculated answer back into Decimal number.Question 2:
For the following Boolean Expression, you are required to fill the stated table below:
Please share you 1st assignment for solution and -
-
-
-
Handouts are available on LMS under the Downloads section of CS101. The handouts file is named “CS101 Introduction to Computing - Handouts.pdf”. Here is the link to download CS101 handouts.
You can download the rar file of all the ppts by following the given link:
-
If you are a studying cs, i.e., introduction to computing in VU, then you need proper help to prepare for the exam. Introduction to computing covers a vast range of topics which range from the computer’s history to the modern programming languages. The course of this subject is very diverse. It is why you should always rely on the best and the most reliable cs101 handouts to prepare for the exam. These handouts are the key to success, and many students pass their exam and score high grades using these handouts.The Handouts
If you are in VU, then you will know how important it is to take the video lectures and then repeat them. Besides listening to the video lectures, you will also require help with the material. The best source for the course “Introduction to Computing” is these cs101 handouts. These handouts have all the material that you need to prepare for the exam.
The best part is that these handouts are well-designed. You will see that each topic has sub-topics with a great explanation. Each topic is self-explanatory. When you read these handouts, you will see how easy it is to understand the concepts. Make sure that you get these handouts for the ITC and ensure good grades.
Covers all topics
These cs101 handouts cover all topics offered by VU. These are a total of 45 lectures, and each lecture is a separate chapter in these handouts. You will understand from the start to the end. Each chapter has sub-headings and related content. Understanding computers are very easy. These handouts are so good that even a person who wishes to understand the basics of computing can read these and get a better understanding of the computers. You can download these handouts for free. You can use these cs101 handouts to get good grades in the subject.
Topics
Following are the topics that you will find in the handouts for an introduction to computing.
Introduction – which covers the history of computing
Spread Sheets
Loops and Flow controls
Design Heuristics
Web design for usability
Arrays
Computer networking
Intro to the Internet
Functions
Internet Services
Presentations
Event Handling – web development related
Graphics and Animations
AI
Mathematical functions in JavaScript
Data management
DBMS
Strings in JavaScript
Social Implications of Computing
Future of computing
Programming methodology
With so much material in these handouts, you will cover each topic for the preparation of the exam for ITC.
-
-
Objectives:
After solving this assignment, students will learn about,
Interaction of JavaScript with HTML.
Handling of JavaScript functions, loops, decision structure & event handling.
Instructions: Read the following instructions carefully before submitting the assignment.It should be clear that your assignment will not get any credit if:
§ The assignment is submitted through email or after due date.
§ The assignment is not in the .html format.
§ The submitted assignment does not open or file is corrupt.
§ Assignment is copied(partial or full) from any source (websites, forums, students, etc)
§ Assignment is in any other format like images, PDF, “.txt”, “.doc”, Zip, rar etc.
Question: You are required to make a table generator webpage.
Requirements:
The title of the web page should be your VU-ID.
Table Generator should get the table number and table length from user and generates table of that number up to the provided length with generate button.
It should also count even and odd values in the output & displays these counts in their respective fields.
If user inputs value less than 1 it should not generate table but display an alert message with “Invalid Input”
If user enters a float number then it should ignore decimal part in calculation.
You have to make two tables with border. First table will have two table rows of <input> and second table will have two table rows of <input> and one table row of <textarea>.
Your output should be displayed inside <textarea> of 38 columns, 20 rows and colspan 2.
Heading, tables and button should be aligned to center.
You are required to make same design and format of output as given in below sample.
However you can choose color scheme of your own choice (other than white) but the background color of your webpage and table should be different.
Note:You can also use \n in JavaScript instead of <br> for line break in output.
If you have any queries, you can email at [email protected].
Sample design:
Sample output:
Sample alert message:
-
Assignment No. 02
Semester: Fall 2019
Introduction to Computing – CS101
Total Marks: 20
Due Date: 05-12-2019
Please carefully read the following instructions before attempting assignment
Objective of Assignment
Objective of this assignment is to increase the learning capabilities of the students about:
• Decimal to Binary Conversion
• Boolean Logical Operations
Rules for AssignmentIt should be clear that your assignment will get credit only if:
Read the following instructions carefully before uploading assignment:
• The assignment is submitted before or on the due date.
• The submitted assignment file is not corrupted or damaged.
• The assignment is not copied (from another student or internet).
Uploading Instructions• Upload/Submit assignment in your VULMS assignment interface.
• No assignment will be accepted through email.
• Your assignment must be with .doc extension. (Any other format will not be accepted)
NOTE
No assignment will be accepted after the due date or via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence, refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.If you find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline, no queries will be entertained in this regard. Moreover, keep checking announcements section.
Question No.1 8 Marks
Convert a decimal number 724 into its equivalent binary numbers. You are required to show the complete steps of conversion and also write the final answer in its equivalent binary number.
Question No.2 12 Marks
Complete the following truth table by using the stated Boolean logical operations.
A B C A + B A . C (A + B) ⊕ C
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1For any query, feel free to email at:
[email protected]Best of Luck
-
Assignment No. 01
Semester: Fall 2019
Introduction to Computing - CS101
Total Marks: 25Due Date: 14-11-2019
Objectives:
After solving this assignment, students will learn about,
• Knowledge of HTML basics.
• Handling of HTML tags.
• Table creation and handling in HTML.
Instructions:
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
The assignment is submitted after due date.
The assignment is not in the .html format.
The submitted assignment does not open or file is corrupt.
Assignment is copied(partial or full) from any source (websites, forums, students, etc)Note:
Any other format like scan images, PDF, “.txt”, “.doc”, “.docx”, Zip, rar, bmp etc. will not be accepted.
For any query about the assignment, contact at [email protected]
Question No.1: You are required to create an Academic Qualification Information web page which will display your academic details in a specific format given in the sample output.Guidelines :
• You are required to create a heading <H1> aligned center with text “Virtual University of Pakistan” and also apply an hyperlink on the heading which redirects to www.vu.edu.pk.
• You are required to use two <hr> tags and a heading tag with text “Academic Qualification Form” in between the two <hr> tags as shown in the sample output.
• You are required to create a table aligned center with visible border=’3px’ and cellpadding =‘10’.
• The first row of table should contain a heading <H2> with italic text “Academic Details” and there should be some background colour of this heading cell.
• The second row of should contain 3 columns. First cell/column should contain bold text “Degree/Title”, Second cell/column should contain bold text “Obtained Marks”, Third cell/column should contain “Total Marks” as shown in the sample output.
• The third row of table should contain 3 cells/colums. First cell/column should containbold text “Matric”, Second cell/column should contain your Obtained marks in matric in bold text, third cell/column should contain your Total marks in matric as shown in the sample output.
• The fourth row of table should contain 3 cells/colums. First cell/column should contain bold text “Intermediate”, Second cell/column should contain your Obtained marks in Intermediate in bold text, Third cell/column should contain your Total marks in Intermediate as shown in the sample output.
• The fifth row of table should contain 2 cells/colums. First cell/column should contain your Current Degree title in bold text. Second cell/column should contain a bullet list of your current semester courses as shown in the output.
• The Sixth row of table should contain a paragraph text “Foreign diploma/Degree holders are required to submit its equalance certificates from concerning authority i.e HEC/IBCC.” in red colour as shown in the sample output.
• The table should be aligned center. Also the text in all of the table cells should be center aligned as shown in the sample output.
• There should be some background colour(other than white colour) of the web page of your own choice.
• The first row of table containing heading “Academic Details” should be merged into a single column as shown in the sample output.
• The last row of table containing paragraph text should be merged into a single column as shown in the sample output.
• The Second cell of fifth row of table containing courses list should contain merged second and third column as shown in the sample output.
• The title of the web page should be your VU-ID.Sample Output :
Best of Luck
-
-
Question
Which one of these is NOT an example of storage devices?CD
Floppy
Hard Disk
RAM
Answer: 4 Chapter No.
Question
Which one of these is NOT an example of storage devices?Tape
RAM
Floppy
DVD
Answer: 2 Chapter No.
Question
_________ was known as “mill” in Analytical engine.Memory
Processor
Monitor
Mouse
Answer: 2 Chapter No.
Question
The impact of a digit in a number is determined by its ____________Value
Location
Length
None of above
Answer: 2 Chapter No.
Question
_________ is also known as System Architecture.High level system design
Low level system design
Every system design
Software Requirement
Answer: 3 Chapter No.
Question
The computer working independently with no connection to any other computer is called:Standalone
Workstation
Server
None of the given choices
Answer: 1 Chapter No.
Question
Browser is a _____________ used for browsing.Component
Tool
None of these
Device
Answer: 3 Chapter No.
Question
TCP stands for :Transmission Control Practical
Transmission Control Protocol
Transfer Center Protocol
None of the given
Answer: Chapter No.
Question
Heuristics are used because theyAlways give the best results
Mostly gives good-enough results
Don’t give wrong results
Are commonly used as rule of thumb
Answer: Chapter No.
Question
A data value that appears directly in a statement is known as _______.Numeric Literals
String Literals
JavaScript Literals
None of the given
Answer: Chapter No.
Question
To iterate each element of an array, the best know structure for iteration is:While loop structure
If-else structure
Switch statements
For loop structure
Answer: Chapter No.
Question
___________ is a special purpose computer that directs the data traffic when several paths are available.Bridge
Router
Gateway
None of the given
Answer: Chapter No.
Question
VPN stands for:Virtual Public Network
Virtual Private Network
Visual Private Network
Virtual Personal Network
Answer: Chapter No.
Question
Array can be defined as:An indexed list of elements
A list of elements
A collection of elements
None of the given
Answer: Chapter No.
Question
The computer working independently with no connection to any other computer is called :Standalone
Workstation
Server
None of the given
Answer: Chapter No.
Question
Email uses _______ protocol.SMTP
HTTP
FTP
None of the given
Answer: Chapter No.
Question
In Spreadsheets, you can create relationship between two cells by using _____.Text
Formulas
Numbers
None of the given
Answer: Chapter No.
Question
Architecture design is _________ design.Dependant
Low Level
High Level
Secondary
Answer: Chapter No.
Question
World’s first program was written byCharles Babbage
Alfred Tennyson
Ada Lovelace
Bernoulli
Answer: 3 Chapter No. 1
Question
Deep Blue was the name of:Human
Computer
City
None of the given
Answer: 2 Chapter No. 1
Question
Analytical Engine was a machine of which type:non-programmable electronic machine
programmable electromechanical
programmable, mechanical, digital
programmable but non-digital
Answer: 3 Chapter No. 1
Question
Who wrote the first program for Analytical engine?Babbage
Lady Ada
Haward
Bernoulli
Answer: 2 Chapter No. 1
Question
Which language had been used by the US department of defense.Java script
Binary language
C++
Ada
Answer: 4 Chapter No. 1
Question
Spread sheet is a type of ____________.Productivity software
Engineering software
Mathematical software
Business software
Answer: 1 Chapter No. 1
Question
A _________ translates a high-level language (that is easy to understand for humans) into a language that the computer can understand.Computer
Transistor
Compiler
Device
Answer: 3 Chapter No. 2
Question
DARPA stands forDefence Advanced Research Project Agency
Direct Automatic Research Private Agency
Defence Automatic Research Project Agency
None of the given choices
Answer: 1 Chapter No. 2
Question
CERN releases WWW in:1992
1993
1994
None of the given choices
Answer: 4 Chapter No. 2
Question
Vacuum tubes were replaced by ____________Punch cards
Transistors
Micro Processors
Resistors
Answer: 2 Chapter No. 2
Question
________ invented at the Imperial University in Tokyo by Yoshiro Nakamats.Hard drive
Flash drive
Floppy disk
Optical disc
Answer: 3 Chapter No. 2
Question
Compared to vacuum tubes, Transistors offer:Much smaller size
Better reliability
Much lower cost
All of the given choices
Answer: 4 Chapter No. 2
Question
What will replace Transistors?Electro-mechanical computing
Vacuum tube computing
Quantum computing
Nothing can replace Transistors
Answer: 3 Chapter No. 2
Question
If a computer could pass the Turing test then it would be able to:win a million dollar prize
think like human beings
think but slower than humans
do the things faster
Answer: 2 Chapter No. 2
Question
The name of very first computer was _______________ABC
BCD
EDC
None of the given choices
Answer: 1 Chapter No. 2
Question
First computer designed for commercial applications wasUNIVAC 1
ENIAC
EDVAC
Atanasoff-Berry Computer
Answer: 4 Chapter No. 2
Question
Atanasoff-Berry Computer is the first computer that used:Binary number system
Octal number system
Decimal number system
Hexadecimal number system
Answer: 1 Chapter No. 2
Question
World’s first large-scale, automatic digital computer was:Atanasoff-Berry Computer
Harvard Mark 1
ENIAC
IBM-PC
Answer: 1 Chapter No. 2
Question
The Semantic Web is an idea of ______________John Von Neuman
Ada
Bill Gates
Tim Berners-Lee
Answer: 4 Chapter No. 3
Question
HTTP stands for:Hyper Text Transparent Protocol
Hyper Terminal Transfer Provider
Hyper Text Transfer Procedure
Hyper Text Transfer Protocol
Answer: 4 Chapter No. 3
Question
____________ is a client program that uses HTTP to make requests to Web servers throughout the internet on behalf of the user.Web Application
Web Browser
Internet Application
HTML
Answer: 2 Chapter No. 3
Question
The first Web browser with a GUI was generally available in:1992
1993
1994
1995
Answer: 2 Chapter No. 3
Question
_________ is a related collection of WWW files that includes a beginning file called a homepage.HTML
Website
HTTP
Web page
Answer: 2 Chapter No. 3
Question
Information available on the web is:Mostly Free of any cost
Costly
Totally free
Not accessible at all
Answer: 1 Chapter No. 3
Question
______________ is volatile memory.RAM
ROM
Hard Disk
CD ROM
Answer: 1 Chapter No. 4
Question
_________ are personal computers that are designed to be easily transported and relocated.Desktops
Portables
Servers
Workstations
Answer: 2 Chapter No. 4
Question
_________ is the best known builder for supercomputers.Sun
Cray Research
Microsoft
Apple
Answer: 2 Chapter No. 4
Question
Microphone is an input as well as output device. This statement isTrue
False
Meaningless
Answer: 2 Chapter No. 4
Question
__________ can perform at or near the currently highest operational rate for computers.Microcomputers
Supercomputers
Personal Computers
Mini Computers
Answer: 2 Chapter No. 4
Question
CD stands for:Computer Disc
Computer Data
Compact Disc
Compact Data
Answer: 3 Chapter No. 4
Question
USB stands for:Uniform System Bill
Universal System Bus
Universal Serial Bus
Unified Sequential Bus
Answer: 3 Chapter No. 4
Question
SCSI stands for:Small computer system interface
System Common Small Integration
Silicon Computer System Interface
None of the given choices
Answer: 1 Chapter No. 4
Question
Which one is correct?<HEAD> </HEAD>
<HEAD> <END>
<HEAD> </END>
<HEAD> <\HEAD>
Answer: 1 Chapter No. 6
Question
Today’s computers are based on the technology of ___________Punch cards
Vacuum tubes
Transistors
Resistors
Answer: 3 Chapter No. 7
Question
Microprocessor are made up of semiconductor material calledAluminum
Copper
Silicon dioxide
Silicon
Answer: 4 Chapter No. 7
Question
Register is a kind of _________ memory.Fast
Super fast
Slow
Very slow
Answer: 2 Chapter No. 7
Question
1 byte consists of ____________ bits.8
10
12
16
Answer: 1 Chapter No. 8
Question
Smallest unit of storage is:Bit
Byte
Mega Byte
None of the given
Answer: 1 Chapter No. 8
Question
1 byte consists of ____________ bits.10
9
8
None of the given choices
Answer: 3 Chapter No. 8
Question
Structures, in which another list starts before the first list is finished, are called:Multiple Lists
Nested Lists
Ordered Lists
Un-ordered Lists
Answer: 2 Chapter No. 9
Question
ROWSPAN is used to extend the current cell to somecolumns
rows
columns & rows
None of the given
Answer: 1 Chapter No. 9
Question
tag is used to
underline text
end the line
create ordered list
create unordered list
Answer: 4 Chapter No. 9
Question
__________ is the example of Shrink-wrapped software.PIA information system
WinZip trial pack
Linux
MS Word
Answer: 4 Chapter No. 10
Question
For writing a letter we can use ________ .MS Paint
MS Word
MS Excel
Corel Draw
Answer: 2 Chapter No. 10
Question
Computer directly understand the ___________ languagehuman
high level
machine
None of the given
Answer: 3 Chapter No. 10
Question
____________ translates the High level language program, one statement at time.Interpreter
Compiler
Utility program
Anti virus software
Answer: 1 Chapter No. 10
Question
Which of the following manages the HW and SW resources of the computer system?Hardware
System Software
Operating system
Graphics Software
Answer: 3 Chapter No. 10
Question
__________ maintains index of names and location of the files.File Folder
File manager
File system
Operating system
Answer: 2 Chapter No. 11
Question
We need _____________ for memory management in computer.Software
Hardware
Operating System
Application Software
Answer: 3 Chapter No. 11
Question
Disk operating system is _______ operating systemMenu driven
Graphical user interface
Command driven
None of the given
Answer: 3 Chapter No. 11
Question
Which of the following is/are the parts of Operating system components?GUI
Device Manager
Shell
All of these
Answer: 4 Chapter No. 11
Question
In a HTML Form for file upload input element we use the following value in type attribute:Text
Radio
Hidden
File
Answer: 4 Chapter No. 12
Question
To display a radio button on the web page, we use ___ tag.INPUTBUTTON
INPUT
RADIOBUTTON
RADIO
Answer: 2 Chapter No. 12
Question
When we use <INPUT type=“password”>, what will happen?Text will not be visible
Text will be in normal format
Text will be in **** format
Text will be in #### format
Answer: 3 Chapter No. 12
Question
A group of information is calledFile
Database
Record
Field
Answer: 1 Chapter No. 13
Question
VisiCalc was the first popular __________ application on PC’s.Spreadsheet
Word processor
Presentation
Database
Answer: 1 Chapter No. 13
Question
WYSIWYG is:Software
The abbreviation of “what you see is what you get”
A Network company in Japan
The abbreviation of “word you see is what you get”
Answer: 2 Chapter No. 14
Question
_________ helps in finding synonyms as well as antonyms in Word ProcessorsTables
Thesaurus
Spelling & Grammar
Word Count
Answer: 2 Chapter No. 14
Question
You need to place University name on top of the every page of 100 pages document and Page number in the bottom of page. This can be done with the help of __________Reference initials
Bullet and Numbering
Borders and Shading
Header and Footer
Answer: 4 Chapter No. 14
Question
Using only Html we can create ______________.Dynamic web pages
Static web pages
Both Static and Dynamic pages
None of these
Answer: 2 Chapter No. 15
Question
The code in the _____________ portion is the right choice for developing larger JavaScript scripts.Body
At End
Head
Separate
Answer: 3 Chapter No. 15
Question
We can change the background color in HTML, using __________ attribute ofbackground
bgcolor
backcolor
backgroundcolor
Answer: 2 Chapter No. 15
Question
JavaScript consider every thing as:Control
Window
Object
Statement
Answer: 3 Chapter No. 15
Question
In Analysis of Algorithms ________ generally measured in terms of the number of steps required to execute an algorithmBandwidth
Time
Memory
Logic functions
Answer: 2 Chapter No. 16
Question
___________ is generally measured in terms of the number of steps required to execute an algorithm.Space
Time
Memory and time
Bandwidth
Answer: 2 Chapter No. 16
Question
Algorithm gives us:Definition of a problem
Sequence of steps to solve a problem
Proper understanding of a problem
Solution to a problem
Answer: 4 Chapter No. 16
Question
Sequence of steps that is taken to solve a problem is called _______.Algorithm
Operating System
Application software
None of the above
Answer: 1 Chapter No. 16
Question
Randomized algorithms are often ________ than deterministic algorithms for the same problem.Simpler and more slow
Simpler and more efficient
Complex and more efficient
Complex and more slow
Answer: 2 Chapter No. 16
Question
The “Ockham’s Razor,” principle states that when choosing among competing, successful solutions to a problem; choose the one which is the least ________Time Consuming
Ambiguous
Complex
Restricted
Answer: 3 Chapter No. 16
Question
Some of the things that JavaScript can do! Choose incorrect option from followingControl the appearance of the browser
Read – Modify
Control the content and appearance
Interact with the user through event handlers
Answer: 2 Chapter No. 18
Question
A named collection of properties (data, state) and methods (instructions, behaviour) is called __________.Object
Entity
Relation
Template
Answer: 1 Chapter No. 18
Question
A vocabulary and set of grammatical rules for instructing a computer to perform specific tasks is calledSoftware
Programming language
Device driver
Interpreter
Answer: 2 Chapter No. 19
Question
Programs that are typically started from a shell (or automatically via a scheduler) are calledBatch programs
Event-driven programs
Sequential programs
Application programs
Answer: 1 Chapter No. 19
Question
_________ is a high level language.Machine
Assembly
C++
None of the given
Answer: 3 Chapter No. 19
Question
Batch programs do notPrint or store the results
Get input data
Execute programs without the interference of user
Provide event handling
Answer: 4 Chapter No. 19
Question
BASIC stands for:Basic American Standard Information Code
Beginner’s All purpose Symbolic Instruction Code
Brother and Sisters In Christ
British American Scientific International Commercial
Answer: 2 Chapter No. 19
Question
In SW Life cycle Thinking about the future phases generally results in _and .lesser delivery time ; higher quality
more delivery time ; lesser quality
risk-full scenarios ; more delivery time
lesser quality ; more cost
Answer: 1 Chapter No. 20
Question
Detailed plan of SW life cycle specifies two things that are the _________Required resources and expected cost
Expected cost and budget
Required resources and expected deliverables
Time and cost
Answer: 4 Chapter No. 20
Question
Which of the following application is collections of cells?Word
Excel
PowerPoint
Outlook Express
Answer: 2 Chapter No. 22
Question
Which of the following keyword is used to jump out of switch statement as soon as match is found?default
else
jump
break
Answer: 4 Chapter No. 23
Question
Users look for ________ solution.Optimal
First good enough
Good
Best
Answer: 2 Chapter No. 25
Question
Users __________, how things work.Analyze in detail
Muddle through
Figure out
Read in detail
Answer: 2 Chapter No. 25
Question
Which of the following device can be used to control network traffic?Cable
Connector
Hub
Repeater
Answer: 3 Chapter No. 27
Question
One can download or upload files to a remote computer using ________ protocol.HTTP
SMTP
FTP
TELNET
Answer: 3 Chapter No. 27
Question
Electrical pulses received over telephone line are converted into messages (comprehensible by the computer) by using:Modulator
Demodulator
Both Modulator and Demodulator
None of the given choices
Answer: 2 Chapter No. 27
Question
Files can be downloaded or uploaded using _______________ protocol.SMTP
FTP
TELNET
None of the given choices
Answer: 2 Chapter No. 27
Question
When the packets reach the destination computer, Who reassembles them into the original message?UDP
TCP
UCP
IP
Answer: 2 Chapter No. 28
Question
TCP stands for:Transmission Control Practical
Transmission Control Protocol
Transfer Center Protocol
None of the given choices
Answer: 2 Chapter No. 28
Question
Internet Enables:attractively-priced workers located in Pakistan to provide services to overseas clients
users to easily share information with others located all over the world
users to easily, inexpensively communicate with others remote users
All of the given
Answer: 4 Chapter No. 28
Question
____________ breaks down the message, to be sent over the internet, into packets.Protocol
TCP
IP
NIC
Answer: 2 Chapter No. 28
Question
Specifying the space in which a variable will be effective is called:Variable declaration
Variable definition
Variable Scope
Variable garbage collection
Answer: 3 Chapter No. 29
Question
Function definition enclosed in a __________pair of curly braces
Pair of parenthesis
Pair of Brackets
All of the given
Answer: 1 Chapter No. 29
Question
Identify the correct statements about function arguments
I) A comma-separated list of data
II) Define the interface b/w function and rest of code
III) They are used to identify the function
IV) They Identify function’s typeI and II Only
II and III Only
III and IV Only
I, II and III Only
Answer: 1 Chapter No. 29
Question
____________ is used to transfer files between computers on a TCP/IP network.TCP
FTP
Telnet Protocol
All of the given choices
Answer: 2 Chapter No. 30
Question
__________ addresses are difficult to recognize and remember for humans.TCP
IP
SMTP
None of these
Answer: 2 Chapter No. 30
Question
VoIP stands for ___________________________Video over Internet Protocol
Visual on Internet Protocol
Voice over Internet Protocol
None of these
Answer: 3 Chapter No. 30
Question
________ is a type of computer-to-computer messaging.TCP
Telnet
E-mail
FTP
Answer: 3 Chapter No. 30
Question
Mixed-case capitalization of event handlers (e.g. onClick) is _________ for JavaScript event handlers defined in HTML codea Defined Rule
a Requirement
a Convention
Necessary
Answer: 3 Chapter No. 32
Question
A string consisting of JavaScript statements enclosed in double or single ____________LINES
EVENTS
TAG’s
QUOTES
Answer: 4 Chapter No. 32
Question
There are __________ & __________ popular schemes to reduce the number of bytes that are required for storing graphics.Contrast & Color Control
Dithering & Color Mapping
Matching & Non-Matching
None of these
Answer: 2 Chapter No. 33
Question
Bit-map images compresses using the __________ algorithm.LZV
LZW
LZE
None of these
Answer: 2 Chapter No. 33
Question
_________ images enhanced to impart the illusion of depth.Parallel
Diagonal
Flat
None of these
Answer: 3 Chapter No. 33
Question
Color mapping scheme reducing the size of 2.25 MB graphic to_______ MB.0.90 MB
0.75 MB
1.00 MB
None of these
Answer: 2 Chapter No. 33
Question
Autonomous Web Agents are also known as _____________.Mobile Agents
Softbots
Both “Mobile Agents” & “Softbots”
None of these
Answer: 3 Chapter No. 34
Question
__________ returns a randomly selected, floating point number between 0 and 1.Math.random
random
random()
None of the given
Answer: 3 Chapter No. 35
Question
Which function returns a randomly selected floating point number between 0 and 1?floor(x)
ceil(x)
random()
round(x)
Answer: 3 Chapter No. 35
Question
Hardware malfunctions is related toData updates
Data integrity
Data security
Data accessibility
Answer: 2 Chapter No. 36
Question
__________ can be used for entering, editing or viewing data, one record at a timeForms
Reports
Queries
Tables
Answer: 1 Chapter No. 37
Question
RDBMS stands forRelative Data Base Management System
Relational Data Base Management System
Recursive Data Base Management System
Responsible Data Base Management System
Answer: 2 Chapter No. 37
Question
_______ is a field that uniquely identifies each record stored in a table.Primary Key
Foreign Key
Secondary key
Special Key
Answer: 1 Chapter No. 37
Question
_______is correct format to access a string Method.methodName.string( )
string.methodName( )
methodName().string
string ().methodName
Answer: 2 Chapter No. 38
Question
_________ returns a string containing characters copied from positions n to m-1charAT(n)
substring (m)
substring(n,m)
None of the given
Answer: 3 Chapter No. 38
Question
A virus consists of two parts:Computer and internet
Transmission mechanism and Internet
Transmission mechanism and Payload
Internet access and Payload
Answer: 3 Chapter No. 39
Question
The ________ virus may destroy or broadcast private data.Malicious
Neutral
Helpful
DoS
Answer: 1 Chapter No. 39
Question
We use __________ to stop Break-Ins.Scanners
Intrusion detectors
Firewalls
Intrusion detectors and Firewalls
Answer: 2 Chapter No. 39
Question
Yahoo Servers was recovered, from DoS attack, within12 hours
3 hours
24 hours
3 days
Answer: 2 Chapter No. 39
Question
_________ are harmless in the sense that they only make copies of themselves on the infected computerTrojan horses
Logic- or time-bombs
Worms
Viruses
Answer: 3 Chapter No. 39
Question
The internet communities are ________.Geographical based
Interest based
Country based
Religion based
Answer: 2 Chapter No. 40
Question
The __________has changed marketing forever, redirecting it from a mass focus to a single person focus.Web
Television
Mobile
Radio
Answer: 1 Chapter No. 40
Question
_______________ based communication allows business entities to coordinate the activities of their globally spread units with greater accuracy.Intranet
Internet
Home
LAN
Answer: 2 Chapter No. 40
Question
______________ is in Executive team.Project Manager
CEO
Team Lead
Developer
Answer: 2 Chapter No. 42
Question
Planning and tracking of the project is the responsibility of the_______________.Project Manager
Architect
Developer
Chief Executive Officer
Answer: 1 Chapter No. 42
Question
Web is a unique invention by humans in terms that it is:accessible to only the owners who control it
accessible from particular locations only
accessible to all humans
accessible to only the educational institutes
Answer: 3 Chapter No. 43
Question
The tasks performed to determine the existence of defects is called ____________.Debugging
Testing
Repairing
Coding
Answer: 2 Chapter No. 44
Question
There are _________ types of errors.2
3
4
5
Answer: 2 Chapter No. 44 -
Cs101 assignmnt solution
<html>
<head>
<title>BC123456789</title>
</head>
<h1>Personal Web Page</h1>
<p>This is my first assigment of CS101.</p>
<p>In this assigment i will learn different HTML Tags and develop my first web page in HTMl.</p>
<h2>Personal Information:</h2>
<p>Name : sheri khan</p>
<p>VU ID: BC123456789</p>
<p>City : chakwal</p>
<h2>Education:</h2>
<body>
<p>Ics from <a href=“http://www.bisesrawalpindi.edu.pk"target=_self”>BISE rawalpindi</a></P>
<p>Student of BS Computer Science in <a href=“http://www.vu.edu.pk"target=_self”>Virtual University</a></P>
<p>You can e-mail me by clicking <a href="[email protected]"target=_self">here</a></P>
</body>
</html>
CS101 Assignment 1 Solution and Discussion Fall 2020
-
Re: CS101 Assignment 1 Solution and Discussion
Introduction to Computing (CS101)
Assignment # 01
Fall 2020
Total marks = 20
30 November 2020
Please carefully read the following instructions before attempting assignment.
RULES FOR MARKING
It should be clear that your assignment would not get any credit if:
The assignment is submitted after the due date. The submitted assignment does not open or file is corrupt. Strict action will be taken if submitted solution is copied from any other student or from the internet.
You should consult the recommended books to clarify your concepts as handouts are not sufficient.
You are supposed to submit your assignment in .doc or docx format.
Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.
Objectives:
· To understand the practical implementation of Number System.
· To understand the basic concept of Boolean Logical Operations and how to use it to solve a problem.
NOTE
No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.
If you find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.
For any query, feel free to email at:
Questions No 01 Marks (10)
Convert the following decimal numbers into equivalent binary numbers and then convert the binary answer back into equivalent decimal. Show all the steps of conversions.
4789 -8735
Questions No 02 Marks (10)
Solve the given Boolean Expression by using truth table.
A
B
C
D
-
@zareen said in CS101 Assignment 1 Solution and Discussion Fall 2020:
decimal numbers into equivalent binary numbers and then convert the binary
-