Unit-1 mcq Web Tech - mcqs PDF

Title Unit-1 mcq Web Tech - mcqs
Course Web Technology
Institution Dr. A.P.J. Abdul Kalam Technical University
Pages 20
File Size 145.1 KB
File Type PDF
Total Downloads 5
Total Views 123

Summary

mcqs...


Description

WEB TECHNOLOGY UNIT-1 1-A piece of icon or image on a web page associated with another webpage is called ______ a) url b) hyperlink c) plugin d) extension Ans- b) hyperlink 2- What is a web browser? a) a program that can display a web page b) a program used to view html documents c) it enables user to access the resources of internet d) all of the mentioned Ans- d) all of the mentioned 3-________ is known as father of WWW. a) John T. Thomson b) Denis Ritchie c) Tim Berners-Lee d) None of above Ans- c)Tim Berners-Lee 4- On which one of the following dates World Wide Web was invented? a)1972 b)1989 c)1986 d)1930 Ans- b)1989 5- A web cookie is a small piece of data that is _______ a) sent from a website and stored in user’s web browser while a user is browsing a website b) sent from user and stored in the server while a user is browsing a website c) sent from root server to all servers d) sent from the root server to other root servers

Ans- a) sent from a website and stored in user’s web browser while a user is browsing a website 6- Internet is a. a) local computer network b) a world wide network of computers c) an interconnected network of computers d) a world wide interconnected network of computers which use a common protocol to communicate with one another Ans- d) a world wide interconnected network of computers which use a common protocol to communicate with one another 7- The facilities available in the internet are (i)electronic mail (ii)remote login (iii)file transfer (iv)word processing a) b) c) d)

i, ii i, ii, iii i, ii, iv ii, iii and iv

Ans- b) i, ii, iii 8- World Wide Web a) is another name for internet b) world wide connection for computers c) a collection of linked information residing on computers connected by the internet d) a collection of world wide information Ans- c) a collection of linked information residing on computers connected by the internet 9- A world wide web contains web pages a) residing in many computers b) created using HTML c) with links to other web pages d) residing in many computers linked together using HTML Ans- d) residing in many computers linked together using HTML

10- A web page is located using a a) Universal Record Linking b) Uniform Resource Locator c) Universal Record Locator d) Uniformly Reachable Links Ans- b) Uniform Resource Locator 11- Which of the following allows user to view a webpage? a) Operating System b) Website c) Interpreter d) Internet Browser Ans- d) Internet Browser 12-Computer that requests the resources or data from other computer is called as ________ computer. a)Client b)Server Ans- a) Client 13- _________ is set of rules, that is used to communicate applications to each other. a) HTML b) Website c) Protocol d) XML Ans- c) Protocol 14- The communication protocol used by internet is a)HTTP b)WWW c)TCP/IP d)FTP Ans- c) TCP/IP 15- Which of the following is called as protocol in the URL? http://www.c4learn.com a) c4learn b) www

c) http d) .com Ans- c) http 16- A simple protocol used for fetching e-mail from a mailbox is a) POP2 b) POP3 c) IMAP d) None of the above Ans- b) POP3 17- Which one of the following protocol is used to receive mail messages? a) SMTP b) POP c) IMAP d) All of the above Ans- d) all of the above 18- What protocol is used between E-Mail servers? a) FTP b) SMTP c) SNMP d) POP3 Ans- b) SMTP 19- During error reporting, ICMP always reports error messages to a)Source b)Destination c)Station d)Header Ans- a) Source 20- The File Transfer Protocol is built on ______________ a) data centric architecture b) service oriented architecture c) client server architecture d) connection oriented architecture Ans- c) client server architecture

21- The FTP protocol is used to __________? a) Transfer data over the internet b) Exchange files over the internet c) Transfer text message over the internet d) All of the above Ans- b) Exchange files over the internet 22- The FTP protocol allows the user to __________ files over the internet. a) Upload b) Download c) Both Upload and download d) none of these Ans- c) Both upload and download 23- A typical __________ program obtains a remote reference to one or more remote objects on a server and then invokes methods on them. a) Server b) Client c) Thread d) Concurrent Ans- b) Client 24- FTP is built on _____ architecture. a)Client- Server b)P2P c)Both of the above d)None of the above Ans- a) Client- Server 25- In the Client-Server architecture, the component that processes the request and sends the response is (a) Client (b) Server (c) Protocol (d) Network Ans- b) Server 26- W3C stands for a) World Wide Web Consortium b) World Wide Web Collaboration

