Computer Science Model Exam 2
Computer Science Model Exam 2
me/AnyjobsEthio
Pointer
Constructor
Asterisks
Structure
Disassembler
Coder
Compiler
Assembler
In C++ programming, assume that the value of the variable A is 0 and the value of the
variable B is 10. Which one of the following alternatives is false? *
1 point
(B = = 10) || (x < y)
(A > 20) || (B >5)
(A >10) && (x < y
(A= =0) && (B < 20)
Which one of the following format is write about functions in structural Programming:
*
1 point
Which of the following is a valid function call (assuming the function add exists & have
two parameters)?*
1 point
add;
add(a,b);
add a,b;
add(int a, int b);
1 point
What will be the return type of a function, if the function does not have a return value?
*
1 point
B. Float
D. Void
C. Double
A. Int
ofstream
ifstream
istream
fstream
A. Global Variable
B. Limited Variables
C. Local Variable
D. Partial Variable
A visibility modifier that makes methods and data fields accessible only from within its
own class. *
1 point
Default
protected
public
private
Implement
Implements
extend
extends
A$_2
By2
Java
A@2$
operation
method
class
Attribute
16. ______It defines how and where data are organized in physical data storage
*
1 point
Internal Schema
Conceptual Schema
External Schema
External and Conceptual Schema
Correctness
Need assessment
Consistency
Speed
The SQL command that you use to define the primary key for a existing table called
'Employee' with the primary column to be 'empid'?
1 point
20. While checking normalization process, the problem that doesn’t exist on
transitive dependency is
*
1 point
Modification Anomaly
Revoke Anomaly
Insertion Anomaly
Deletion Anomaly
You need to produce a report for mailing labels for customers. The mailing label must
have only the customer name and address. The CUSTOMERS table has these columns,
ID ,NAME,ADDRESS,PHONE ,the SELECT statement to accomplishes this task?
*
1 point
Optional
Many-to-many
One-to-one
One-to-many
While listing limitation of File Processing System identify the wrong statement?*
1 point
If relation R has 5 tuples and relation S has also 7 tuples, then Cartesian product of R
and S will have
Telegram channel: Milki Multimedia: https://t.me/AnyjobsEthio
1 point
5+7 tuples
7-5 tuples
5X7 tuples
5/7 tuples
28. How do you prevent system privileges deletion and updating authority on PRICE
and YEAR column of the CATALOGUE table from user Mohammed
1 point
The language associated with a database management system that is employed by end
users and programmers to alter data values in the database is the:*
1 point
A. Microarchitecture
B. Harvard Architecture
C. Von-Neumann Architecture
D. All of the mentioned
A. Encoder
B. Decoder
C. Multiplexer
D. De-multiplexer
E. Register
32. In a _________ cache organization, cache permits data to be stored in any cache
block.
1 point
A. Direct Mapped
B. Set Associativity
Telegram channel: Milki Multimedia: https://t.me/AnyjobsEthio
C. Fully Associative
D. All
33. Which one used to translate virtual addresses into physical addresses when we are
implementing the concept of Virtual memory?
1 point
A. LRU
B. FIFO
C. Memory Management Unit
D. All
34. In a ________ bus, flow is only one-way from the CPU to memory.
1 point
A. Address Bus
B. Data Bus
C. Control Bus
D. A & C
A. Serial-In Serial-Out
B. Parallel-In Serial-Out
C. Serial-In Parallel-Out
D. All
37. Which one allows the memory to be divided into fixed sized block in virtual memory
concept?
1 point
A. Paging
B. Segmentation
C. A&B
D. All
A. NAND
Telegram channel: Milki Multimedia: https://t.me/AnyjobsEthio
B. Ex-OR
C. AND
D. NOT
39. Which of the following is a type of architecture used in the computers nowadays?
1 point
A. Microarchitecture
B. Harvard Architecture
C. Von-Neumann Architecture
D. System Design
A. Message
B. Medium
C. Sender
D. Protocol
There are two types of network topologies from these topologies which one of the
following defines how hosts access the media to send data.*
1 point
Logical Topology
Bus Topology
Physical Topology
Star Topology
Physical
Data Link
Network
Transport
You want to implement a network medium that is not susceptible to EMI. Which type of
cabling should you use?
Telegram channel: Milki Multimedia: https://t.me/AnyjobsEthio
1 point
Coaxial
Category 6 UTP
Microwave
Fiber-optic
45. From the following lists which one is not the responsibility (service) of data link layer
1 point
D. Hardware Addressing
C. media access control
B. Network Addressing
A. logical link control
Which class of IP address provides a maximum of only 254 host addresses per network
ID?
*
1 point
Class A
Class D
Class B
Class C
Amplitude
Wavelength
phase
Discrete pulse
full-duplex
Half-duplex
Simplex
Automatic
Broadcast forwarding
Internetwork communication
Packet filtering
Packet switching
50. Acknowledgments, sequencing, and flow control are characteristics of which OSI
layer?*
1 point
Layer 2
Layer 4
Layer 3
Layer 7
51. The technique of allowing multiple signals to be transmitted at the same time over
the same cable is called _____________-
1 point
A. Broadcast
B. Multicast
C. Multiplexing
D. demultiplexing
A. Push
B. Insert
C. Add
D. enqueue
OptA. Push();
B. Is_empty();
C. Pop();
D. B and C
55. While searching from binary tree, how can the index should go?
Telegram channel: Milki Multimedia: https://t.me/AnyjobsEthio
1 point
56. Which key word is used to de-allocate the space taken by a node?
1 point
A. delete
B. alloc()
C. del()
D. A and B
58. Algorithms must terminate after a finite number of steps; What is this characteristics
called__
1 point
A. Unambiguous
B. Feasibility
C. Finiteness
D. Independent
A. Space complexity
B. Asymptotic analysis
C. Time complexity
D. none of the above
60. Which one of the following algorithms is based on dynamic Programming approach?
1 point
A. Multistage Graph
B. Single source Shortest Path
C. Merge sort
D. Chess playing algorithm
Telegram channel: Milki Multimedia: https://t.me/AnyjobsEthio
A. Dynamic Programming
B. Divide and Conquered
C. Greedy
D. Back tracking
63. The attribute used in the body tag to change the default font color for the page is
________.
1 point
A. Bgcolor attribute
B. text attribute
C. color attribute
D. link tag
A. Its content will not be changed unless the actual webpage file is edited.
B. It is also referred as flat pages or stationary pages.
C. It will be delivered to the users as exactly stored in the files.
D. Its content remains the same for all viewers of the website.
E. All of the above.
A. PHP
B. ASP
C. Python
D. All of the above
A. Prompt
Telegram channel: Milki Multimedia: https://t.me/AnyjobsEthio
B. Alert
C. Confirm
D. All of the above
68. What is the preferred way for adding a background color in HTML?
1 point
A. <body background="yellow">
B. <background>yellow</background>
C. < body style="background-color: yellow">
D. <background color="yellow">text<background>
69. What is the method used to get the result from the form data sent with both GET
and POST?
1 point
A. $_REQUEST
B. $_POST
C. $_GET
D. A & B
A. Localhost
B. Database
C. Username
D. Password
From the following list, choose the most appropriate update statement
1 point
A. Mutual exclusion
B. Hold and wait
C. Circular wait
D. No preemption
E. All of these
75. Which one of the following Scheduling algorithm allocates the CPU first to the
process that requests the CPU first?
1 point
A. Priority scheduling
B. Shortest job scheduling
C. First-come, first-served scheduling
D. None of above
A. When process is unable to run until some task has been completed
B. When process is scheduled to run after some execution
C. When process is using the CPU
D. None of the mentioned
A. Priority
B. Round Robin
C. Shortest Job First
D. All of the mentioned
79. In which of the storage placement strategies a program is placed in the largest
available hole in the main memory?
1 point
A. Best fit
B. First fit
C. Worst fit
D. Buddy
A. Cohesive
B. Coupling
C. Design
D. Testing
A. Unit Test
B. Integration test
C. System test
D. Acceptance test
Telegram channel: Milki Multimedia: https://t.me/AnyjobsEthio
A. Inheritance
B. Polymorphism
C. Encapsulation
D. Abstract Classes
85. All of the following are required to develop an effective test except:
1 point
A. Requirement gathering
B. Software Requirement specification
C. Software Requirement testing
D. Software Requirement validation
Which of the following is a mechanism that allows several objects in a class hierarchy to
have different methods with the same name?*
1 point
A. Aggregation
B. Polymorphism
C. Inheritance
Telegram channel: Milki Multimedia: https://t.me/AnyjobsEthio
A. Implementation
B. Elicitation
C. Analysis
D. Design
91. Which of the following is a disadvantage of Object-Oriented Design?
1 point
A. Easier maintenance
B. Objects may be understood as stand-alone entities
C. Objects are potentially reusable components
D. Objects are difficult to maintain
92. If a grammar produces more than one leftmost derivation for a sentence, it is called
as: _____
1 point
A. Ambiguous grammar
B. Perfect grammar
C. Associative grammar
D. Precedence
A. context-free
B. neither context-free nor regular.
C. regular but not context-free
D. both regular and context-free.
A. Finite control
B. Input
C. Tape
D. Head
A. Syntax tree
Telegram channel: Milki Multimedia: https://t.me/AnyjobsEthio
B. Strings of characters
C. A set of tokens
D. set of regular expressions
Which of the following is NOT the primary role of code generator in compiler design? *
1 point
A. instruction selection
B. Declaration of variables
C. instruction ordering
D. A Register allocation
97. Which one of the following is different from the others?
1 point
A. quadruples
B. triples
C. tree
D. indirect triples
A. Ease of generation
B. Ease of manipulation
C. Register allocation
D. Level of abstraction