Cs101 Assignment No. 1 Solution and Discussion | Virtual Study Solutions

Adsetra Ads

 


Objectives:
To learn and understand the basic concepts of Computing, Logic Gates, Binary operations and their practical implementation
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 submitted via email.
  • The assignment is copied from Internet or from any other student.
  • The submitted assignment does not open or file is corrupt.
  • It is in some format other than .doc (MS Word Document).

Note: All types of plagiarism are strictly prohibited.

For any query about the assignment, contact at CS101@vu.edu.pk



Cs101 Assignment Question No 1:                                                                                                                           Marks 10

Ali wants to complete his BSCS but he is unable to pay his university fee due to financial problems. Being a bright student, he is availing scholarship but that amount is not sufficient to meet his ends. One of his teachers suggests him to wok online and guides him how to start working as a freelancer. Ali gets his first task which is based on some basic computing concepts. Can you help him in his task by solving the following questions?

a)                Convert (1000100)2 into decimal equivalent.
b)                Convert (68)10 into binary equivalent.


Cs101 Assignment Question No 2:                                                                                                                           Marks 10

 

1)      Complete the given truth table for the following expression:
 X= (A.B.C) + A. (B´+ C´)






















Cs101 Assignment Ans No. 1


a)    Convert (1000100)2 into decimal equivalent.

                      Binary      = 1000100
                      Decimal   = 1×2⁶ + 0×2⁵ + 0×2⁴ + 0×2³ + 1×2² + 0×2¹ + 0×2⁰
                                      = 68


b)                 Convert (68)10 into binary equivalent.




2                   68                                           Remainders
2                   34                                                       0
                           2                    17                                                        0
                           2                     8                                                         1
                           2                     4                                                         0
                           2                      2                                                         0    
                           2                     1                                                         0

Hence, (68)10 = (1000100)2

Cs101 Assignment Ans 2

A
B
C
A.B.C
B'
C'
B' + C'
A.( B' + C')
X
0
0
0
0
1
1
1
0
0
0
0
1
0
1
0
1
0
0
0
1
0
0
0
1
1
0
0
0
1
1
0
0
0
0
0
0
1
0
0
0
1
1
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1



























Post a Comment

 

Top