Skip to main content

Posts

100 C Programming Interview Questions With Answers - Technical Interview.

C Programs Frequently Asked In Interviews. This section covers C Programming Language questions often asked in campus interviews and freshers walk-in. This page will help job seekers who are about to attend TECHNICAL interview round . Here you will find simple C programming questions with answers basically asked in technical interviews . Click on any question to find out it's answers: 1) What is the difference between declaring a variable and defining a variable? 2) Define static variable? 3) What is a register variable? 4) Where is an auto variable stored? 5) What is meant by scope and storage allocation of a variable or function? 6) What is scope & storage allocation of extern and global variables? 7) What is scope & storage allocation of register? 8) What is scope & storage allocation of static and local variables? 9) What is the difference between 'break' and 'continue' statements? 10) W...

Operating System (OS) Interview Questions And Answers - Part VIII.

36. What Two Advantages & Disadvantages Do Threads Have Over Multiple Processes? Suggest One Application That Would Benefit From The Use Of Threads, & One That Would Not. Threads are very inexpensive to create and destroy, and they use very little re-sources while they exist. They do use CPU time for instance, but they don't have totally separate memory spaces. Unfortunately, threads must "trust" each other to not damage shared data. For instance, one thread could destroy data that all the other threads rely on, while the same could not happen between processes unless they used a system feature to allow them to share data. Any program that may do more than one task at once could benefit from multitasking. For instance, a program that reads input, processes it, and out-puts it could have three threads, one for each task. "Single-minded" processes would not benefit from multiple threads; for instance, a program that displays the time of the day. ...

Operating System (OS) Interview Questions And Answers - Part VII.

31. What Are The Advantages Of Using A Higher Level Language To Implement An Operating System? The code can be written faster, is more compact and is easier to understand and debug. In addition, improvements in complier technology will improve the generated code for the entire operating system by simple recompilation. Finally an operating system is far easier to port – to move to some other hardware – if written in a higher level language. 32. Distinguish Between System & Application Programs. System programs are not part of the kernel, but still are associated with the operating system. Application programs are not associated with the operating of the system. 33. State 3 Methods Used To Pass Parameters To The Operating System? Three methods used to pass parameters to the operating system are: Pass parameters in registers. Registers pass starting addresses of blocks of parameters. Parameters can be placed, or pushed, onto the stack by the ...

Operating System (OS) Interview Questions And Answers - Part VI.

26. Define The Essential Properties Of Distributed Operating System? Essential properties of Distributed Operating System: Divides computation up among several computers. The computers do not share memory or a clock; they communicate with each other over communication lines (e.g., high-speed bus, telephone line). 27. What Do You Mean By Distributed System? Why Are Distributed Systems Desirable? An operating system that manages a group of independent computers and makes them appear to be a single computer is known as a distributed operating system. The development of networked computers that could be linked and made to communicate with each other, gave rise to distributed computing. Distributed computations are carried out on more than one machine. When computers in a group work in cooperation, they make a distributed system. Distributed System is desirable because of following reasons: Any complex jobs can be divided and executed in parallel so that the res...

Operating System (OS) Interview Questions And Answers - Part V.

21. List Five Services Provided By An Operating System. Explain How Each Provides Convenience To The Users. Explain Also In Which Cases It Would Be Impossible For User-Level Programs To Provide These Services. PROGRAM EXECUTION: The operating system loads the contents (or sections) of a file into memory and begins its execution. A user-level program could not be trusted to properly allocate CPU time. I/O OPERATIONS: Disks, tapes, serial lines, and other devices must be communicated with at a very low level. The user need only specify the device and the operation to perform on it, while the system converts that request into device or controller specific commands. User-level programs cannot be trusted to only access devices they should have access to, and to only access them when they are otherwise unused. FILE-SYSTEM MANIPULATION: There are many details in file creation, deletion, allocation, and naming that users should not have to perform. Blocks of disk space are ...

Operating System (OS) Interview Questions And Answers - Part IV.

16. Discuss Distributed Operating System? Answer: An operating system that manages a group of independent computers and makes them appear to be a single computer is known as a distributed operating system. The development of networked computers that could be linked and made to communicate with each other, gave rise to distributed computing. Distributed computations are carried out on more than one machine. When computers in a group work in cooperation, they make a distributed system. Amoeba, Plan9 and LOCUS (developed during the 1980s) are some examples of distributed operating systems. 17. Discuss Embedded Operating System? Answer: The operating systems designed for being used in embedded computer systems are known as embedded operating systems. They are designed to operate on small machines like PDAs with less autonomy. They are able to operate with a limited number of resources. They are very compact and extremely efficient by design. Windows CE, FreeBSD and Minix 3 ar...

Operating System (OS) Interview Questions And Answers - Part III.

11. What Are The Three Major Activities Of An Operating System In Regard To File Management? Answer: Three major activities of an operating system in regards to file management are: Creating and deleting files. Creating and deleting directories. Supporting file and directory primitives. Mapping files onto secondary storage. File backup. 12. Discuss Various Types Of Operating Systems? Answer: Different types of operating systems available are: Real-time Operating System. Multi-user and Single-user Operating Systems. Multi-tasking and Single-tasking Operating Systems. Distributed Operating System. Embedded System. Mobile Operating System. Batch Processing and Interactive Operating Systems. 13. Discuss Real Time Operating Systems? Answer: Real-time operating systems are used to control machinery, scientific instruments and industrial systems. A very important part of an RTOS is managing the resources of the computer so that a particular operation executes in...