0% found this document useful (0 votes)
37 views20 pages

Design of Computer Final Revision

The document discusses computer design and programming concepts. It provides 30 multiple choice questions to test understanding of topics like software development stages, programming logic, variables, data types, operators, control structures, and arrays. It also includes 13 true/false questions and provides an example of a programming problem to solve.

Uploaded by

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

Design of Computer Final Revision

The document discusses computer design and programming concepts. It provides 30 multiple choice questions to test understanding of topics like software development stages, programming logic, variables, data types, operators, control structures, and arrays. It also includes 13 true/false questions and provides an example of a programming problem to solve.

Uploaded by

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

Design of computer final revision

*Choose*
1)...............is once you understand the problem and have
selected the overall approach you start to design and program
the software.
(software design , software development , software evaluation ,
software validation)
2)................is where software is modified and changed for
market requirements.
(software process, software evaluation, software validation,
software
specifications)
3)...............is the process of defining software methods,
functions and objects.
(software process, software design , software specification,
object modelling )
4)...............is where software is checked to ensure it meet
customer satisfaction.
(software design , software validation , software development,
software process)
5)............focus on the data elements that are needed and
operations to be
performed on this data elements.
(software design , object oriented modelling , sequence
diagram, case diagram)
6).............it illustrates the objects that participate in a use case
and the messages
that pass between them over time for one use case.
(case diagram , software process , sequence diagram , object
oriented modelling)
7)...............in the object-oriented approach, we model the
world in objects, object is an entity that has a well-defined role
in the application domain and has state, behaviour and identity.
( software evaluation, case diagram , sequence diagram ,
unified modeling language )

8. …………. is the art of formulating efficient methods that solve


problems of a mathematical nature.
A. Algorithmic.
B. Algorithmic problem solving.
C. flowchart.
9. To write a sequence of instructions for a
computer to follow, we must go through a
two-phase process……and……….
A. problem solving
B. implementation.
C. A and B

10. ………. is defined as a Step-by-step procedure for solving a


problem in a finite amount of time.
A. Algorithmic.
B. Algorithmic problem solving.
C. flowchart.

11. ………. is a diagrammatic representation of the steps of an


algorithm.
A. Algorithmic.
B. Algorithmic problem solving.
C. flowchart.
12. problems that can be solved on computers
generally consist of……
A. Two B. Three
C. five D. six

13.problem solving generally consist of… steps


A. Two
B. Three
C. five
D. six

14.The "structured" part of pseudocode is a notation for


representing ………... specific structured programming
constructs.
A. Two
B. Three
C. five
D. six
15)int main(){
Const int x=5;
X=10;
}
What is the value of x?
a) 5 b)10 c)20 d)15

16) int main(){


Int x=7;
x++;
}
What is the value of x?
a)8 b)7 c)6 d)9

17) int main(){


Int x=5;
Int y=10;
Int z=x*y;
}
What is value of z ?
a)5 b)10 c)50 d)15

18)the value of increment


a)2++ b) 1++ c)1- - d)2- -
19)the value of decrement
a)2++ b)1++ c)1- - d)2- -

20)to make a comment in our code we use in C++:


a) // b){} c)[] d)||

21) …..hold number with decimal and exponential


a)Float b) int c) char d) string

22) ……it takes only one numeric value ot alphabrtic character


or special symbol
a) Float b)int c) char d) string
23) ……. is a sequence of characters like name or a word or a
sentence or even a long number
a)Bool b) int c)char d) string

24) in …….true of false are only possible values


a)Bool b) int c) char d)string

25-the ....logical operator is where the two conditions must be


true to excute the
operations
a)== b)|| c)&& d)!=

26-the ....logical operator is where either two of the conditions


must be true to excute the
operations
a)== b)|| c)&& d)!=
27).... statment provide immediate exit when it meet its
condition.
a)if b)else c)break d)continue

28)int main(){
x[5]={23,44,21,56,78};
cout<<x[2];
}
a)23 b)44 c)21 d)56

29)int main(){
x[5]={23,44,21,56,78};
cout<<x[5];
}
a)23 b)44 c)78 d)no correct answer

