C Programming Test (Random Questions) - Computer Science & Engineering
| Marks : | ||
| Total number of questions | : | |
| Number of answered questions | : | |
| Number of unanswered questions | : | |
Instruction:
| 1. | How many broadcast domains are created when you segment a network with a 12-port switch? |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: By default, switches break up collision domains but are one large broadcast domain. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 2. | Which of the following statement is correct about a String in C#.NET? |
||||||||||||||
Your Answer: Option Correct Answer: Option D Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 3. | A traditional data administrator performs which of the following roles? |
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 4. | Which of the following will directly stop the execution of a Thread? |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: Option A is correct. wait() causes the current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object. Option B is wrong. notify() - wakes up a single thread that is waiting on this object's monitor. Option C is wrong. notifyAll() - wakes up all threads that are waiting on this object's monitor. Option D is wrong. Typically, releasing a lock means the thread holding the lock (in other words, the thread currently in the synchronized method) exits the synchronized method. At that point, the lock is free until some other thread enters a synchronized method on that object. Does entering/exiting synchronized code mean that the thread execution stops? Not necessarily because the thread can still run code that is not synchronized. I think the word directly in the question gives us a clue. Exiting synchronized code does not directly stop the execution of a thread. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 5. | Changing cardinalities in a database is: |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 6. | Client-side extensions: |
|||||||||||
Your Answer: Option Correct Answer: Option B Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 7. | Format flags may be combined using |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 8. | In DOS, which of the following keys will bypass the CONFIG.SYS and AUTOEXEC.BAT files? |
||||||||||||||
Your Answer: Option Correct Answer: Option B Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 9. | A _____ is a brief message to an operator that describes what data are to be entered. |
||||||||||||||
Your Answer: Option Correct Answer: Option A Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 10. | You want to run the new 802.1w on your switches. Which of the following would enable this protocol? |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: 802.1w is the also called Rapid Spanning Tree Protocol. It is not enabled by default on Cisco switches, but it is a better STP to run since it has all the fixes that the Cisco extensions provide with 802.1d. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 11. | For every relationship, how many possible types of actions are there when enforcing minimum cardinalities? |
|||||||||||
Your Answer: Option Correct Answer: Option D Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 12. | What will be the output of the program? |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: Step 1: int y=128; The variable 'y' is declared as an integer type and initialized to value "128". Step 2: const int x=y; The constant variable 'x' is declared as an integer and it is initialized with the variable 'y' value. Step 3: printf("%d\n", x); It prints the value of variable 'x'. Hence the output of the program is "128" Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 13. | Destructor calls are made in which order of the corresponding constructor calls? |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 14. | What will be the output of the program? class Test void start() boolean fix(boolean b1) |
|||||||||||
Your Answer: Option Correct Answer: Option B Explanation: The boolean b1 in the fix() method is a different boolean than the b1 in the start() method. The b1 in the start() method is not updated by the fix() method. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 15. | Which of the following is the correct way to define a variable of the type struct Emp declared below? struct Emp 1 Emp e(); e = new Emp(); 2 Emp e = new Emp; 3 Emp e; e = new Emp; 4 Emp e = new Emp(); 5 Emp e;
|
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 16. | Whose role is it to determine the requirements and design for a database? |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 17. | A tuple is a(n): |
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 18. | Which inheritance type is used in the class given below? class A : public X, public Y {} |
|||||||||||
Your Answer: Option Correct Answer: Option B Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 19. | Destructor has the same name as the constructor and it is preceded by ______ . |
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 20. | Using a microcomputer as a controller allows: |
||||||||||||||
Your Answer: Option Correct Answer: Option D Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
C Programming Test (Random Questions) - Computer Science & Engineering
