Explore topic-wise MCQs in Computer Science.

This section includes 35 Mcqs, each offering curated multiple-choice questions to sharpen your Computer Science knowledge and support exam preparation. Choose a topic below to get started.

1.

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.
2.

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}
3.

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
4.

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
5.

Which is the major data structure used in RDBMS?

A. Trees
B. Stacks
C. Graph
D. Array
Answer» E.
6.

Which is the first Internet search engine?

A. Google
B. Archie
C. Altavista
D. WAIS
Answer» C. Altavista
7.

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
8.

Which file controls how your frames will appear?

A. Frameset
B. Master Document
C. Template
D. Timeline
Answer» B. Master Document
9.

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
10.

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.
11.

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
12.

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
13.

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.
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.

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
16.

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);
17.

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
18.

The _______ method of an Array object adds and/or removes elements from an array.

A. Reverse
B. Shift
C. Slice
D. Splice
Answer» E.
19.

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
20.

The attribute used to define a new namespace is.

A. XMLNS
B. XmlNameSpace
C. Xmlns
D. XmlNs
Answer» D. XmlNs
21.

_________ keyword is used to declare variables in javascript.

A. Var
B. Dim
C. String
D. None of the above
Answer» B. Dim
22.

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
23.

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.
24.

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.
25.

From the following which data structure is used to perform recursion?

A. FIFO
B. Stack
C. Binary Trees
D. Query
Answer» C. Binary Trees
26.

From the following ________ is a type of abstraction?

A. Data
B. Design
C. Testing
D. All of the above
Answer» B. Design
27.

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
28.

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
29.

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.
30.

Does the java.lang package need to be imported anytime?

A. Yes
B. No
Answer» C.
31.

Can a data cell contain images?

A. Yes
B. No
Answer» B. No
32.

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
33.

By using which method sorting is not possible?

A. Insertion
B. Selection
C. Deletion
D. Exchange
Answer» D. Exchange
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.

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