MCQOPTIONS
Saved Bookmarks
This section includes 40 Mcqs, each offering curated multiple-choice questions to sharpen your Computer Science Mcqs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is page cannibalizing? |
| A. | Page swapping or Page replacements |
| B. | Adding timestamps to the page |
| C. | Avoiding page replacements |
| D. | All the above |
| Answer» B. Adding timestamps to the page | |
| 2. |
Which file controls how your frames will appear? |
| A. | Frameset |
| B. | Master Document |
| C. | Template |
| D. | Timeline |
| Answer» B. Master Document | |
| 3. |
Which HTML attribute is used to define inline styles? |
| A. | font |
| B. | class |
| C. | styles |
| D. | style |
| Answer» E. | |
| 4. |
What can't layers do if you want to convert them to tables? |
| A. | Be close |
| B. | Contain a Color |
| C. | Be larger than the target table |
| D. | Overlap |
| Answer» E. | |
| 5. |
Using _______ statement is how you test for a specific condition. |
| A. | Select |
| B. | If |
| C. | Switch |
| D. | For |
| Answer» C. Switch | |
| 6. |
Which of the following is the structure of an if statement? |
| A. | if (conditional expression is true) thenexecute this codeend if |
| B. | if (conditional expression is true)execute this codeend if |
| C. | if (conditional expression is true) {then execute this code>->} |
| D. | if (conditional expression is true) then {execute this code} |
| Answer» D. if (conditional expression is true) then {execute this code} | |
| 7. |
From the following hardware where would the swap space reside? |
| A. | RAM |
| B. | ROM |
| C. | Disk |
| D. | On-chip cache |
| Answer» D. On-chip cache | |
| 8. |
The _______ method of an Array object adds and/or removes elements from an array. |
| A. | Reverse |
| B. | Shift |
| C. | Slice |
| D. | Splice |
| Answer» E. | |
| 9. |
Which of the following helps a system call to invoke? |
| A. | Polling |
| B. | A software interrupt |
| C. | Call function |
| D. | Queues |
| Answer» C. Call function | |
| 10. |
What is known as a race condition? |
| A. | When a deadlock occurs |
| B. | When it has a starvation and not a deadlock |
| C. | When the result of a computation depends on the speed of the processes involved |
| D. | When it cannot have a subroutine call. |
| Answer» D. When it cannot have a subroutine call. | |
| 11. |
From the following statements which one is not a valid deadlock prevention scheme? |
| A. | Number the resources uniquely and never request a lower numbered resource than the last one |
| B. | Release all the resources before requesting for a new resource |
| C. | Request all the resources before execution |
| D. | Never request a resource after releasing any resources |
| Answer» E. | |
| 12. |
If you want to align text to the right side of an block element in a cascading style sheet (CSS) then which of the following property would you use? |
| A. | Right align |
| B. | Justify |
| C. | Left align |
| D. | Text align |
| Answer» E. | |
| 13. |
Which is the major data structure used in RDBMS? |
| A. | Trees |
| B. | Stacks |
| C. | Graph |
| D. | Array |
| Answer» E. | |
| 14. |
What are the minimum number of queues required to implement the priority queue? |
| A. | 3 |
| B. | 2 |
| C. | 1 |
| D. | 5 |
| Answer» C. 1 | |
| 15. |
By using which method sorting is not possible? |
| A. | Insertion |
| B. | Selection |
| C. | Deletion |
| D. | Exchange |
| Answer» D. Exchange | |
| 16. |
From the following which data structure is used to perform recursion? |
| A. | FIFO |
| B. | Stack |
| C. | Binary Trees |
| D. | Query |
| Answer» C. Binary Trees | |
| 17. |
From the following ________ is a type of abstraction? |
| A. | Data |
| B. | Design |
| C. | Testing |
| D. | All of the above |
| Answer» B. Design | |
| 18. |
Which is the final form of testing used in the COTS software? |
| A. | Beta testing |
| B. | Module testing |
| C. | Integration testing |
| D. | Unit testing |
| Answer» B. Module testing | |
| 19. |
A particular design is said to be a good design only when |
| A. | Strongly cohesive and weakly coupled |
| B. | Strongly cohesive |
| C. | Weakly coupled |
| D. | Strongly coupled and weakly cohesive |
| Answer» B. Strongly cohesive | |
| 20. |
Which is the first Internet search engine? |
| A. | |
| B. | Archie |
| C. | Altavista |
| D. | WAIS |
| Answer» C. Altavista | |
| 21. |
_________ keyword is used to declare variables in javascript. |
| A. | Var |
| B. | Dim |
| C. | String |
| D. | None of the above |
| Answer» B. Dim | |
| 22. |
What are the main factors that have to be kept in mind while planning for a software development? |
| A. | People, Problem, Product, Process |
| B. | Performance, Product, People |
| C. | People, Problem, Productivity |
| D. | Problem, Productivity,Portability |
| Answer» B. Performance, Product, People | |
| 23. |
To enable data tainting, the end user sets the _________ environment variable. |
| A. | ENABLE_TAINT |
| B. | MS_ENABLE_TAINT |
| C. | NS_ENABLE_TAINT |
| D. | ENABLE_TAINT_NS |
| Answer» D. ENABLE_TAINT_NS | |
| 24. |
The attribute used to define a new namespace is. |
| A. | XMLNS |
| B. | XmlNameSpace |
| C. | Xmlns |
| D. | XmlNs |
| Answer» D. XmlNs | |
| 25. |
For using JDBC applications which of the following driver is preferable and efficient? |
| A. | Type 1 driver |
| B. | Type 2 driver |
| C. | Type 3 driver |
| D. | Type 4 driver |
| Answer» E. | |
| 26. |
By using which of the following method can the suspend thread be revived? |
| A. | suspend() method |
| B. | start() method |
| C. | resume() method |
| D. | end() method |
| Answer» D. end() method | |
| 27. |
In which package do we have the gc() method? |
| A. | java.lang package |
| B. | java.util package |
| C. | java.awt package |
| D. | java.io package |
| Answer» B. java.util package | |
| 28. |
When trying to access a URL, the following message is displayed on the browser: Server; Error 403. What could be the reason for the message? |
| A. | The requested HTML file is not available |
| B. | The path to the interpreter of the script file is invalid |
| C. | The first line of the output from the script is not a valid HTTP header |
| D. | The requested HTML file or CGI script has insufficient permission. |
| Answer» E. | |
| 29. |
The general definition of a(n) ____ is a set of linked documents with shared attributes, such as related topics, a similar design, or a shared purpose. |
| A. | index |
| B. | website |
| C. | Internet |
| D. | Homepage |
| Answer» C. Internet | |
| 30. |
From the following options indicate a correct association of the PROMPT, HEAD and RCPT commands with protocols where they are used? |
| A. | HTTP, SMTP, FTP |
| B. | FTP, HTTP, SMTP |
| C. | HTTP, FTP, SMTP |
| D. | SMTP, HTTP, FTP |
| Answer» C. HTTP, FTP, SMTP | |
| 31. |
Which environment variables are to be set on the machine in order to run the java programs? |
| A. | java.util package |
| B. | Classpath and Path |
| C. | java.lang |
| D. | java.util.io |
| Answer» C. java.lang | |
| 32. |
What does error 404 or Not Found error while accessing a URL mean? |
| A. | The server could not find the requested URL |
| B. | Requested HTML file is not available |
| C. | The path to the interpreter of the script is not valid |
| D. | The requested HTML file does not have sufficient permissions |
| Answer» B. Requested HTML file is not available | |
| 33. |
In a Javascript Application what function can be used to send messages to users requesting for an text input? |
| A. | Display() |
| B. | Alert() |
| C. | GetOutput() |
| D. | Prompt() |
| Answer» E. | |
| 34. |
Assume that an HTML form is designed to purchase the furniture. All the items required are being checked. After selecting the items the payment details are entered and the submit button is pressed. From the following options which one would you prefer to send the data to the server. Assume that all the security is handled. |
| A. | Only POST |
| B. | Only GET |
| C. | Either of GET or POST |
| D. | Neither GET nor POST |
| Answer» D. Neither GET nor POST | |
| 35. |
Which of the following is of importance in a software development life cycle? |
| A. | Planning |
| B. | Designing |
| C. | Testing |
| D. | Requirement gathering |
| Answer» B. Designing | |
| 36. |
Does the java.lang package need to be imported anytime? |
| A. | Yes |
| B. | No |
| Answer» C. | |
| 37. |
To set up the window to capture all Click events, we use which of the following statement? |
| A. | window.captureEvents(Event.CLICK); |
| B. | window.handleEvents (Event.CLICK); |
| C. | window.routeEvents(Event.CLICK ); |
| D. | window.raiseEvents(Event.CLICK ); |
| Answer» B. window.handleEvents (Event.CLICK); | |
| 38. |
Who is making the Web standards? |
| A. | Mozilla |
| B. | Microsoft |
| C. | The World Wide Web Consortium |
| D. | NVDIA |
| Answer» B. Microsoft | |
| 39. |
Can a data cell contain images? |
| A. | Yes |
| B. | No |
| Answer» B. No | |
| 40. |
Which of the following JavaScript cannot do? |
| A. | JavaScript can react to events |
| B. | JavaScript can manipulate HTML elements |
| C. | JavaScript can be use to validate data |
| D. | All of the Above |
| Answer» E. | |