1. What is OS (Operating System)?
An operating system (OS) is the
program that, after being initially loaded into the computer by a boot program,
manages all the other programs in a computer. The other programs are
called applications or application programs. The application
programs make use of the operating system by making requests for services
through a defined application program interface (API). In
addition, users can interact directly with the operating system through a user
interface such as a command line or a graphical user interface (GUI).
2. What is a deadlock?
2. What is a deadlock?
Deadlock describes a situation where two or more threads are
blocked forever, waiting for each other. ... A Java multithreaded
program may suffer from thedeadlock condition because the
synchronized keyword causes the executing thread to block while waiting for the
lock, or monitor, associated with the specified object.
3. What is a semaphore?
A semaphore is a value in a designated
place in operating system (or kernel) storage that each process can check and
then change. Depending on the value that is found, the process can use the
resource or will find that it is already in use and must wait for some period
before trying again
4. Difference between semaphore & monitor?
4. Difference between semaphore & monitor?
A monitor is
a set of multiple routines which are protected by a mutual exclusion lock
whereas , A semaphore is a simpler construct than a monitor because
it's just a lock that protects a shared resource – and not a set of routines
like a monitor. ...Monitors, unlike semaphores,
automatically acquire the necessary locks
5. What is sdlc(software development life cycle)?
5. What is sdlc(software development life cycle)?
The
systems development life cycle (SDLC), also referred to as the application
development life-cycle, is a term used in systems engineering, information
systems and software engineering to describe a process for planning, creating,
testing, and deploying an information system
6. What is a linklist,stack,queue?
6. What is a linklist,stack,queue?
A linked list is a linear data structure
where each element is a separate object. Each element (we will call it a node)
of a list is comprising of two items - the data and a
reference to the next node. The last node has a reference to null. The entry
point into a linked list is called the head of the list.
Java provides an inbuilt object type called Stack. It is a collection that is based on the last in first out (LIFO) principle. On Creation, a stack is empty. It extends Vector class with five methods that allow a vector to be treated as a stack. ... Object push(Object element) : Pushes an element on the top of the stack.
Java provides an inbuilt object type called Stack. It is a collection that is based on the last in first out (LIFO) principle. On Creation, a stack is empty. It extends Vector class with five methods that allow a vector to be treated as a stack. ... Object push(Object element) : Pushes an element on the top of the stack.
A queue is
a data collection in which the items are kept in the order in which they were
inserted, and the primary operations are enqueue (insert an item at the end)
and dequeue (remove the item at the front)
7. Write a program to reverse a linklist?
class LinkedList {
static Node
head;
static class
Node {
int
data;
Node
next;
Node(int
d) {
data
= d;
next
= null;
}
}
/* Function
to reverse the linked list */
Node
reverse(Node node) {
Node
prev = null;
Node
current = node;
Node
next = null;
while
(current != null) {
next
= current.next;
current.next
= prev;
prev
= current;
current
= next;
}
node
= prev;
return
node;
}
// prints
content of double linked list
void printList(Node
node) {
while
(node != null) {
System.out.print(node.data
+ " ");
node
= node.next;
}
}
public static
void main(String[] args) {
LinkedList
list = new LinkedList();
list.head
= new Node(85);
list.head.next
= new Node(15);
list.head.next.next
= new Node(4);
list.head.next.next.next
= new Node(20);
System.out.println("Given
Linked list");
list.printList(head);
head
= list.reverse(head);
System.out.println("");
System.out.println("Reversed
linked list ");
list.printList(head);
}
}
8. What is DBA?
Database
administration is the function of managing and maintaining database management
systems (DBMS) software. ... As such, corporations that use DBMSsoftware
often hire specialized information technology personnel called Database
Administrators or DBAs.
9. Different type of databases?
9. Different type of databases?
There are four structural types of database management
systems:
·
Hierarchical databases.
·
Network databases.
·
Relational databases.
·
Object-oriented databases.
10. What is normalsation?
Normalization
is a database design technique which organizes tables in a manner that reduces
redundancy and dependency of data.
11.
Four division in cobol?
The
four divisions are:
§ Identification Division
§ Environment Division
§ Data Division
§ Procedural Division
Linked List
12.function of compiler?
12.function of compiler?
A compiler is
a computer program (or a set of programs) that transforms
source code written in a programming language (the source language) into
anothercomputer language (the target language), with the latter
often having a binary form known as object code.
13. Difference between c &c++?
13. Difference between c &c++?
The major difference
between C and C++ is that C is a
procedural programming language and does not support classes and objects,
while C++ is a combination of both procedural and object
oriented programming language; therefore C++ can be called a
hybrid language.
Difference between c and c++
Aptitude Interview Questions for CTS (Cognigent) for Degree
Students
Difference between c and c++
No comments:
Post a Comment