QUOTE

welcome

welcome to our college social blog
we have lot of information about our college fest and events etc
all of our college members join in this site .
to add to this blog
click on follow then select google
after that log in with your gmail id
thank you
KARTHIK REDDY.

Thursday, March 22, 2012

Web Technology: Comprehensive Viva Questions




Web Technology: Comprehensive Viva Questions
Total Questions in this document: 70

Html

1.  Who is making the Web standards?

a)         The World Wide Web Consortium
b)         Mozilla
c)         Microsoft
d)         Distributed Management Task Force Inc.
Answer:  a


2. What is the correct HTML for creating a hyperlink?
a)         <a url="http://www.w3schools.com">W3Schools.com</a>
b)         <a href="http://www.w3schools.com">W3Schools</a>
c)         <a name="http://www.w3schools.com">W3Schools.com</a>
d)         <a>http://www.w3schools.com</a>
Answer: b


3. How can you create an e-mail link?
a)         <a href="mailto:xxx@yyy">
b)         <mail href="xxx@yyy">
c)         <a href="xxx@yyy">
d)         <mail>xxx@yyy</mail>
Answer:  b


5. How can you open a link in a new browser window?
a)         <a href="url" target="_blank">
b)         <a href="url" target="new">
c)         <a href="url" new>
d)         <a href=”url” new window>
Answer:  a




6. What is the correct HTML for making a drop-down list?
a)         <dl>   
b)         <list>
c)         <ul>
d)         <ol>
Answer: c


7. What is the correct HTML for inserting an image?
a)         <img href="image.gif" alt="MyImage" />
b)         <img alt="MyImage">image.gif</img>
c)         <image src="image.gif" alt="MyImage" />
d)         <img src="image.gif" alt="MyImage" />

Correct Answer: d

9. What is the correct HTML for inserting a background image?
a)         <img src="background.gif" background />
b)         <img image= “background.gif” background>
c)         <body background="background.gif">
d)         <background img="background.gif">
Answer: c

9. Which of these tags are all <table> tags?
a)         <table><head><tfoot>
b)         <table><tr><td>
c)         <thead><body><tr>
d)         <table><tr><tt>
Answer:  b

10. Hypertext Transfer Protocol Secure (HTTPS) is a combination of
________________________  Protocol  with _______________ protocol.

Answer: Hypertext Transfer Protocol (HTTP) with SSL/TLS protocol.


11. Which statement is true for session tracking.
a)  URL Rewriting.
b) Hidden from fields.
c) Cookies.
d) Using Secure Sockets Layer.
e)  All of the above.
Answer: e
           



JavaScript


1.  _____ JavaScript statements embedded in an HTML page can respond to user events
 such as mouse-clicks, form input, and page navigation.
A.  Client-side
B.   Server-side
C.  Local
D.  Native
Answer: A


2.  Which of the following can't be done with client-side JavaScript?
A.  Validating a form
B.   Sending a form's contents by email
C.  Storing the form's contents to a database file on the server
D.  None of the above
Answer: C

3.  Which is the correct way to write a JavaScript array?
A.  var txt = new Array(1:"tim",2:"kim",3:"jim")
B.   var txt = new Array:1=("tim")2=("kim")3=("jim")
C.  var txt = new Array("tim","kim","jim")
D.  var txt = new Array="tim","kim","jim"

Answer: C



4.  Which of the following is not considered a JavaScript operator?
     Correct Answer: B
A.  new
B.  this
C.  delete
D.  typeof
Answer:  b



5. Actions that can be detected by javascript are called ?
a)         HTML
b)         Events
c)         Array
Answer: b


6.  How to create a Date object in JavaScript?
A.  dateObjectName = new Date([parameters])
B.   dateObjectName.new Date([parameters])
C.  dateObjectName := new Date([parameters])
D.  dateObjectName Date([parameters])
Answer: A


7.  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: A;


8. _______ class provides an interface for invoking JavaScript methods and examining JavaScript
properties.
   Answer: JSObject

9.  To open a dialog box each time an error occurs, which of the following is added to prefs.js?
A.  user_pref("javascript.classic.error_alerts", true);
B.   user_pref("javascript.classic.error_alerts ", false);
C.  user_pref("javascript.console.open_on_error ", true);
D.  user_pref("javascript.console.open_on_error ", false);

Answer: A



10.  The syntax of capture events method for document object is ______________
Answer: C
A.  captureEvents()
B.   captureEvents(args eventType)
C.  captureEvents(eventType)
D.  captureEvents(eventVal)
Correct Answer: C / captureEvents(eventType)


