You are on page 1of 6

Operating System Interview Questions

# Demand paging, page faults, replacement algorithms, thrashing, etc.


# Describe different job scheduling in operating systems.
# Difference : Primary storage and secondary storage?
# Difference : multi threading and multi tasking?
# Differentiate : Complier and Interpreter?
# Differentiate : RAM and ROM?
# Explain about paged segmentation and segment paging
# Explain briefly about, processor, assembler, compiler, loader, linker and func
tions executed by them.
# Explain difference : microkernel and macro kernel.
# Give an example of microkernel.
# If two processes which shares same system memory and system clock in a distrib
uted system, What is it called?
# What are basic functions of an operating system?
# What are difference phases of software development? Explain briefly?
# What are different functions of Syntax phase, Sheduler?
# What are different tasks of Lexical analysis?
# What are main difference : Micro-Controller and Micro- Processor?
# What do you mean by deadlock?
# What is DRAM? In which form does it store data?
# What is a Real-Time System ?
# What is a mission critical system ?
# What is cache memory?
# What is hard disk and what is its purpose?
# What is multi tasking, multi programming, multi threading?
# What is software life cycle?
# What is difference : Hard and Soft real-time systems ?
# What is important aspect of a real-time system ?
# What is state of processor, when a process is waiting for some event to occur?
# When would you choose bottom up methodology?
# When would you choose top down methodology?
# Which is best page replacement algorithm and Why? How much time is spent usual
ly in each phases and why?
# While running DOS on a PC, which command would be used to duplicate entire dis
kette?
# Why paging is used ?
# Write a small dc shell script to find number of FF in design.
C Questions

# Are expressions arr and *arr same for array of integers?


# Are variables argc and argv are local to main?
# Bitwise operator for checking whether particular bit is on or off?
# Bitwise operator for putting on particular bit in number?
# Bitwise operator for turning off particular bit in number?
# Can Structure contain Pointer to itself?
# Can there be at least some solution to determine number of arguments passed to
variable argument list function?
# Can we specify variable field width in scanf() format string? If possible how?
# Can you dynamically allocate arrays in expanded memory?
# Can you use function fprintf() to display output on screen?
# Can you write function similar to printf()?
# Describe about storage allocation and scope of global, extern, static, local a
nd register variables?
# Difference : Strings and Arrays?
# Difference : Structure and Unions?
# Difference : arrays and linked list?
# Difference : enumeration and set of pre-processor # defines?
# Difference : functions memmove() and memcpy()?
# Difference : functions rand(), random(), srand() and randomize()?
# Difference : main() in C and main() in C++?
# Difference : pass by reference and pass by value?
# Difference : strdup and strcpy?
# Differentiate between for loop and while loop? it uses?
# Does mentioning array name gives base address in all contexts?
# Does there exist any other function that can be used to convert integer or flo
at to string?
# Does there exist any way to make command line arguments available to other fun
ctions without passing them as arguments to function?
# Explain one method to process entire string as one unit?
# How are Structure passing and returning implemented by complier?
# How can called function determine number of arguments that have been passed to
it?
# How can we check whether contents of two structure variables are same or not?
# How can we read/write Structures from/to data files?
# How much maximum can you allocate in single call to malloc()?
# How will you declare array of three function pointers where each function rece
ives two ints and returns float?
# If we want that any wildcard characters in command line arguments should be ap
propriately expanded, are we required to make any special provision? If yes, tha
t?
# In header file whether functions are declared or defined?
# In header files whether functions are declared or defined?
# Increase size of dynamically allocated array?
# Increase size of statically allocated array?
# Out of fgets() and gets() that function is safe to use and why?
# Program : compare two strings without using strcmp() function.
# Program : concatenate two strings.
# Program : find Factorial of number.
# Program : generate Fibonacci Series?
# Program : interchange variables without using third one.
# Program : s for String Reversal. same for Palindrome check.
# Program : that employs Recursion?
# Program : that uses command line arguments.
# Program : that uses functions like strcmp(), strcpy(), etc.
# To that numbering system can binary number be easily converted to?
# Use bsearch() function to search name stored in array of pointers to string?
# Use functions fseek(), freed(), fwrite() and ftell()?
# Use functions memcpy(), memset(), memmove()?
# Use functions randomize() and random()?
# Use functions sin(), pow(), sqrt()?
# Use qsort() function to sort array of structures?
# Use qsort() function to sort name stored in array of pointers to string?
# What advantages of using Unions?
# What do functions atoi(), itoa() and gcvt() do?
# What do c and v in argc and argv stand for?
# What does error Null Pointer Assignment mean and what causes this error?
# What does static variable mean?
# What is NULL Macro? Difference : NULL Pointer and NULL Macro?
# What is NULL Pointer? Whether it is same as uninitialized pointer?
# What is far pointer? where we use it?
# What is linklist and why do we use it when we have arrays? I feel correct answ
er should be linklist is used in cases where you don t know memory required to sto
re data structure and need to allocate is dynamically on demand.
# What is maximum combined length of command line arguments including space betw
een adjacent arguments?
# What is near, far and huge pointers? How many bytes are occupied by them?
# What is object file? How can you access object file?
# What is pointer?
# What is recursion?
# What is similarity between Structure, Union and enumeration?
# What is static identifier?
# What is structure?
# What is use of typedef?
# When reallocating memory if any other pointers point into same piece of memory
do you have to readjust these other pointers or do they get readjusted automati
cally?
# Where are auto variables stored?
# Where does global, static, local, register variables, free memory and C Progra
m instructions get stored?
# Write down equivalent pointer expression for referring same element a[i][j][k]
[l]?
# advantages of using pointers in program?
# advantages of using typedef in program?
# bit fields? What is use of bit fields in Structure declaration?
# declare following: array of three pointers to chars, array of three char point
ers, pointer to array of three chars, pointer to function that receives int poin
ter and returns float pointer, pointer to function that receives nothing and ret
urns nothing
# detect loop in linked list?
# differences between malloc() and calloc()?
# differences between structures and arrays?
# different storage classes in C?
# dynamically allocate one-dimensional and two-dimensional array of integers?
# enumerations?
# implement substr() function that extracts sub string from given string?
# macros? advantages and disadvantages?
# obtain current time and Difference : two times?
# obtain segment and offset addresses from far address of memory location?
# print string on printer?
# register variables? advantage of using register variables?
# that function should be used to free memory allocated by calloc()?
# that header file should you include if you are to develop function that can ac
cept variable number of arguments?

