C Programming Test (Random Questions) - Computer Science & Engineering
Marks : | ||
Total number of questions | : | |
Number of answered questions | : | |
Number of unanswered questions | : |
Instruction:
1. | Which of the following is the correct order if calling functions in the below code? a = f1(23, 14) * f2(12/4) + f3(); |
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: Here, Multiplication will happen before the addition, but in which order the functions would be called is undefined. In an arithmetic expression the parenthesis tell the compiler which operands go with which operators but do not force the compiler to evaluate everything within the parenthesis first. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
2. | You are setting up a network in a school. You need to network 5 computers for the file and printer sharing. You want to use some donated cable and Ethernet adapters. You identify the donated adapters as ARCnet coaxial network adapters and 10Base2 Ethernet network adapters. You install an Ethernet adapter in each of the 5 computers and connect the donated cable. The computers are NOT able to maintain reliable communication. You suspect that you are NOT using the correct type of coaxial cable. Which type of coaxial cable should you be 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 |
3. | You are the administrator of a Windows 2000 Server computer. The server hosts several web sites that have logging enabled. You use a third-party reporting utility to analyze the log files produced by the web sites. You notice that all data from 7:00pm to midnight each night is included in the following day's logfile. You want all data to be included in the correct day's log file. What should you do? |
||||||||||||||
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 |
4. | What was the name of the Japanese worker who was killed by an industrial robot at the Akashi plant of Kawasaki Heavy Industries in Japan? |
||||||||||||||
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 |
5. | You are the administrator of a Windows 2000 Server computer that has FIVE hard disks. Four 100 GB hard disks on the server are configured as a single stripe volume. You want to reconfigure the fourth disk so that the volume is fault tolerant and has as much space possible available for storing data. You want to use only existing hardware. What should you do? |
||||||||||||||
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 |
6. | A regular subquery can be processed: |
|||||||||||
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. | What will be the output of the program? class PassA void start() long [] fix(long [] a3) |
|||||||||||
Your Answer: Option Correct Answer: Option B Explanation: Output: 15 15 The reference variables a1 and a3 refer to the same long array object. When the [1] element is updated in the fix() method, it is updating the array referred to by a1. The reference variable a2 refers to the same array object. So Output: 3+7+5+" "3+7+5 Output: 15 15 Because Numeric values will be added Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
8. | If container classes are carefully constructed, then these tools are available to work with structures that are not ______ |
|||||||||||
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 |
9. | What prevents a robotic instrument from running into other objects? |
||||||||||||||
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 |
10. | What do the following declaration signify? void (*cmp)(); |
|||||||||||
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 |
11. | Which of the following statements is correct?
|
|||||||||||
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. | While working with MS-DOS, which command is used to move file from one directory to another? |
||||||||||||||
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 |
13. | A union that has no constructor can be initialized with another union of __________ type. |
|||||||||||
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 |
14. | How many simultaneous Telnet sessions does a Cisco router support by default? |
|||||||||||
Your Answer: Option Correct Answer: Option D Explanation: Cisco routers, if they do not have the Enterprise edition of the IOS, will default to 5 simultaneous Telnet sessions. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
15. | Which three guarantee that a thread will leave the running state? 1 yield() |
|||||||||||
Your Answer: Option Correct Answer: Option B Explanation: (2) is correct because wait() always causes the current thread to go into the object's wait pool. (5) is correct because sleep() will always pause the currently running thread for at least the duration specified in the sleep argument (unless an interrupted exception is thrown). (6) is correct because, assuming that the thread you're calling join() on is alive, the thread calling join() will immediately block until the thread you're calling join() on is no longer alive. (1) is wrong, but tempting. The yield() method is not guaranteed to cause a thread to leave the running state, although if there are runnable threads of the same priority as the currently running thread, then the current thread will probably leave the running state. (3) and (4) are incorrect because they don't cause the thread invoking them to leave the running state. (7) is wrong because there's no such method. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
16. | If the binary eauivalent of 5.375 in normalised form is 0100 0000 1010 1100 0000 0000 0000 0000, what will be the output of the program (on intel machine)?
|
|||||||||||
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 |
17. | Which of the following does not allow multiple users or devices to share one communications line? |
||||||||||||||
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 |
18. | With which of the following can the ref keyword be used? 1 Static data 2 Instance data 3 Static function/subroutine 4 Instance function/subroutine
|
||||||||||||||
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. | The term TSR is an abbreviation for: |
||||||||||||||
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 |
20. | vThe SQL statement that queries or reads data from a table 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 |
C Programming Test (Random Questions) - Computer Science & Engineering