Ameba Ownd

アプリで簡単、無料ホームページ作成

C objective questions and answers pdf free download

2021.12.17 22:07






















The exam will begin at 10 a. Database Questions and Answers - Aptitude. Database Interview Questions and Answers. Here you can find Database interview questions with answers and explanation. Why Database? Top 88 interview questions and answers pdf pdf ebook download free Give an example of a time you identified a new approach to a workplace problem This question is a test of your analytical skills and likely to be asked of Please answer each of the questions below.


For each question use a pen or pencil to "bubble in". Solution: 2. Solution: 3. Swap two variables without using third variable. What is dangling pointer in c? Dangling pointer:. If any pointer is pointing the memory address of any variable but after some variable has deleted from that memory location while pointer is still pointing such memory location.


Such pointer is known as dangling pointer and this problem is known as dangling pointer problem. For example:. What will be output of following c program? Output: Garbage value. Note: In some compiler you may get warning message returning address of local variable or temporary.


Explanation : variable x is local variable. Its scope and lifetime is within the function call hence after returning address of x variable x became dead and pointer is still pointing ptr is still pointing to that location. Solution of this problem:. In closed loop control system, with positive value of feedback gain the overall gain of the system will a decrease b increase c be unaffected d any of the above Ans: a. Which of the following is an open loop control system?


Which of the following statements is not necessarily correct for open control system? In open loop system a the control action depends on the size of the system b the control action depends on system variables c the control action depends on the input signal d the control action is independent of the output Ans: d. A good control system has all the following features except a good stability b slow response c good accuracy d sufficient power handling capacity Ans: b.


The initial response when tne output is not equal to input is called a Transient response b Error response c Dynamic response d Either of the above Ans: a. A control system working under unknown random actions is called a computer control system b digital data system c stochastic control system d adaptive control system Ans: c. Any externally introduced signal affecting the controlled output is called a a feedback b stimulus c signal d gain control Ans: b.


A closed loop system is distinguished from open loop system by which of the following? By which of the following the control action is determined when a man walks along a path? Which of the following devices are commonly used as error detectors in instruments? Which of the following should be done to make an unstable system stable? As a result of introduction of negative feedback which of the following will not decrease?


Regenerative feedback implies feedback with a oscillations b step input c negative sign d positive sign Ans: d. The output of a feedback control system must be a function of a reference and output b reference and input e input and feedback signal d output and feedback signal Ans: a. A control system with excessive noise, is likely to suffer from a saturation in amplifying stages b loss of gain c vibrations d oscillations Ans: a.


Zero initial condition for a system means a input reference signal is zero b zero stored energy c ne initial movement of moving parts d system is at rest and no energy is stored in any of its components Ans: d. Transfer function of a system is used to calculate which of the following? The band width, in a feedback amplifier. On which of the following factors does the sensitivity of a closed loop system to gain changes and load disturbances depend?


The transient response, with feedback system, a rises slowly b rises quickly c decays slowly d decays quickly Ans: d. The second derivative input signals modify which of the following? Which of the following statements is correct for any closed loop system? Which of the following statements is correct for a system with gain margin close to unity or a phase margin close to zero?


Due to which of the following reasons excessive bond width in control systems should be avoided? What information does this address specify? What is the responsibility of the logical unit in the CPU of a computer? Abacus was the first A electronic computer B mechanical computer C electronic calculator D mechanical calculator Which is used for manufacturing chips? The value of each bead in heaven is A 1 B 3 C 5 D 7 Mnemonic a memory trick is used in which of the following language?


Which was the most popular first generation computer? Which is considered a direct entry input device? From which generation operating systems were developed? How many address lines are needed to address each machine location in a x 4 memory chip? Why are vacuum tubes also called valves? An integrated circuit is A A complicated circuit B An integrating device C Much costlier than a single transistor D Fabricated on a tiny silicon chip What type of control pins are needed in a microprocessor to regulate traffic on the bus, in order to prevent two devices from trying to use it at the same time?


Which of the following is used as a primary storage device? What are the three decisions making operations performed by the ALU of a computer? A i-false, ii-false 7. A i-false, ii-false 8. B a-3, b-2, c-4, d-1 B i-false, ii-false, iii-false, iv-false.


The ……………… and ……………….. A reader, writer B inputstream, outputstream C objectinputstream, objectoutputstream D none. What is the error in the following code? A No error B Method display should be declared as static C Test class should be declared as abstract D Test class should be declared as public. A package is a collection of A classes B interfaces C editing tools D classes and interfaces. Which of the following methods belong to the string class? What will be the output of the following code?


Which of the following control expressions are valid for an if statement? The concept of multiple inheritances is implemented in Java by A extending two or more classes B extending one class and implementing one or more interfaces C implementing two or more interfaces D both B and C.


Which of the following do not represent legal flow control statements? A break; B return; C exit ; D continue outer;. Data input is A an abstract class defined in java. D an interface that defines methods to read primitive data types. B input stream, the output stream 2. C Test class should be declared as abstract 3. D classes and interfaces 4. D All of them 5. B A Boolean expression 8. C exit ; Using which keyword we can access the value of the instance variables and class variables of that class inside the method of that class itself.


Methods can be overloaded with a difference only in the type of the return value. It is an important feature of java that it always provides a default constructor to a class. C this 2. C initial 3. C i-false, ii-true, iii-false, iv-false 4. B abstract data type 5. B False 6. A Not necessary 7. A i-true, ii-true, iii-false, iv-true 8. C True 9. C i-false, ii-true, iii-false, iv-false. D Directive Pre-processor 6. Method overloading is one of the ways that Java supports ………….


D Remote Memory Interface 8. Which of the following represent legal flow control statements? D Code is illegal and therefore will not compile 4. Consider the following class definition. What happens when we try to compile this class? A Will not compile because the class body is not defined. D Line i, ii and iii only 8. We would like to make a member of a class visible in all subclasses regardless of what package they are in. Which one of the following keywords would archive this?


D Private Protected 9. The use of a protected keyword to a member in a class will restrict its visibility as follows:. D All the above Answers: 1. D Will not compile because the string is final. What is wrong in the following class definitions?


C Wrong. Method show is not implemented in Display 6. What is the error in the following class definitions? Which of the following statements are true? C Visible in all classes in the same package and subclasses in other packages Consider the following code:. C Method compute in class Room should be declared public 1. A java program is first ……………. D none 4. D MouseEvent 8. Using which keyword we can access the value of the instance and class variables of that class inside the method of that class itself.


D either super or this 9. D None of the above If one or more abstract methods are not implemented in an abstract class, then the subclass is also abstract. Objects 7 C. Class 8 D. Distributed 10 D. Final 12 A. NULL 13 A.