0% found this document useful (0 votes)
4 views3 pages

Digital Logic and Programming Exam Guide

Uploaded by

Daniel Getachew
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)
4 views3 pages

Digital Logic and Programming Exam Guide

Uploaded by

Daniel Getachew
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

Date :

14/02/2005 E.C.
Time
Allotted: 3:00
Max.
Value: 100%

Wollo University
Kombolcha Institute of Technology
Electrical and Computer Engineering Department
Holistic Exam
Module III: Digital Logic Design, Introduction to Computing, Computer
Architecture and
Organization and Object Oriented Programming
Name:____________________________________________IDNo:______________________

Stream:_________________________________

1. Write the output of the code given below.


#include<iostream>
# define n 10
using namespace std;
void display(int[n]);
int main()
{
int a[n];
cout<<"The series is :\n";
display(a);
return 0;
}
void display(int a[n])
{
int prev = 0,pres = 1,next;
for(int i=0; i<n; i++)
{
next = prev + pres;
prev = pres;
pres = next;
a[i] = next;
cout<<a[i]<<" ";
}
}
2. Write a c++ code to check whether a given number is odd or even.
3. Develop a flow chart that provides general c++ solution to any quadratic equation in real number
system.

4. Take a look at the following code fragment.


int b = 5, c = 8, d =10, e = 6;
b ++;
d = 5 * b++ - d--;
e = e - ++c % 2;
What will be the final value of variables b, c, d and e?

5. What is the difference between combinational circuits and sequential circuits?

6. Identify the most simple Product of Sums (POS) expression which generates the K-map shown.

7. Construct a 16 X 1 multiplexer by using five 4x 1 multiplexers. Use block diagrams.

8. Analyze the following circuit and determine the output F as sum of minterms.
9. Generate the gate level implementation of the following Boolean function F. Use minimum
number of logic gates in your implementation.
F(A,B,C,D) = Π (1,3,5,7,9,11,12,13,14,15)

10. Explain briefly the difference between Object Oriented and Procedure Oriented programming
languages.
11. With example java code, show how to inherit a class named KiOT to a class called Techno.
12. How do you prevent a method from being overridden and a class from being inherited?
13. What does ”portable” mean in the context of computer programming?
14. Write a java program that calculates voltage in a circuit using constructor(s) and method(s).
The program must accept user inputs interactively and displays the result.
15. What will be the output of the following program?

class Continue{
public static void main(String [ ]args){
for(int i=0;i<10;i++){
[Link](i+ " ");
if(i%2==0)continue;
[Link](" ");
}
}
}
16. Differentiate between CISC and RISC
17. Discuss briefly the difference between parallel processing and pipelining with their respective
purposes.
18. The control unit of a computer is designed to go through an instruction cycle that is divided into
three major phases; what are they?
19. a)What is the difference between machine language and assembly language?
b)Why is assembly language considered easier for humans to program in than machine language?

You might also like