0% found this document useful (0 votes)
44 views

SKN Sinhgad College of Engineering: Uuu Set D

This document is a test paper for a basic electronics and computer programming course. It contains 5 multiple choice questions testing knowledge of logic gates, binary arithmetic, and basic C programming concepts. There are also short answer and explanation questions about converting between number bases, 2's complement arithmetic, Boolean logic simplification, and explaining logic gates including the universal NAND gate. Programming questions involve explaining the C program structure and writing a program to swap two numbers using a third variable.

Uploaded by

abhiraj1234
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

SKN Sinhgad College of Engineering: Uuu Set D

This document is a test paper for a basic electronics and computer programming course. It contains 5 multiple choice questions testing knowledge of logic gates, binary arithmetic, and basic C programming concepts. There are also short answer and explanation questions about converting between number bases, 2's complement arithmetic, Boolean logic simplification, and explaining logic gates including the universal NAND gate. Programming questions involve explaining the C program structure and writing a program to swap two numbers using a third variable.

Uploaded by

abhiraj1234
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Savitribai Phule Shikshan Prasarak Mandals

Roll No:

SKN SINHGAD COLLEGE OF ENGINEERING


A/P: Korti Tal: Pandharpur Dist: Solapur
Unit Test
UUU

I ()

SET D

Day and Date:


/02/2012
Max. Marks: 50
Time: 08.00 am to 10.00 am
Branch: F.E.
Subject: Basic Electronics and Computer Programming

Q.1 Solve Multiple choice questions

(5 Marks)

1. The output of NAND gate is low only when


a) all the inputs are low
b) all the inputs are high
c) at least one input is high
d) at least one input is low
2. 2s complement of 2s complement of a binary number 10110011 is
a) 10110011
b) 11000111
c) 01001100
d) 01001101
3. The greatest negative number which can be stored in a computer that has 8 bit
word length and uses 2s complement arithmetic is
a) 256
b) 255
c) 128
d) 127
4. The boolean expression (x + y) (x + z) is equal to
a) x + yz
b) y + xz
c) x + y

d) x + z

5. The decimal number 21 is equal to binary number


a) 10110
b) 11000
c) 10101

d) 01001

6. One of the following not logical operator.


a. &

b. &&

c.||

d.!

7. Which of the sequence we can used to begin a new line in c


a.\a

b.\b

8.

c.\n

d.\t

This symbol indicates for


a. Processing

b. Decision making

c. Input, Output

d. Connection.

9. An entity that doesnt change during the execution of program is called as


a. Constant

b. variable

c. data type

d. array

10. || this operator is called as


a. Assignment

b. logical

c. Bitwise

Q.2. Solve any two:

d. Relational
(10 marks)

a. Convert (795.DE)16 to octal and decimal.


b. Perform
using 2s complement.
c. Simplify:

Q.3. Explain all the basic gates using symbol, truth table and equation. Explain NAND gate as a
Universal gate.
(10 marks)
Q.4 Solve any two:

(10 marks)

a. Explain basic structure of C program in details.


b. Write short notes on different data types used in C.
c. Write a program for swapping of two numbers by using third variable with proper structure of c.

Q.5 Explain different types of operators.

BEST OF LUCK

(10 marks)

You might also like