Placement Papers: GlobalEdge June2004
Download PDF of This Page (Size: 123K) ↧
Examrace Placement Series prepares you for the toughest placement exams to top companies.
C What is the output of the following:
-
main () { int * p; p = (int * ) malloc (-10); }
-
allocates 0 bytes
-
allocates memory, if available
-
compilation error
-
Runtime error
Answer: b
-
-
main () { for (printf ( “a” ); printf ( “b” ); printf ( “c” ) ); }
-
abc
-
abc abc abc ____ (infinite times)
-
a bc bc bc ____ (infinite times)
-
Error
Answer: c
-
-
main () { int i = 10 * fun (); printf ( “%d” i); } fun () { return 10; }
-
0
-
10
-
100
-
Error
Answer: c
-
-
int i = 10 * fun (); main () { printf ( “%d” i); } fun () { return 10; }
-
0
-
10
-
100
-
Error
Answer: d
-
-
Assume size of int to be 2 bytes: Main () { int i = 100; printf ( “%d” sizeof (i + + ) ); printf ( “%d” i); }
-
2 100
-
2 101
-
100 101
-
101 100
Answer: a
-
Computer Fundamentals
-
Which one of the following always resides in the memory?
-
Linker
-
Loader
-
Compiler
-
All of the Above
Answer: b
-
-
Which of these is not a layer in OSI model?
-
Application layer
-
Network Layer
-
Internet Layer
-
Data Link Layer
Answer: c
-
-
Which one of the following data structures is best suited for searching?
-
Arrays
-
Singly Linked List
-
Doubly Linked List
-
Hash Table
Answer: d
-
-
Which of the following data structures is best suited for Deletion?
-
Arrays
-
Singly Linked List
-
Doubly Linked List
-
Hash Table
Answer: c
-
-
Which one of these is not a scheduling technique in Operating System?
-
Last-Come-First-Serve Scheduling
-
First-Come-First-Serve Scheduling
-
Preemptive Scheduling
-
Round Robin Scheduling
Answer: a
-
-
Demand Paging is
-
All the pages of a process is loaded at the start
-
When a single page is demanded then all other pages are also loaded
-
When a page is required then only it is loaded
-
None of the Above
Answer: c
-
-
Page Fault is
-
A page is referenced that is not in the memory.
-
A page is referenced that is not in the Disk.
-
A page being added to the process.
-
None of the above
Answer: a
-
-
If the number of internal nodes in a binary tree is n, then what is the number of external nodes?
-
n − 1
-
n
-
n + 1
-
2n
Answer: c
-
-
“Banker's Algorithm” is used for:
-
Deadlock Detection
-
Deadlock Avoidance
-
Deadlock Prevention
-
All of the above
Answer: b
-
-
Which of the following is used fro designing a lexical analyser of a compiler?
-
Finite Automata
-
Push Down Automata
-
Turing Machine
-
None of the above
Answer: a
-
-
Which layer in the OSI model is responsible for End to End connectivity?
-
Data Link Layer
-
Network Layer
-
Transport Layer
-
Session Layer
Answer: c
-