You are on page 1of 3

Computer Science Paper I First Unit Test Assignment

1. a) What are the basic data types used in C++? Explain each with example. [3]

b) Explain Program structure in C++. [3]

c) What is Unary operator? Explain pre and post increment operator with an Example. [4]

2. a) Assume the declarations: int a = 8, b = 3, c = -5, d, e, r;

What will be the value of variables d and e after the execution of the following statements?

d = (a*c)%b; [3]

e = a*(c%b);

b) void main()

int x=8,r; [3]

r=x++;

cout<<"r="<<r<<" x= "<<x;

c) Explain the insertion and extraction operator used in C++. [4]

3. Write a program in C++ to read Principle amount(p), Rate of interest (r) and Time period (n) from
the user. The program must find and print with a suitable message the simple interest

[ Note: si = p r n / 100] [5]

Link for submitting CS Paper I assignment


is https://forms.gle/7Bby2L6tpUx8uqum9
Computer Science Paper II First Unit Test Assignment
1. State De Morgan’s Law and Prove using Truth Table. [5]
2. Explain with steps binary subtraction using 2’s compliment method using two
different examples. [5]
3. Show with steps conversion of the hexadecimal number 3AF and Octal Number 753
into their decimal equivalent. [5]
4. Explain Boolean Theorems with Truth Table. [5]
5. What are Universal Gates. Mention 3 distinct points to differentiate between inclusive
‘OR’ and exclusive ‘OR’. [5]

Link for submitting CS Paper II assignment


is https://forms.gle/UAVvSXJoWbBWQw1c9
Guidelines to be followed for uploading your assignment online
1. There are 2 separate google forms for uploading your Paper I and Paper II
assignments. Please select respective google form for uploading your assignment.
2. Assignment can be handwritten or computer typed.
3. Only PDF file is allowed.
4. Only 1 PDF file is allowed to be uploaded in each google form. There is no limit in
number of pages in 1 PDF file.
5. Maximum file size of PDF should be less than 10MB. Please try to complete your
assignment in minimum number of pages to achieve the given file size.
6. You can use any mobile app to convert your handwritten assignment in PDF.
7. By any chance your PDF size is more than 10 MB, you can visit the following link to
reduce your PDF file size : https://www.ilovepdf.com/compress_pdf
8. By any chance you have created multiple PDF files and you want to merge it into a
single PDF file, you can visit the link to do the same :
https://www.ilovepdf.com/merge_pdf
9. By any chance you have created multiple image files and you want to convert
multiple images into a single PDF file, you can visit the link to do the same :
https://www.ilovepdf.com/jpg_to_pdf
10. You can submit both the assignments online using any gmail id. (From your phone or
from your computer)
11. The link for assignment submission is active from 3rd November 2022 and Last date
for assignment submission is 8th November 2022 11:59 PM. Please upload your both
Paper I and Paper II assignments as soon as possible.

You might also like