c) World Wide Web Community d) None of the mentioned Ans- a) World Wide Web Consortium 27- which of the following is correct order for web development strategies? i) Register with ISP ii) Design and Specification iii) Launch iv) Produced Desired Result v) Strategy vi) Testing and Maintenance a) v, i, iv, vi, ii, iii b) v, ii, vi, iv, i, iii c) v, ii, iv, vi, i, iii d) vi, ii, iv, v, i, iii Ans- c) v, ii, iv, vi, i, iii 28- DNS is used to resolve host names to IP addresses and find services. a) True b) False Ans- a) True 29- Intranet and Extranet differs at ___________________________. a) Intranet: Private , Extranet: Public b) Intranet: Public, Extranet: Public c) Intranet: Private, Extranet: Private and also allowed authorized partners d) Intranet: Public, Extranet: Private Ans- c) Intranet: Private, Extranet: Private and also allowed authorized partners 30- _____________ is a subset of the website. a)Web Site b) Web Space c) Web Portal d) None of above Ans- c) Web Portal 31- An extranet is which of the following? a) The use of Internet protocols with limited access to company data by the company's customers and suppliers. b) The use of Internet protocols with unlimited access to company data by the company's customers and suppliers. c) The use of Internet protocols with limited access to company data by people within an organization.

d) The use of Internet protocols with unlimited access to company data by people within an organization. Ans- a) The use of Internet protocols with limited access to company data by the company's customers and suppliers. 32- Simple plain HTML is used to create following type of website ____________. a)Completely Dynamic Website b) Completely Flash Website c) Completely Static Website d)None of these Ans- c) Completely Static Website 33- A __________ is the simplest form of website, in which the site’s content is delivered without the use of server side processing. a) Dynamic Website b) Social Networking Website c) Static Website d) E-Commerce Website

Ans- c) Static Website 34- In HTTPS ‘S’ is stands for: a) Simple b) Secured c) Server d) None of these Ans- b) secured 35- Which protocol is used for browsing website a)TCP b) HTTP c) FTP d) TFTP Ans- b) HTTP 36- Which protocol use to transmit information on the WWW a) HTPP b) HPPT c) HTTTP d) HTTP Ans- d) HTTP

37- Which of the following statements is true a) The web designer shouldn’t just be concerned about the looks but also about user interface b) Usability is very important in web design c) a and b d) None of the above Ans- c ( a & b) 38- The __________ method when used in the method field, leaves entity body empty. a) POST b) SEND c) GET d) PUT ANS- c) GET Explanation: There are two methods which help to request a response from a server. Those are GET and POST. In GET method, the client requests data from server. In POST method the client submits data to be processed to the server.

39- Internet is a) Dynamic system b) Complex system c) Decentralized system d) All of the above Ans- d) all of the above 40- Some Abbreviations: a) ISP – Internet Service Provider b) TCP- Transmission Control Protocol c) IP- Internet Protocol d) SMTP- Simple Mail Transfer Protocol e) POP- Post Office Protocol f) IMAP- Internet Message Access Protocol g) HTTP- Hyper Text Transfer Protocol h) ICMP- Internet Control Message Protocol i) FTP- File Transfer Protocol j) URL-Uniform Resource Locator k) DNS- Domain Name System l) UI- User Interface m) UX- User eXperience n) MIME- Multipurpose Internet Mail Extension o) W3C- World Wide Web Consortium p) JDK- Java Development Kit q) JRE- Java Runtime Environment r) JVM- Java Virtual Machine s) JIT- Just-in Time t) AWT- Abstract Window Toolkit u) JAR- Java ARchive

41- Which of the following is not a Java features? a) Dynamic b) Architecture Neutral c) Use of pointers d) Object-oriented Ans- c) Use of pointers 42- Which component is used to compile, debug and execute java program? a) JVM b) JDK c) JIT d) JRE Ans- b) JDK 43- Which component is responsible for converting bytecode into machine specific code? a) JVM b) JDK c) JIT d) JRE Ans- a) JVM 44- Which component is responsible to run java program? a) JVM b) JDK c) JIT d) JRE Ans- a) JRE 45- Which statement is true about java? a) Platform independent programming language b) Platform dependent programming language c) Code dependent programming language d) Sequence dependent programming language