CSS

1. What is the correct HTML for referring to an external style sheet?
  
a)         <stylesheet>mystyle.css</stylesheet />
b)         <link rel="stylesheet" type="text/css" href="mystyle.css">
c)         <style src="mystyle.css" />
Answer: b

Correct Answr: b /  <link rel="stylesheet" type="text/css" href="mystyle.css">


2. Which HTML tag is used to define an internal style sheet?
a)         <style>
b)         <script>
c)         <css>
Answer: a

3. Which is the correct CSS syntax?

a)         {body:color=black(body}
b)         body {color: black}
c)         {body;color:black}
d)         body:color=black

Answer: b 

XML

1. Which statement is NOT  True.
a)         XML stands for EXtensible Markup Language
b)         XML was designed to carry data, not to display data
c)         XML was designed to display data, not to carry data.
d)         XML tags are not predefined. You must define your own tags.
e)         None of the above.
 Answer: c


2. Which statement is NOT True.
a)         All XML Elements must have a closing tag.
b)         XML tags are case sensitive.
c)         XML elements must be properly nested.
d)         Xml documents have a root element.
e)         None of  the above.
 Answer: e



3. What does XML stand for?

a)         eXtra Modern Link
b)         eXtensible Markup Language
c)         X-Markup Language
d)         Example Markup Language

Answer: b


4. There is a way of describing XML data, how?

a)         XML uses a description node to describe data
b)         XML uses a DTD to describe the data
c)         XML uses XSL to describe data
Answer: a




5. What is the correct syntax of the declaration which defines the XML version?

a)         <?xml version="1.0" />
b)         <?xml version="1.0"?>
c)         <xml version="1.0" />
Answer: a


6. What does DTD stand for?

a)         Document Type Definition
b)         Dynamic Type Definition
c)         Direct Type Definition
d)         Do The Dance

Answer: a



7. What does XSL stand for?

a)         eXtensible Style Listing
b)         eXtra Style Language
c)         eXpandable Style Language
d)         eXtensible Stylesheet Language

Answer: d


8. What is a correct way of referring to a stylesheet called "mystyle.xsl" ?

a)         <link type="text/xsl" href="mystyle.xsl" />
b)         <stylesheet type="text/xsl" href="mystyle.xsl" />
c)         <?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>
Answer: a



9. For the XML parser to ignore a certain section of your XML document, which syntax is correct?

a)         <CDATA> Text to be ignored </CDATA>
b)         <PCDATA> Text to be ignored </PCDATA>
c)         <![CDATA[ Text to be ignored ]]>
d)         <xml:CDATA[ Text to be ignored ]>
Answer: c

Servlets

1) Which statement is true?
a) Both Generic Servlet and HttpServlet implements Serializable Interface.
b) Both these classes are abstract.
c) GenericServlet defines a generic,protoco-independent servlet.
d) All statements are true.
Answer: d

2) For getting locale-specific object, it needs to load   _____________ class.
Answer:  ResourceBundle


3) For a web application development strcture, in which directory contains web.xml file in web
application development strcture.
a) classes
b) lib
c) webapps
d) web-inf
Answer: d


4) For a web application development structure, in which directory contains servlet class files.
a) classes
b) lib
c) webapps
d) servlet.
Answer: a

5) Which attribute or xml tag is not valid in web.xml
a) init-servlet
b) servlet-mapping
c) url-pattern
d) servlet-name
Answer: a

6) JSTL stands for
1) Java Server Transcation Language
2) JSP Standard Tag Library
3) Java Server Tag Library
4) None of the above.
Answer: 2

7) A java framework that allows us to access database through java program
is called ____________
Answer: jdbc



8) Which Package contains the JDBC API?
a) java.jdbc.*
b) javax.jdbc.*;
c) java.sql.*;
d) javax.sql.*;
Answer:c

9) We send and receive HTML files files using which protocol?
a) SMTP
b) POP3
c)HTTP
d) FTP
Answer: c


10) Which driver is called Pure Java Driver?
a) 1
b) 2
c) 3
d) 4
Answer: d

11) In Tomcat Server,  ____________ jar file is required to compile servlets.
Answer: servlet-api.jar

12) ____________ is Tomcat's servlet Container.
Answer: Catalina


13) ___________ object is used to encapsulates the retrieved data
 for executeQuery() method of Statement.
Answer: java.sql.ResultSet

14) ______________ class is used to open a connection to a given database.
Answer: DriverManager

