Java & Internet Programming

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Omedutechhp
O
Omedutechhp
Community Contributor
Quizzes Created: 1 | Total Attempts: 281
Questions: 25 | Attempts: 284

SettingsSettingsSettings
Java Programming Quizzes & Trivia

MSC. CS 3rd Sem Pre University Examination Dec 2011


Questions and Answers
  • 1. 

    Internet s a ____________of networks.

    Explanation
    The correct answer is "network" because the internet is a collection of interconnected networks. It is a global system of interconnected computer networks that use the Internet Protocol Suite (TCP/IP) to link devices worldwide. These networks are connected through various technologies such as wired and wireless connections, allowing for the exchange of data and communication between devices and users across the globe.

    Rate this question:

  • 2. 

    HTML stands for Hypertext ___________ Language.  

    Explanation
    HTML stands for Hypertext Markup Language. It is a standard language used for creating and structuring the content of web pages. Markup refers to the process of adding tags and elements to text in order to define its structure and presentation on a web page. HTML uses markup tags to define headings, paragraphs, links, images, tables, and other elements that make up a web page. By using HTML markup, web developers can create interactive and visually appealing websites that can be accessed and displayed correctly by different web browsers.

    Rate this question:

  • 3. 

    ______________ Tag is used to give title to the document.

    Explanation
    The correct answer is "title" because the title tag is used in HTML to give a title to the document. This tag is placed between the head tags and is displayed as the title of the webpage in the browser's title bar or tab. It helps in providing a brief description of the webpage's content and improves search engine optimization.

    Rate this question:

  • 4. 

    Java is a programming language developed by ____________________  

    Explanation
    Java is a programming language developed by Sun Microsystems.

    Rate this question:

  • 5. 

    First Web Browser Hot Java was developed in_____________

    Explanation
    The correct answer is 1993. In 1993, the first web browser called Hot Java was developed.

    Rate this question:

  • 6. 

    Keywords are the ______________ words that have special significance in any language.

    • A.

      Pre defined

    • B.

      Library

    • C.

      Defined

    • D.

      Special

    Correct Answer
    A. Pre defined
    Explanation
    Keywords are the pre-defined words that have special significance in any language. These words are reserved and cannot be used for any other purpose. In programming languages, keywords are used to define the syntax and structure of the code. They have predefined meanings and functions, and using them inappropriately can lead to syntax errors.

    Rate this question:

  • 7. 

    The keywords ___________ and ___________ are reserved words but they are not used.

    • A.

      Cont,goto

    • B.

      Goto,short

    • C.

      Super,for

    • D.

      Int,char

    Correct Answer
    A. Cont,goto
    Explanation
    The keywords "cont" and "goto" are reserved words in programming languages, but they are not commonly used. These keywords are typically used for control flow and looping mechanisms, such as "continue" and "goto" statements. However, using these keywords can make the code more complex and harder to understand, so they are often avoided in favor of alternative control flow structures.

    Rate this question:

  • 8. 

    System.out.println();

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    The given code snippet is using the System.out.println() method to print something, but the content to be printed is missing. Therefore, the correct answer cannot be determined without the missing information.

    Rate this question:

  • 9. 

    System.println.out();

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    The given code is incorrect because it has a syntax error. The correct syntax for printing in Java is "System.out.println();" with a capital "S" in "System". Therefore, the correct answer is False.

    Rate this question:

  • 10. 

    Public static void main(string args[ ])

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    The given code snippet has a syntax error. The correct syntax for the main method in Java is "public static void main(String[] args)". Therefore, the correct answer is False.

    Rate this question:

  • 11. 

    The return type of a constructor is

    • A.

      Void

    • B.

      Int

    • C.

      Float

    • D.

      None

    Correct Answer
    D. None
    Explanation
    The return type of a constructor is "none" because constructors do not have a return type. They are special member functions that are used to initialize objects of a class. When an object is created, the constructor is automatically called and it is responsible for initializing the object's data members. Since constructors do not return any value, their return type is "none".

    Rate this question:

  • 12. 

    Strings are always specified in

    • A.

      Braces

    • B.

      Single quotes

    • C.

      Double quotes

    • D.

      Square brackets

    Correct Answer
    C. Double quotes
    Explanation
    Strings in programming are typically specified within double quotes. This is because double quotes are the standard way to denote a string literal in many programming languages. Using double quotes makes it clear to the compiler or interpreter that the characters within the quotes should be treated as a string of text rather than as code or a variable. Other options such as single quotes, braces, or square brackets are not commonly used to specify strings in programming.

    Rate this question:

  • 13. 

    The vector class contained in

    • A.

      Java.lang

    • B.

      Java.awt

    • C.

      Java.util

    • D.

      Java.swing

    Correct Answer
    C. Java.util
    Explanation
    The correct answer is java.util because the Vector class is a part of the java.util package in Java. This package contains various utility classes and interfaces that are commonly used in Java programming, including the Vector class. The Vector class provides a dynamic array-like data structure that can be used to store and manipulate a collection of objects.

    Rate this question:

  • 14. 

    The java package provides classes to support input and output operations

    • A.

      Java.io

    • B.

      Java.lang

    • C.

      Stdio.h

    • D.

      Java.sql

    Correct Answer
    A. Java.io
    Explanation
    The correct answer is java.io. This package in Java provides classes that support input and output operations. It includes classes for reading and writing files, as well as classes for working with streams, readers, and writers.

    Rate this question:

  • 15. 

    Java exception handling is governed by the following five keywords

    • A.

      Try

    • B.

      Catch

    • C.

      Finally

    • D.

      Throw

    • E.

      Throws

    • F.

      Syntax

    • G.

      Semantic

    Correct Answer(s)
    A. Try
    B. Catch
    C. Finally
    D. Throw
    E. Throws
    Explanation
    The correct answer is the list of five keywords that govern Java exception handling: try, catch, finally, throw, and throws. These keywords are used in the syntax and semantics of exception handling in Java programs. The "try" keyword is used to enclose a block of code that may throw an exception, while the "catch" keyword is used to handle the exception if it occurs. The "finally" keyword is used to specify a block of code that will always be executed, regardless of whether an exception is thrown or caught. The "throw" keyword is used to manually throw an exception, and the "throws" keyword is used to declare that a method may throw a particular type of exception.

    Rate this question:

  • 16. 

    The Life Cycle of an applet begins when it is first loaded and the _________ method is invoked.

    • A.

      Init()

    • B.

      Int()

    • C.

      Initialize()

    • D.

      Start()

    Correct Answer
    A. Init()
    Explanation
    The correct answer is "init()". The life cycle of an applet starts when it is first loaded and the "init()" method is invoked. This method is responsible for initializing the applet and is typically used to set up any necessary variables or resources.

    Rate this question:

  • 17. 

    The_______________ is a collection of linked documents or pages,stored  on millions of computers and distributed accross the internet.

    • A.

      Home Page

    • B.

      Index

    • C.

      Internet

    • D.

      Ethernet

    Correct Answer
    A. Home Page
    Explanation
    A home page is a web page that serves as the starting point for a website. It is the main page of a website that provides links to other pages within the site. The home page is typically the first page that users see when they visit a website. It can contain a variety of information, such as navigation menus, search bars, and featured content. In the context of the given question, the home page is a collection of linked documents or pages that are stored on millions of computers and distributed across the internet.

    Rate this question:

  • 18. 

    Which of the following is a software application that helps to view and navigate information on the web.

    • A.

      Web page

    • B.

      Web portal

    • C.

      Web browser

    • D.

      Web server

    Correct Answer
    C. Web browser
    Explanation
    A web browser is a software application that allows users to view and navigate information on the web. It is used to access websites, display web pages, and interact with various web content, such as text, images, videos, and links. Web browsers provide a user-friendly interface and support features like bookmarks, history, and tabbed browsing to enhance the browsing experience.

    Rate this question:

  • 19. 

    ISP Means?

    • A.

      Internet system protocol

    • B.

      Internet system provider

    • C.

      Intenal system protector

    • D.

      Internet service provider

    Correct Answer
    D. Internet service provider
    Explanation
    An ISP, or Internet Service Provider, refers to a company or organization that provides internet access to individuals and businesses. They offer various types of internet connections, such as broadband, DSL, or fiber optic, allowing users to connect to the internet and access online services, websites, and other resources. ISPs are responsible for maintaining the necessary infrastructure, network equipment, and servers to ensure reliable and fast internet connectivity for their customers.

    Rate this question:

  • 20. 

    ARPANET Means

    Correct Answer
    advanced research projects agency network
    Explanation
    ARPANET stands for Advanced Research Projects Agency Network. It was the first-ever operational packet switching network and the precursor to the modern-day internet. It was developed by the Advanced Research Projects Agency (ARPA) of the United States Department of Defense in the late 1960s. ARPANET was designed to connect various research institutions and universities, allowing them to share resources and collaborate on research projects. It played a significant role in the development of networking technologies and protocols that are still used today.

    Rate this question:

  • 21. 

    URL Means?

    Correct Answer
    uniform resource locator
    Explanation
    A URL stands for Uniform Resource Locator, which is a reference or address to a resource on the internet. It is used to locate and access specific web pages, documents, images, or any other type of file. The URL consists of several parts, including the protocol (such as HTTP or HTTPS), the domain name or IP address of the server, and the path to the specific resource. By using a URL, users can easily navigate and access different resources on the internet.

    Rate this question:

  • 22. 

    What Is Encapulation Explain In Maximum 300 characters?

  • 23. 

    Java was developed by a team headed by ______________

    • A.

      Ken thompson

    • B.

      James bond

    • C.

      James gosling

    • D.

      James tingling

    Correct Answer
    C. James gosling
    Explanation
    Java was developed by a team headed by James Gosling.

    Rate this question:

  • 24. 

    ___________________method replaces destructor function in java.

    • A.

      Finalize

    • B.

      Final

    • C.

      Start

    • D.

      New

    Correct Answer
    A. Finalize
    Explanation
    In Java, the finalize method replaces the destructor function. The finalize method is called by the garbage collector before an object is destroyed. It allows the object to perform any necessary cleanup operations before it is removed from memory. The finalize method is declared in the Object class and can be overridden in any class.

    Rate this question:

  • 25. 

    ______________command converts the source code to internediate bytecode.

    • A.

      Javac

    • B.

      Java

    • C.

      Appletviewer

    • D.

      Javah

    Correct Answer
    A. Javac
    Explanation
    The javac command is used to compile Java source code into bytecode. It takes the source code as input and generates the corresponding bytecode, which can then be executed by the Java Virtual Machine (JVM). The bytecode is an intermediate representation of the code that is platform-independent and can be executed on any device or operating system that has a JVM installed. Therefore, the correct answer is javac.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Dec 06, 2011
    Quiz Created by
    Omedutechhp
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.