Ans- a) Platform independent programming language 46- Which of the below is invalid identifier with the main method? a) public b) static c) private d) final Ans- c) private 47- What is the extension of java code files? a) .class b) .java c) .txt d) .js Ans- b) .java 48- What is the extension of compiled java classes? a) .class b) .java c) .txt d) .js Ans- a) .class 49- What is use of interpreter? a) They convert bytecode to machine language code b) They read high level code and execute them c) They are intermediated between JIT and JVM d) It is a synonym for JIT Ans- b) They read high level code and execute them 50- Which of the following is not OOPS concept in Java? a) Inheritance

b) Encapsulation c) Polymorphism d) Compilation Ans- d) Compilation 51- Which of the following is a type of polymorphism in Java? a) Compile time polymorphism b) Execution time polymorphism c) Multiple polymorphism d) Multilevel polymorphism Ans- a) Compile time polymorphism Explanation: There are two types of polymorphism in Java. Compile time polymorphism (overloading) and runtime polymorphism (overriding). 52- Which concept of Java is achieved by combining methods and attribute into a class? a) Encapsulation b) Inheritance c) Polymorphism d) Abstraction Ans- a) Encapsulation 53- Which of these values can a boolean variable contain? a) True & False b) 0 & 1 c) Any integer value d) true Ans- a) True & False 54- Which one is a valid declaration of a Boolean? a) boolean b1 = 1; b) boolean b2 = ‘false’; c) boolean b3 = false; d) boolean b4 = ‘true’

Ans- c) Boolean b3 = false; 55- Which of these is an incorrect array declaration? a) int arr[] = new int[5] b) int [] arr = new int[5] c) int arr[] = new int[5] d) int arr[] = int [5] new Ans- d) int arr[] = int [5] new 56- What is the stored in the object obj in following lines of Java code? box obj; a)Memory address of allocated memory of object b) NULL c) Any arbitrary pointer d) Garbage Ans- b) NULL 57- Which of the following is a valid declaration of an object of class Box? a) Box obj = new Box(); b) Box obj = new Box; c) obj = new Box(); d) new Box obj; Ans- a) Box obj = new Box();

58- Which of these operators is used to allocate memory for an object? a) malloc b) alloc c) new d) give Ans- c) new 59- Which of the following statements is correct? a) Public method is accessible to all other classes in the hierarchy b) Public method is accessible only to subclasses of its parent class c) Public method can only be called by object of its class

d) Public method can be accessed by calling object of the public class Ans- a) Public method is accessible to all other classes in the hierarchy 60- What is the return type of a method that does not return any value? a) int b) float c) void d) double Ans- c) void 61- Which of these keywords are used to define an abstract class? a) abst b) abstract c) Abstract d) abstract class Ans- b) abstract 62- Which of these class is superclass of every class in Java? a) String class b) Object class c) Abstract class d) ArrayList class Ans- b) Object class 63- Which of this keyword must be used to inherit a class? a) super b) this c) extent d) extends Ans- d) extends 64- Which of the following is used for implementing inheritance through an interface? a) inherited b) using c) extends d) implements Ans- d) implements 65- Which of these is correct way of inheriting class A by class B? a) class B + class A {}

b) class B inherits class A {} c) class B extends A {} d) class B extends class A {} Ans- c) class B extends A {} 66- What is not type of inheritance? a) Single inheritance b) Double inheritance c) Hierarchical inheritance d) Multiple inheritance Ans- b) Double inheritance 67- Using which of the following, multiple inheritance in Java can be implemented? a) Interfaces b) Multithreading c) Protected methods d) Private methods Ans- a) Interfaces 68- All classes in Java are inherited from which class? a) java.lang.class b) java.class.inherited c) java.class.object d) java.lang.Object Ans- d) java.lang.Object 69- Static members are not inherited to subclass. a) True b) False Ans- b) False 70- Which of these keywords is used to define packages in Java? a) pkg b) Pkg c) package d) Package Ans- c) package 71- Which of these access specifiers can be used for a class so that its members can be accessed by a different class in the different package?

a) Public b) Protected c) Private d) No Modifier Ans- a)Public 72- Which of the following is the correct way of importing an entire package ‘pkg’? a) import pkg. b) Import pkg. c) import pkg.* d) Import pkg.* Ans- c) import pkg.*