30)int main(){
x[5]={23,44,21,56,78};
cout<<x[4];
}
a)23 b)44 c)78 d)56

====================================================

*true / false*
1. The programmer begins the programming
process by analyzing the problem and developing a general
solution called an algorithm. ()

2.The statement of the problem specifies in general terms the


desired input/output relationship. ()

3. Computer programs are concrete representations of


algorithms, but algorithms are programs. ()

4. Code is a poor medium for storytelling. ()

5.Prose is a poor medium for precision. ()


6. The program logic should depict the flow
from bottom to top and from left to right.()

7. Each symbol used in a program flowchart


should contain only one entry point and one
exit point, with the exception of the decision
symbol. This is known as the single rule. ()

8. Pseudocode is one of the tools that can be


used to write a preliminary plan that can be
developed into a computer program. ()

9. programming languages aren’t all the same in terms of


concepts ()
10. Programming languages are different in their syntaxs.()
11. C++ are derived from javascript language.()
12. Almost every statement in c is also correct statement in
C++.()
13. Variables consist of letters , digits, and underscore(_),but it
must begin with a letter or underscore not a number.()
14. Identifiers are space in the main memory for storing data .()
15. Integer : It takes only one numeric value or alphabetic
character or special symbol.()
16. Boolean: true is the only possibility.()
17. String : is a sequence of characters like name or a word or a
sentence or even a long number()
18. Constant specifies that a variables value is constant and
tells the compiler to prevent the programmer from modifying
it.()
19. input : in order to give a message or print anything to user
we use cout()
20. Input : if we want the user to give as anything or to input
any data we use cin()
21. we use logical operations to manipulate integers.()
22. ‘+’ we use it to get the remainder in ordinary division()
23. Increments we use it to decrease value with 1.()
24. Decrement we use it to decrease value with 1.()
25)the && logical operator is where either two of the
conditions must be true to excute the
operations ()

26)the || logical operator is where either two of the conditions


must be true to execute the operations()

27)switch is used as if-else in multiple selection()

28)For loop execute this section of the code fixed number of


times()

29) while loop simply repeats the statment while expression is


true ()

30) array is a series of elements of the same data type places in


contiguous memory locations()

31) array shouldn't be deifiend before it can be used to store


information()

32)one-dimensional array can be described “array of arrays” ()


*Assay question*
Write a C++ program to display grade of a student if you
know that grade from 100 to 85=A from 84 to 75=B
from 74 to 65=C from 64 to 50=D less than 50 ‘F’ if he put
any number other that 1-100 print “error”.

Guide Answer
*Choose*
1)software development
2)software evaluation
3)software design
4)software validation
5)object oriented modeling
6)sequence diagram
7)case diagram
8)Algorithmic problem solving
9)A and B
10)Algorithmic
11)flowchart
12)three
13)six
14)six
15)5
16)8
17)50
18)1++
19)1- -
20)//
21)float
22)char
23)string
24)bool
25)&&
26)||
27)break
28)21
29)no correct answer
30)78

*True or False*
1)T
2)T
3)F *are not programs*
4)T
5)T
6)F *from top to bottom and from left to right*
7)T
8)T
9)F *are all the same*
10)T
11)F *C language*
12)T
13)F *identifier*
14)F *variables*
15)F *character*
16)F *true or false*
17)T
18)T
19)F *output*
20)T
21)F *arithmetic*
22)F *%*
23)F *increase*
24)T
25)F *||*
26)T
27)F *if-else-if*
28)T
29)T
30)T
31)F *must be*
32)F *multidimensional array*

*Assay*
1) write a program to display the grade of student that
user will enter, if you know that ‘A’ is from 100-85 ,‘B’ is
from 84-75 ,‘C’ is from 74-65 , ‘D’ is from 64-50, ‘F’ is
from 49-0 , else print ‘error’
2) write a program to sum numbers from 1 to 100
3) write a program to make the (sum , subtract, multiply,
divide )on two numbers the user add them.
THANK YOU

You might also like