15) ________________ is the process of writing the state of an object to a
byte stream.
Answer: Serialization.

16)   _______________method of class HttpServletRequest  used to get an array of  of all the cookies.
Answer: getCookies();

17) SMTP stands for _________________________________
Answer: Simple Mail Transfer Protocol.


JSP

1) Which of the following statement is true?
a) It has public no arguments contructor.
b) It has setter and getter methods for its properties.
c) If required it must be serializable.
d) All statements are true.
Answer: d


2) Which one of them is not implicit object in JSP?
a)  javabean
b) request
c) pageContext 
d) none of the above.
Answer:  javabean

3) JSP Syntax for comment is
(a)   <!-        ->
(b)  <%          %>
(c)   <%=      %>
(e)  none of the above
Answer: a

4) How many JSP Scripting elements are there?
a) 1
b) 2
c) 3
d) 4

5) Structs is an
a) Factory Design Pattern Implementation
b) Bridge Design Pattern Implementation
c) Singleton Design Pattern Implementation
d) MVC Design Pattern Implementation
Answer: d

6) Controller in MVC Design Pattern
a) Represents for intercepting the requests from view and passes it to model for the appropriate
action.
b) Represents the presentations of the application.
c) Represents enterprise data and business rules.
d) None of the above.
Answer: a

7) Which jar file contains JSTL API Classes?
a)  servlet-api.jar
b) jsp-api.jar
c) standar.jar
d) None of the above.


8) JSP Technology separates ___________________
Answer: presentation and business logic


9) ____________ is Tomcat's JSP Engine.
Answer: Jasper


10) In order to be persistent, a Java Bean needs to implement the ______________ interface.
Answer: java.io.Serializable interface.           


11. WAR stands for ____________________________
Answer: Web Application Archive



12.  TLD stands for ____________________________
Answer: Tag Library Descriptor


13.  ______________________ file is the application deployment descriptor that contains all
configuration information for the application.
Answer: web.xml


14. _______________________ element maps a servlet or JSP page to a URL pattern.
Answer: <Servlet-mapping>


15. Which one of the element embeds most elements dealing JSP configuration in web.xml.
a) <servlet-mapping>
b) <session-config>
c) <security-constraint>
d) <jsp-config>
Answer: d

16.   ________________ is the command to create WAR file.
Answer: jar cvf   <filename.war>  *

17.  _________________  tag is used to declare the java bean in JSP page.
Answer: <jsp:useBean>

18. Which one of the below tag library is used to handle Internalization and Locales.
   a) <%@ taglib prefix=”fmt” uri=http://java.sun.com/jsp/jstl/fmt %>
   b) <%@ taglib prefix=”sql” uri = http://java.sun.com/jsp/jstl/sql %>
   c)  <%@ taglib prefix=”fn” uri=http://java.sun.com/jsp/jstl/functions %>
   d) <%@ taglib prefix=”c” uri = “http://java.sun.com/jsp/jstl/core %>
Answer: a

18.  Which one of the below is directive element.
  a) <jsp: useBean>
  b) <%@ include ….%>
  c) <!  ……… %>
  d)  <!@ …….%>.
Answer: b

19. JSP comment looks like
 a)  /* ……….. */
 b) <%@  ….. %>
c) <%! …….. %>
d) <%--   ….. %>
Answer: d



20. which statement is not true about Javabeans.
a) JavaBeans are not reusable software components for Java.
b) They contain setter and getter methods.
c) Javabean class implements Serializable Interface.
d) JavaBeans are reusable software components for Java.
e) None of the above.
f) All the above.
Answer: f

---------------------------------------END OF THE DOCUMENT --------------------------








ddd

Web Technology


Web Technology: Comprehensive Viva Questions
Total Questions in this document: 70

Html

1.  Who is making the Web standards?
 
a) The World Wide Web Consortium
b) Mozilla
c) Microsoft
d) Distributed Management Task Force Inc.
Answer:  a


2. What is the correct HTML for creating a hyperlink?
a) <a url="http://www.w3schools.com">W3Schools.com</a>
b) <a href="http://www.w3schools.com">W3Schools</a>
c) <a name="http://www.w3schools.com">W3Schools.com</a>
d) <a>http://www.w3schools.com</a>
Answer: b

 
3. How can you create an e-mail link?
a) <a href="mailto:xxx@yyy">
b) <mail href="xxx@yyy">
c) <a href="xxx@yyy">
d) <mail>xxx@yyy</mail>
Answer:  b

 
5. How can you open a link in a new browser window?
a) <a href="url" target="_blank">
b) <a href="url" target="new">
c) <a href="url" new>
d) <a href=”url” new window>
Answer:  a