Java Programming Interview Questions


-- Sponsered Links --
* Can you load server object dynamically? If so what are 3 major steps invol
ved in it?
* Can you run product development on all operating systems?
* Considering notepad/IE or any other thing as process, What will happen if
you start notepad or IE 3 times ? Where three processes are started or three thr
eads are started?
* Difference : AWT and Swing?
* Difference : Abstract class and Interface?
* Difference : Grid and Gridbaglayout?
* Difference : Process and Thread?
* Difference : java and c++?
* Difference : process and threads?
* Does java support function overloading, pointers, structures, unions or li
nked lists?
* Does java support multiple inheritance? if not, what is solution?
* Explain 2-tier and 3-tier architecture?
* Explain about version control?
* Have you ever used HashTable and Directory?
* How can two threads be made to communicate with each other?
* How can we do validation of fields in project?
* How can you know about drivers and database information ?
* How do you download stubs from Remote place?
* How does thread synchronization occur in monitor?
* How java can be connected to database?
* How will you add panel to frame?
* I want to store more than objects in remote server? Which methodology will
follow?
* In container there are 5 components. I want to display all component names
, how will you do that?
* In htm form I have button which makes us to open another page in seconds.
How will you do that?
* In htm page form I have one button which makes us to open new page in seco
nds. How will you do that?
* Is there any tag in htm to upload and download files?
* Meaning of Servelet? What are parameters of service method?
* Meaning of Session? Explain something about HTTP Session Class?
* Meaning of Static query and Dynamic query?
* Meaning of class loader? How many types are there? When will we use them?
* Meaning of cookies? Explain main features?
* Meaning of distributed application? Why are we using that in our applicati
on?
* Meaning of flickering?
* Meaning of function overloading and function overriding?
* Suppose if we have variable I in run method, if I can create one or more thr
ead each thread will occupy separate copy or same variable will be shared?
* Tell some latest versions in JAVA related areas?
* What are JVM.JRE, J2EE, JNI?
* What are Normalization Rules? Define Normalization?
* What are abstract classes?
* What are adapter classes?
* What are advantages of java over C++?
* What are benefits if Swing over AWT?
* What are byte codes?
* What are files generated after using IDL to java compiler?
* What are session variable in servlets?
* What are statements in Java?
* What are streams?
* What are swing components?
* What are traverses in binary tree?
* What are virtual functions?
* What do you know about garbage collector?
* What do you mean by light weight and heavy weight components?
* What do you mean by multithreading?
* What is JAR file?
* What is JFC?
* What is JNI?
* What is base class for all swing components?
* What is client server computing?
* What is constructor and virtual function? Can we call virtual function in
constructor?
* What is corresponding layout for card in swing?
* What is difference abstract class and interface?
* What is exact difference in between Unicast and Multicast object? Where wi
ll it be used?
* What is functionability stubs and skeletons?
* What is functionality of stub?
* What is interface?
* What is layout for toolbar?
* What is light weight component?
* What is main functionality of Prepared Statement?
* What is main functionality of remote reference layer?
* What is mapping mechanism used by java to identify IDL language?
* What is middleware? What is functionality of web server?
* What is polymorphism?
* What is protocol used by server and client?
* What is role of Web Server?
* What is root class for all java classes?
* What is serializable interface?
* What is serialization?
* What is thread?
* What is update method called?
* What is use of interface?
* What is user defined exception?
* When will you use interface and abstract class?
* Where are card layouts used?
* Why do we use oops concepts? What is its advantage?
* Why do you canvas?
* Why does java not support multiple inheritance?
* Why is java not fully objective oriented?
* Why is java not pure oops?
* Why java is considered as platform independent?
* Why there are some null interface in JAVA? What does it mean? Give some nu
ll interface in JAVA?
* Write down how will you create Binary tree?
* Write program for recursive traverse?
* what is meant wrapper classes?
Data Structure Interview Questions
# A list is ordered from smaller to largest when sort is called. Which sort woul
d take longest time to execute?
# A list is ordered from smaller to largest when sort is called. Which sort woul
d take shortest time to execute?
# Convert following infix _expression to post fix notation ((a+2)*(b+4)) -1 (Sim
ilar types can be asked)
# Evaluate following prefix _expression ++ + (Similar types can be asked)
# Explain about types of linked lists
# Explain binary searching, Fibinocci search.
# Explain quick sort and merge sort algorithms and derive time-constraint relati
on for these.
# How is it possible to insert different type of elements in stack?
# How many different binary trees and binary search trees can be made from three
nodes that contain key values 2 & 3?
# How will inorder, preorder and postorder traversals print elements of tree?
# How would you sort linked list?
# In which data structure, elements can be added or removed at either end, but n
ot in middle?
# Parenthesis are never needed in prefix or postfix expressions. Why?
# Stack can be described as pointer. Explain.
# The element being searched for is not found in array of elements. What is aver
age number of comparisons needed in sequential search to determine that element
is not there, if elements are completely unordered?
# What data structure would you mostly likely see in non recursive implementatio
n of recursive algorithm?
# What do you mean by Base case, Recursive case, Binding Time, Run-Time Stack an
d Tail Recursion?
# What do you mean by: * Syntax Error * Logical Error * Runtime Error How can yo
u correct these errors?
# What does abstract data type means?
# What is average number of comparisons in sequential search?
# What is average number of comparisons needed in sequential search to determine
position of element in array of elements, if elements are ordered from largest
to smallest?
# What is data structure?
# What is maximum total number of nodes in tree that has N levels? Note that roo
t is level (zero)
# When will you sort array of pointers to list elements, rather than sorting ele
ments themselves?
# Which data structure is needed to convert infix notations to post fix notation
s?
# Which one is faster? binary search of orderd set of elements in array or seque
ntial search of elements.
# Which sort show best average behavior?
# Write Binary Search program
# Write programs for Bubble Sort, Quick sort
# Write programs for Linked List (Insertion and Deletion) operations

You might also like