73- Which of these keywords is used to define interfaces in Java? a) interface b) Interface c) intf d) Intf Ans- a) interface 74- Which of these access specifiers can be used for an interface? a) Public b) Protected c) private d) All of the mentioned Ans- a) Public 75- Which of the following is the correct way of implementing an interface A by class B? a) class B extends A{} b) class B implements A{} c) class B imports A{} d) None of the mentioned Ans- b) class B implements A{} 76- What does an interface contain? a) Method definition b) Method declaration c) Method declaration and definition d) Method name

Ans- b) Method declaration 77- When does Exceptions in Java arises in code sequence? a) Run Time b) Compilation Time c) Can Occur Any Time d) None of the mentioned Ans- a) Run Time 78- Which of these keywords is not a part of exception handling? a) try b) finally c) thrown d) catch Ans- c) thrown 79- Which of these keywords must be used to handle the exception thrown by try block in some rational manner? a) try b) finally c) throw d) catch Ans- d) catch 80- What is the use of try & catch? a) It allows us to manually handle the exception b) It allows to fix errors c) It prevents automatic terminating of the program in cases when an exception occurs d) All of the mentioned Ans- d) All of the mentioned 81- Which of these method is used to implement Runnable interface? a) stop() b) run() c) runThread() d) stopThread() Ans- b) run() 82- Which of these method is used to begin the execution of a thread? a) run() b) start() c) runThread()

d) startThread() Ans- b) start() 83- What is multithreaded programming? a) It’s a process in which two different processes run simultaneously b) It’s a process in which two or more parts of same process run simultaneously c) It’s a process in which many different process are able to access same information d) It’s a process in which a single process can access information from many sources Ans- b) It’s a process in which two or more parts of same process run simultaneously 84- Which of these is used to perform all input & output operations in Java? a) streams b) Variables c) classes d) Methods Ans- a) streams 85- Which of these classes are used by Byte streams for input and output operation? a) InputStream b) InputOutputStream c) Reader d) All of the mentioned Ans- a) InputStream 86- Which of these class is used to read from byte array? a) InputStream b) BufferedInputStream c) ArrayInputStream d) ByteArrayInputStream Ans- d) ByteArrayInputStream 87-An applet is a Java class that extends the? a) java.Applet class b) java class c) Applet class d) java.applet.Applet class

Ans- d) java.applet.Applet class

88- Applets are designed to be embedded within an __________. a) Javascript b) Css c) HTML d) SQL Ans- c) HTML 89- Which method is automatically called after the browser calls the init method? a) start b) stop c) destroy d) paint Ans- a) Start 90- ___________ method is defined in Graphics class, it is used to output a string in an applet. a) display() b) Print() c) drawString() d) transient() Ans- c) drawString()

91- The ………………… method called the first time an applet is loaded into the memory of a computer. a) init( ) b) start( ) c) stop( ) d) destroy( ) Ans- a) init( ) 92- Which of the following applet tags is legal to embed an applet class named Test into a webpage? a)

b) code=Test.class width=200 height=100>

c)

d)

Ans- c)

93- What is an event in delegation event model used by Java programming language? a) An event is an object that describes a state change in a source b) An event is an object that describes a state change in processing c) An event is an object that describes any change by the user and system d) An event is a class used for defining object, to create events Ans- a) An event is an object that describes a state change in a source

94- What is a listener in context to event handling? a) A listener is a variable that is notified when an event occurs b) A listener is a object that is notified when an event occurs c) A listener is a method that is notified when an event occurs d) None of the mentioned Ans- b) A listener is a object that is notified when an event occurs 95- Which of these operators can be used to concatenate two or more String objects? a) + b) += c) & d) || Ans- a) + 96- Which of this method of class String is used to obtain a length of String object? a) get() b) Sizeof() c) lengthof() d) length() Ans- d) length() 97- Which of the following is the default Layout Manager for an Applet? a)FlowLayout b)BorderLayout c)GridLayout d)CardLayout Ans- a) FlowLayout 98- Which of these package is used for graphical user interface? a) java.applet b) java.awt

c) java.awt.image d) java.io Ans- b) java.awt 99- In which memory a String is stored, when we create a string using new operator? a)Stack b)String memory c)Heap memory d)Random storage space Ans- c) Heap memory

100- Which of the following is false? a)The rt.jar stands for the runtime jar b)It is an optional jar file c)It contains all the compiled class files d)All the classes available in rt.jar is known to the JVM Ans- b) It is an optional jar file...


Similar Free PDFs