6. What is the correct HTML for making a drop-down list?
a) <dl> 
b) <list>
c) <ul>
d) <ol>
Answer: c


7. What is the correct HTML for inserting an image?
a) <img href="image.gif" alt="MyImage" />
b) <img alt="MyImage">image.gif</img>
c) <image src="image.gif" alt="MyImage" />
d) <img src="image.gif" alt="MyImage" />

Correct Answer: d
 
9. What is the correct HTML for inserting a background image?
a) <img src="background.gif" background />
b) <img image= “background.gif” background>
c) <body background="background.gif">
d) <background img="background.gif">
Answer: c

9. Which of these tags are all <table> tags?
a) <table><head><tfoot>
b) <table><tr><td>
c) <thead><body><tr>
d) <table><tr><tt>
Answer:  b

10. Hypertext Transfer Protocol Secure (HTTPS) is a combination of 
________________________  Protocol  with _______________ protocol.

Answer: Hypertext Transfer Protocol (HTTP) with SSL/TLS protocol.


11. Which statement is true for session tracking.
a)  URL Rewriting.
b) Hidden from fields.
c) Cookies.
d) Using Secure Sockets Layer.
e)  All of the above.
Answer: e
 



JavaScript


1.  _____ JavaScript statements embedded in an HTML page can respond to user events
 such as mouse-clicks, form input, and page navigation. 
A.  Client-side 
B.   Server-side
C.  Local
D.  Native
Answer: A 


2.  Which of the following can't be done with client-side JavaScript? 
A.  Validating a form 
B.   Sending a form's contents by email 
C.  Storing the form's contents to a database file on the server 
D.  None of the above 
Answer: C
 
3.  Which is the correct way to write a JavaScript array? 
A.  var txt = new Array(1:"tim",2:"kim",3:"jim") 
B.   var txt = new Array:1=("tim")2=("kim")3=("jim") 
C.  var txt = new Array("tim","kim","jim") 
D.  var txt = new Array="tim","kim","jim" 

Answer: C 



4.  Which of the following is not considered a JavaScript operator? 
     Correct Answer: B
A.  new 
B.  this
C.  delete
D.  typeof
Answer:  b



5. Actions that can be detected by javascript are called ?
a) HTML
b) Events
c) Array
Answer: b


6.  How to create a Date object in JavaScript? 
A.  dateObjectName = new Date([parameters])
B.   dateObjectName.new Date([parameters]) 
C.  dateObjectName := new Date([parameters]) 
D.  dateObjectName Date([parameters]) 
Answer: A


7.  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: A;


8. _______ class provides an interface for invoking JavaScript methods and examining JavaScript properties. 
   Answer: JSObject

9.  To open a dialog box each time an error occurs, which of the following is added to prefs.js?
A.  user_pref("javascript.classic.error_alerts", true);
B.   user_pref("javascript.classic.error_alerts ", false);
C.  user_pref("javascript.console.open_on_error ", true);
D.  user_pref("javascript.console.open_on_error ", false);
 
Answer: A



10.  The syntax of capture events method for document object is ______________ 
Answer: C
A.  captureEvents() 
B.   captureEvents(args eventType) 
C.  captureEvents(eventType) 
D.  captureEvents(eventVal) 
Correct Answer: C / captureEvents(eventType) 


CSS

1. What is the correct HTML for referring to an external style sheet?
   
a) <stylesheet>mystyle.css</stylesheet />
b) <link rel="stylesheet" type="text/css" href="mystyle.css">
c) <style src="mystyle.css" />
Answer: b

Correct Answr: b /  <link rel="stylesheet" type="text/css" href="mystyle.css">


2. Which HTML tag is used to define an internal style sheet?
a) <style>
b) <script>
c) <css>
Answer: a 

3. Which is the correct CSS syntax?

a) {body:color=black(body}
b) body {color: black}
c) {body;color:black}
d) body:color=black

Answer: b  

XML

1. Which statement is NOT  True.
a) XML stands for EXtensible Markup Language
b) XML was designed to carry data, not to display data
c) XML was designed to display data, not to carry data.
d) XML tags are not predefined. You must define your own tags.
e) None of the above.
 Answer: c


2. Which statement is NOT True.
a) All XML Elements must have a closing tag.
b) XML tags are case sensitive.
c) XML elements must be properly nested.
d) Xml documents have a root element.
e) None of  the above.
 Answer: e



3. What does XML stand for?

a) eXtra Modern Link
b) eXtensible Markup Language
c) X-Markup Language
d) Example Markup Language

Answer: b 


4. There is a way of describing XML data, how?

a) XML uses a description node to describe data
b) XML uses a DTD to describe the data
c) XML uses XSL to describe data
Answer: a 




5. What is the correct syntax of the declaration which defines the XML version?

a) <?xml version="1.0" />
b) <?xml version="1.0"?>
c) <xml version="1.0" />
Answer: a


6. What does DTD stand for?

a) Document Type Definition
b) Dynamic Type Definition
c) Direct Type Definition
d) Do The Dance

Answer: a



7. What does XSL stand for?

a) eXtensible Style Listing
b) eXtra Style Language
c) eXpandable Style Language
d) eXtensible Stylesheet Language

Answer: d


8. What is a correct way of referring to a stylesheet called "mystyle.xsl" ?

a) <link type="text/xsl" href="mystyle.xsl" />
b) <stylesheet type="text/xsl" href="mystyle.xsl" />
c) <?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>
Answer: a



9. For the XML parser to ignore a certain section of your XML document, which syntax is correct?

a) <CDATA> Text to be ignored </CDATA>
b) <PCDATA> Text to be ignored </PCDATA>
c) <![CDATA[ Text to be ignored ]]>
d) <xml:CDATA[ Text to be ignored ]>
Answer: c

Servlets

1) Which statement is true?
a) Both Generic Servlet and HttpServlet implements Serializable Interface.
b) Both these classes are abstract.
c) GenericServlet defines a generic,protoco-independent servlet.
d) All statements are true.
Answer: d

2) For getting locale-specific object, it needs to load   _____________ class.
Answer:  ResourceBundle 


3) For a web application development strcture, in which directory contains web.xml file in web application development strcture.
a) classes
b) lib
c) webapps
d) web-inf
Answer: d


4) For a web application development structure, in which directory contains servlet class files.
a) classes
b) lib
c) webapps
d) servlet.
Answer: a

5) Which attribute or xml tag is not valid in web.xml
a) init-servlet
b) servlet-mapping
c) url-pattern
d) servlet-name
Answer: a

6) JSTL stands for
1) Java Server Transcation Language
2) JSP Standard Tag Library
3) Java Server Tag Library
4) None of the above.
Answer: 2

7) A java framework that allows us to access database through java program
is called ____________
Answer: jdbc



8) Which Package contains the JDBC API?
a) java.jdbc.*
b) javax.jdbc.*;
c) java.sql.*;
d) javax.sql.*;
Answer:c

9) We send and receive HTML files files using which protocol?
a) SMTP
b) POP3
c)HTTP
d) FTP
Answer: c


10) Which driver is called Pure Java Driver?
a) 1 
b) 2
c) 3
d) 4
Answer: d

11) In Tomcat Server,  ____________ jar file is required to compile servlets.
Answer: servlet-api.jar

12) ____________ is Tomcat's servlet Container.
Answer: Catalina


13) ___________ object is used to encapsulates the retrieved data
 for executeQuery() method of Statement.
Answer: java.sql.ResultSet 

14) ______________ class is used to open a connection to a given database.
Answer: DriverManager

15) ________________ is the process of writing the state of an object to a 
byte stream.
Answer: Serialization.

16)   _______________method of class HttpServletRequest  used to get an array of  of all the cookies.
Answer: getCookies();

17) SMTP stands for _________________________________
Answer: Simple Mail Transfer Protocol.


JSP

1) Which of the following statement is true?
a) It has public no arguments contructor.
b) It has setter and getter methods for its properties.
c) If required it must be serializable.
d) All statements are true.
Answer: d


2) Which one of them is not implicit object in JSP?
a)  javabean
b) request 
c) pageContext  
d) none of the above.
Answer:  javabean

3) JSP Syntax for comment is
(a)   <!-        ->
(b)  <%          %>
(c)   <%=      %>
(e)  none of the above
Answer: a

4) How many JSP Scripting elements are there?
a) 1
b) 2
c) 3
d) 4

5) Structs is an 
a) Factory Design Pattern Implementation
b) Bridge Design Pattern Implementation
c) Singleton Design Pattern Implementation
d) MVC Design Pattern Implementation
Answer: d

6) Controller in MVC Design Pattern
a) Represents for intercepting the requests from view and passes it to model for the appropriate action.
b) Represents the presentations of the application.
c) Represents enterprise data and business rules.
d) None of the above.
Answer: a

7) Which jar file contains JSTL API Classes?
a)  servlet-api.jar
b) jsp-api.jar
c) standar.jar
d) None of the above.


8) JSP Technology separates ___________________
Answer: presentation and business logic


9) ____________ is Tomcat's JSP Engine.
Answer: Jasper


10) In order to be persistent, a Java Bean needs to implement the ______________ interface.
Answer: java.io.Serializable interface. 


11. WAR stands for ____________________________
Answer: Web Application Archive



12.  TLD stands for ____________________________
Answer: Tag Library Descriptor


13.  ______________________ file is the application deployment descriptor that contains all configuration information for the application.
Answer: web.xml


14. _______________________ element maps a servlet or JSP page to a URL pattern.
Answer: <Servlet-mapping>


15. Which one of the element embeds most elements dealing JSP configuration in web.xml.
a) <servlet-mapping>
b) <session-config>
c) <security-constraint>
d) <jsp-config>
Answer: d

16.   ________________ is the command to create WAR file.
Answer: jar cvf   <filename.war>  *

17.  _________________  tag is used to declare the java bean in JSP page.
Answer: <jsp:useBean>

18. Which one of the below tag library is used to handle Internalization and Locales.
   a) <%@ taglib prefix=”fmt” uri=http://java.sun.com/jsp/jstl/fmt %>
   b) <%@ taglib prefix=”sql” uri = http://java.sun.com/jsp/jstl/sql %>
   c)  <%@ taglib prefix=”fn” uri=http://java.sun.com/jsp/jstl/functions %>
   d) <%@ taglib prefix=”c” uri = “http://java.sun.com/jsp/jstl/core %>
Answer: a

18.  Which one of the below is directive element.
  a) <jsp: useBean>
  b) <%@ include ….%>
  c) <!  ……… %>
  d)  <!@ …….%>.
Answer: b

19. JSP comment looks like 
 a)  /* ……….. */
 b) <%@  ….. %>
c) <%! …….. %>
d) <%--   ….. %>
Answer: d



20. which statement is not true about Javabeans.
a) JavaBeans are not reusable software components for Java.
b) They contain setter and getter methods.
c) Javabean class implements Serializable Interface.
d) JavaBeans are reusable software components for Java.
e) None of the above.
f) All the above.
Answer: f

---------------------------------------END OF THE DOCUMENT --------------------------








ddd

OS QUESTIONS


1. Aging is
Ans. increasing the priority of jobs to ensure termination
in a finite time

2. In a paged segmented scheme of memory management ,the segment table itself must have a
page table because 
Ans. each segment is spread over a number of pages

3. Virtual memory is 
Ans. an illusion of an extremely large memory

4. A memory page containing a heavily used variable that was initialized very early and is in constant use is removed when the page replacement algorithm used is
Ans. FIFO


5. An address generated by memory unit is _ _ _ _ _ _ _
_ _ _ _ _ _ address
Ans. zero

6. The first fit ,best fit and the worst fit algorithm can be
used for 
Ans. contiguous allocation of memory

7. Which of the following page replacement algorithm
suffers form belady's anomaly? 
Ans. FIFO  

8. Memory management unit is _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _  
Ans. hardware

9. The run time mapping from virtual to physical address
is done by _ _ _
Ans. memory management unit

10. An address generated by CPU is known as _ _ _ _ _ _
_ _ _ _ _ address
Ans. Logical

11. Overlay is  
Ans. a single contiguous memory that is used in olden days
for running large programs by
swapping

12. Some computer systems support dual mode
operation - the user mode and the super visor mode.
These refers to the modes  
Ans. in which the processor and the associated hardware
operate

13. Spatial locality refers to the problem that once a
location referenced
Ans. a near by location will be referenced soon


14. Let physical address =14346 base = 4000 then
logical address is _ _ _ _ _ _ _ _
Ans. 346

15. The maximum value for logical address=y base
register value=x What is the maximumvalue for
physical address?
Ans. x+y

16. Page fault occurs when  
 Ans. The page is not in main memory

17. The size of virtual memory depends on
Ans. the size of the address bus  

18. _ _ _ _ _ _ _ _ _ _ _ algorithm searches the list of
holes and allocate the first memory area that is
large enough  
Ans. first fit

19. _ _ _ _ algorithm fits process into the hole that is
large enough to hold the process and closest in
size to the requirements of that process  
Ans. best fit

20. _ _ _ _ _ _ _ _ _ _ _ algorithm fits the process into
the largest available hole  
Ans. worst fit

21. Which of the following is an example of a SPOOLED device 
Ans. A line printer used to print the output of a number of jobs

22. _ _ _ _ _ _ _ page replacement algorithm is based on the argument that the page with the smallest count was probably just brought in and has yet
to be used.
Ans. MFU

23. In partitioned memory allocation scheme
Ans. The superiority of the first fit and best fit algorithms
depend on the sequence of memory
requests

24. To implement LRU _ _ _ _ _ _ _ _ _ data structure is used.
Ans. stack

25. Virtual memory is commonly implemented by _ _ _ 
_ _ _ _ _ _
Ans. demand paging

26. A process refers to 5 pages A,B,C,D,E in the following order A,B,C,D,A,B,E,A,B,C,D,E. if the page replacement algorithm is FIFO, the number of Page transfer with an empty internal store of 3 frames is _ _ _ _ _ _
Ans. 9

27. _ _ _ _ _ _ _ _ _ _ _ is a technique to solve the problems of internal fragmentation 
Ans. segmentation

28. A process is _ _ _ _ _ _ _ _ _ if it is spending more time paging than executing.  
Ans. thrashing

29. Replace the page that has not been used for the longest period of time.This is _ _ _ _ _ _ _ _
Ans. LRU

30. _ _ _ _ _ _ _ page replacement algorithm requires that the page with the smallest count be replaced.
Ans. LFU

31. Which of the following is true.
ans. The linkage editor links object modules and resolves
external references between them before
loading

32. Determine the number of page faults when references to pages occur in the following order 1,2,4,5,2,1,2,4. Assume that the main memory can accommodate 3 pages and the main memory already has the pages 1 and 2 with page 1 having been brought earlier than page 2(LRU algorithm is used.)  
ans. 4

33. Dirty bit is used to show the
Ans. page that is modified after being loaded into cache
Memory

34. To obtain better memory utilization ,dynamic loading is used. With dynamic loading a routine is not loaded until it is called for. For implementing
dynamic loading  
Ans. user programs can implement dynamic loading
without any special support form hardware
and OS

35. The page replacement policy that sometimes leads to more page faults when the size of the memory is increased is  
Ans. FIFO

36. In paged memory system if the page is increased then the internal fragmentation generally
Ans. becomes more

37. When total memory space is available to satisfy the requirement of the process is not contiguous
it is called _ _ _ _ _ _ _ _ _ fragmentation  
Ans. external

38. When the space with in the block is unused by the process residing in that block it is called _ _ _ _ _ _ _ _ _ fragmentation
Ans. Internal

39. _ _ _ _ _ _ _ _ _ _ _ is a technique to solve the problems of external fragmentation
Ans. paging

40. In the CPU scheduling policy is SJF the average waiting time will be _ _ _ _ _ _ (with pre emption)
Ans. 5.6ms

41.In the CPU scheduling policy is priority scheduling the average waiting time will be _ _ _ _ _ _ (with out pre emption)
Ans .10.8ms

42.In the CPU scheduling policy is FCFS the average waiting time will be _ _ _ _ _ _ _ _
Ans. 12.8 ms

43. In the CPU scheduling policy is SJF the average waiting time will be _ _ _ _ _ _ (with out preemption)
Ans. 6.8 ms

44. In the CPU scheduling policy is priority scheduling the average waiting time will be _ _ _ _ _ _
(with pre emption)
Ans .7. 6 ms

45. Pre emptive scheduling is the strategy of temporarily suspending a running process
Ans. before the cpu time slice expires

46. Which of the following scheduling algorithms gives minimum average waiting time
Ans. SJF

47. Which of the following is well suited for a time
shared OS?
Ans .round robin

48. CPU utilization may range from _ _ _ to _ _ _ _ _ percent
Ans. 0,100

49. The number of processes that are completed per unit
time is called as _ _ _ _ _ _ _
Ans. throughput

50. _ _ _ _ _ _ _ _ _ scheduler is also called as CPUscheduler
Ans .short term

51. _ _ _ _ _ _ _ _ _ scheduler is also called as JOB scheduler
Ans. long term

52. In round robin CPU scheduling as the time quantum is increased the average turn around time
Ans. varies irregularly

53. In which of the following scheduling policies does context switching never take place
Ans. FCFS

54. The amount of time processor takes to start responding is _ _ _ _ _ _ _
Ans. response time

55. The interval from the time of submission of a process to the time of completion is the _ _ _ _ _ _
Ans. turnaround time

56. The amount of time that a process spends waiting in
the ready queue is the _ _ _ _ _ _
Ans. waiting time

57. _ _ _ _ _ _ _ scheduler allocates CPU to a process
Ans. short term

58. _ _ _ _ _ _ _ _ _ _ _ _ scheduler performs swapping process
Ans. medium term

59. _ _ _ _ _ _ _ _ _ scheduler determines which jobs
are brought into memory for processing.
Ans. long term

60. Which of the following has third priority
Ans. RST6.5
61. Which of the following has fourth priority
Ans. RST5.5

62. Which of the following has second priority
Ans. RST 7.5

63. The data transfer mode of terminal is _ _ _ _ _ _ _ _ _ _
Ans .character

64. The access method of modem is _ _ _ _ _ _ _ _ _ _ _
Ans. sequential

65. Which of the following is not maskable 
Ans.TRAP

66. Which of the following has highest priority
Ans. TRAP

67. Which of the following has least priority
Ans. INTR

68. The data transfer mode of disk is _ _ _ _ _ _ _ _ _ _ 
Ans. block

69. The access method of CD-ROM is _ _ _ _ _ _ _ _ _ _ _  
Ans. random

70. Which of the following is write only
Ans. graphics controller

71. Which of the following is read & write
Ans. disk

72. CD-ROM is _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Ans. read only

73. graphics controller is _ _ _ _ _ _ _ _ _ _ _
Ans.. write only

74. Which of the following is read only 
Ans. CD-ROM

75. The transfer schedule of tape is _ _ _ _ _ _ _ _ _ _ _
Ans. synchronous

76. The transfer schedule of keyboard is _ _ _ _ _ _ _ _ 
Ans. asynchronous

77. A tape is _ _ _ _ _ _ _ _ _ _ _ _
Ans. dedicated

78. A keyboard is _ _ _ _ _ _ _ _ _ _
Ans. sharable always

79. disk is _ _ _ _ _ _ _ _ _ _
Ans. read & write

80. In a paged memory system the page hit ratio is 0.35.
The time required to access a page in
secondary memory is equal to 100ns. The time required
to access a page in primary memory is
10ns.The average time required to access a page is
Ans. 68.5ns

81. A spool is a _ _ _ _ _ _ _ _ _ that holds output for a
device such as printer, that can not accept internal data streams
Ans. Buffer

82. In a multiprogramming environment
Ans. more than one process is resident in memory

83. The hardware mechanism that enables a device to
notify the CPU is called _ _ _ _ _
Ans. Interrupt

84. _ _ _ _ _ _ _ _ _ _ is a memory area that stores data
while the calls are transferred between two
devices or between a device and an application
Ans. Buffer

85. _ _ _ _ _ _ _ _ _ is an example for storage device
Ans. tape

86. _ _ _ _ _ _ _ _ _ is an example for transmission device.
Ans. Modem

87. Which of the following is not an example for human interface device
Ans. network card

88. Pick the odd man out
Ans. modem

89. Which of the following is fastest
Ans. cache

90. A certain moving arm disk storage with one head
has following specification number of tracks /recording surface =200 disk rotation speed
=2400 rpm track storage capacity = 62500
bits The average latency time is _ _ _ _ _ _ _ _ _ _ _ _
Ans. 2.5 s

91. A certain moving arm disk storage with one head
has following specification
number of tracks /recording surface =200
disk rotation speed =2400 rpm
track storage capacity = 62500 bits
The transfer rate will be _ _ _ _ _ _ _ _ _ _ _ _
Ans. 2.5 m bits/s

92. A stream is a _ _ _ _ _ _ _ _ _ connection between a
device driver and a user level process.
Ans. full duplex

93. Pick the odd man out
Ans. device driver

94. The kernel module that controls a device is a _ _ _ __ _ _ _ _
Ans. device driver

95. Sector interleaving in disks is done by
 Ans. the OS

96. Access time is the highest in the case of
Ans. magnetic disks

97. A system call is a function called by an application to
invoke a _ _ _ _ _ _ _ service.
Ans. Kernel

98. Which of the following is not related to the basic
hardware elements involved in I/O
Ans. Kernel
99. Which of the following is not related to the kernels
I/O subsystem service
Ans.Interpretation

100. A disk queue with requests for I/O to blocks on
cylinders. 98, 183, 37, 122, 14, 124, 65, 67 in
that order. If the disk is initially at cylinder 53.The total
head movement is _ _ _ _ _
cylinders( SSTF)
Ans. 236

JNTU WORLD

    Add This Transparent Notification Bar To Your Blog Transparent Notification Bar

    X