Home / Babita / Programming Language MCQs
Total questions: 371
Q. Which of the following centers tabs/pills?
Q. Which of the following is for title of the modal?
Q. Which defines style for body of the modal?
Q. Which of the following aligns media objects?
Q. Which of the following will provide additional information about something?
Q. Which of the following displays text inside <abbr> in slightly smaller font size
Q. Which of the following will create hamburger menu?
Q. Which of the following will add feedback icons for inputs?
Q. Which of the following are the fades in a tab?
Q. Which of the following is a container to enhance input by adding an icon?
Q. Which of these datatypes in MS Access allows alphabets, numbers and special characters?
Q. Under which menu there is an option to export data in MS Access?
Q. Which of the following are types of MS Access Database object?
Q. What is a Macro in MS Access?
Q. Which function in MS Access gives the number of time intervals between two specified dates?
Q. What is the maximum zoom percentage available in MS PowerPoint?
Q. What are transitions in MS PowerPoint?
Q. What is the default file extension of MS PowerPoint 2003?
Q. Which of these files can be inserted in MS PowerPoint?
Q. Under which menu in MS PowerPoint option to add images in a slide is available?
Q. Which button in MS Excel is clicked to calculate the sum of a series of numbers?
Q. What is the use of VLOOKUP function in MS Excel?
Q. Which is the correct formula for SUM function in MS Excel
Q. How can a cell be activated in MS Excel?
Q. Which menu option in MS Excel has the option to sort the data?
Q. In MS Excel, Page border option is available under _______ tab.
Q. Which of these variables stores the number of hits that are successfully servedout of cache?
Q. Which of these method of httpd class is used to write UrlCacheEntry object intolocal disk?
Q. Which of these is an instance variable of class httpd?
Q. Which of these is an instance variable of httpd that is a Hashtable?
Q. Which of these exception is thrown by URL class’s constructors?
Q. Which of these methods is used to know host of an URL?
Q. Which of these methods is used to know the full URL of an URL object?
Q. Which of these class is used to access actual bits or content information of aURL?
Q. Which object of HttpSession can be used to view and manipulate informationabout a session?
Q. Which of these ways used to communicate from an applet to servlet?
Q. Which methods are used to bind the objects on HttpSession instance andgetthe objects?
Q. Which type of ServletEngine is a server that includes built-in support forservlets?
Q. Which cookie it is valid for single session only and it is removed each timewhen the user closes the browser?
Q. Which action tags are used in JSP for developing web application with JavaBean?
Q. Which JSP Action tags is used to include the content of another resource,itMay be jsp, html or servlet?
Q. In JSP how many ways are there to perform exception handling?
Q. In JSP page directive which attribute defines theMIME(MultipurposeInternet Mail Extension) type of the HTTP response?
Q. What alternatives exist to embedding Java code directly within the HTMLmarkup of your JSP page?
Q. What type of scriptlet code is better-suited to being factored forward into aservlet?
Q. URL encoding is the method of replacing all the spaces and other extracharacters into their corresponding _______ Characters?
Q. Which of the scripting of JSP not putting content into service method of theconverted servlet?
Q. What requires less resources?
Q. What does not prevent JVM from terminating?
Q. What should not be done to avoid deadlock?
Q. What is true about threading?
Q. Which of the following is a correct constructor for thread?
Q. What will happen if two thread of the same priority are called to be processedsimultaneously?
Q. In a RMI Client Program, what are the exceptions which might have tohandled?
Q. An RMI Server is responsible for,
Q. In RMI Distributed object applications need to do?
Q. In RMI applications which program obtains a remote reference to one ormore remote objects on a server and then invokes methods on them?
Q. hich package is used for Remote Method Invocation (RMI)?
Q. Java supports RMI, RMI Stands for?
Q. Which was the first most widely used programming interface for accessing relational databases and it offers the ability to connect all the databases on all the platforms.?
Q. Which class has traditionally been the backbone of the JDBC architecture?
Q. The ResultSet.next method is used to move to the next row of the ResultSet, making it thecurrent row.
Q. JDBC RowSet is the wrapper of ResultSet,It holds tabular data like ResultSet but it iseasy and flexible to use.
Q. Which driver Network connection is indirect that a JDBC client makes to a middleware process that acts as a bridge to the DBMS server?
Q. Which method is used to establish the connection with the specified url in a Driver Manager class?
Q. How many Result sets available with the JDBC 2.0 core API?
Q. Which of the following is true about JDBC?
Q. Which of the following step establishes a connection with a database?
Q. Which of the following type of JDBC driver should be used if your Java application isaccessing multiple types of databases at the same time?
Q. Which of the following holds data retrieved from a database after you execute an SQLquery using Statement objects?
Q. Which of these is a protocol for breaking and sending packets to an address across anetwork?
Q. Which of the following protocols is/are for splitting and sending packets to an addressacross a network?
Q. To create an InputStream on a socket, say s, which of the following statement isnecessary?
Q. In the socket programming, for an IP address, which can be used to find the host nameand IP address of a client/ server?
Q. Which class can handle any type of request so that it is protocol-independent?
Q. Which packages represent interfaces and classes for servlet API?
Q. The sendRedirect() method of HttpServletResponse interface can be used to redirectresponse to another resource, it may be servlet, jsp or html file
Q. Which method is used to send the same request and response objects to another servlet inRequestDispacher ?
Q. Servlets handle multiple simultaneous requests by using threads.
Q. Web server is used for loading the init() method of servlet.
Q. When destroy() method of a filter is called?
Q. Sessions is a part of the SessionTracking and it is for maintaining the client state at serverside.
Q. Which cookie it is valid for single session only and it is removed each time when the usercloses the browser?
Q. What type of servlets use these methods doGet(), doPost(),doHead, doDelete(),doTrace()?
Q. Which type of ServletEngine is a server that includes built-in support for servlets?
Q. How is the dynamic interception of requests and responses to transform the informationdone?
Q. Which JDBC drivers will run your program?
Q. What is the reason that a java program cannot directly communicate with an ODBCdriver?
Q. A leading database connectivity vendor, worked together to produce the ____.
Q. Which driver converts JDBC calls directly into the vendor-specific database protocol?
Q. Which models do the JDBC API support for the database access?
Q. Which of the following JDBC drivers is known as a partially java driver?
Q. The JDBC API is what allows access to a data source from a Java middle tier
Q. In the following JDBC drivers which is known as fully java driver?
Q. JDBC is a Java API that is used to connect and execute query to the database
Q. The ASP and JSP technologies are quite similar in the way they support the creation of Dynamic pages, using HTML templates, scripting code and components for business logic.
Q. Which attribute specifies a JSP page that should process any exceptions thrown but not caught in the current page?
Q. Which technology do we mix our business logic with the presentation logic?
Q. Which one is the correct order of phases in JSP life cycle?
Q. Which object is created by the web container at time of deploying the project?
Q. What is the lifecycle of a servlet?
Q. Which method in session tracking is used in a bit of information that is sent by a web server to a browser and which can later be read back from that browser?
Q. Which are the examples of Application Server?
Q. How many techniques are used in Session Tracking?
Q. In HTTP Request method Get request is secured because data is exposed in URL bar
Q. In the following statements identify the disadvantages of CGI?
Q. Servlet technology is used to create web application
Q. Which method is used to specify before any lines that uses the PintWriter?
Q. What are functions of Servlet container?
Q. Which object of HttpSession can be used to view and manipulate information about asession?
Q. Which methods are used to bind the objects on HttpSession instance and get the objects?
Q. Which method take a string not a URL?
Q. Which of the following are interface? 1. ServletContext 2. Servlet 3. GenericServlet 4. HttpServlet
Q. The life cycle of a servlet is managed by
Q. Which of the following code is used to get an attribute in a HTTP Session object inservlets?
Q. What is the difference between servlets and applets? i. Servlets execute on Server; Applets execute on browser ii. Servlets have no GUI; Applet has GUI iii. Servlets creates static web pages; Applets creates dynamic web pages iv. Servlets can handle only a single request; Applet can handle multiple requests
Q. Which are the session tracking techniques? i. URL rewriting ii. Using session object iii.Using response object iv. Using hidden fields v. Using cookies vi. Using servlet object
Q. A deployment descriptor describes
Q. The values of <servlet-name> and <servlet-class> in web.xml file
Q. Which HTTP Request method is non-idempotent?
Q. Which of the following is not a core interface of Hibernate?
Q. Component which encloses command button.
Q. Component which additionally provides a pop-up date picker control for its enclosedinput field.
Q. For cross field validation or some sort of barrier to ensure state before you start aflow, we use.
Q. Navigation in traditional JSF applications is handled by:
Q. File extension of a view state’s name which is by default loaded by facelet page.
Q. To resolve Facelets views we configure:
Q. Attribute used to handle web flow requests.
Q. _jspService() method of HttpJspPage class should not be overridden.
Q. Which tag should be used to pass information from JSP to included JSP?
Q. Which http method send by browser that asks the server to get the page only?
Q. Why DB connections are not written directly in JSPs?
Q. JSP includes a mechanism for defining …………………………. or custom tags.
Q. Which of the following are the valid scopes in JSP?
Q. The difference between Servlets and JSP is the …………….
Q. Which of the scripting of JSP not putting content into service method of the convertedservlet?
Q. Which packages does a JSP API consist of?
Q. A JSP page consists of which tags?
Q. Which tag is used to execute java source code in JSP?
Q. Which is the Microsoft solution for providing dynamic Web content?
Q. JavaServer Pages often serve the same purpose as programs implemented using theCommon Gateway Interface (CGI)
Q. JSPs eventually are compiled into Java servlets, you can do as much with JSPs as you cando with Java servlets.
Q. Which of the following is an advantage of the statement – Separation of business logicfrom JSP ?
Q. Purpose of Static Factory Method?
Q. Which attribute is used to specify static factory-method?
Q. Which of the following method can be used to used to instantiate a method?
Q. Which attribute is used to specify class name of the bean?
Q. Beans can be created by which of the following properties?
Q. Which interface in spring is responsible for Instantiating and managing the so calledSpring beans?
Q. How does spring achieve DI or IOC?
Q. What are beans in the concept of Spring or what are spring beans?
Q. Which spring module provides the capability of DI or IOC?
Q. What is the basic concept of Spring?
Q. Which of the following is not an advantage of Hibernate Criteria API?
Q. In which file database table configuration is stored?
Q. Which of the following is not an advantage of using Hibernate Query Language?
Q. Which of the following is not an inheritance mapping strategies?
Q. Which of the following is true about HQL?
Q. Which of the following is not a state of object in Hibernate?
Q. The SessionFactory is heavyweight object.
Q. Which of the following method is used inside session only?
Q. Which of the following methods hits database always?
Q. Which of the following methods returns proxy object?
Q. SessionFactory is a thread-safe object.
Q. Is Session a thread-safe object?
Q. Which of the following is not a core component of Hibernate?
Q. Which of these method is used to find a URL from the cache of httpd?
Q. Which of these method of httpd class is used to get report on each hit to HTTPserver?
Q. Which of these methods of httpd class is used to read data from the stream?
Q. Which of these method is called when http daemon is acting like a normal webserver?
Q. Which of these method is used to start a server thread?
Q. Which of these method of DatagramPacket is used to find the length of bytearray?
Q. Which of these method of DatagramPacket is used to obtain the byte array ofdata contained in a datagram?
Q. Which of these method of DatagramPacket is used to find the port number?
Q. Which of these method of DatagramPacket is used to find port number?
Q. Which of these is return type of getAddress method of DatagramPacket class?
Q. how many bits are in a single IP address?
Q. how many ports TCP/IP are reserved for specific protocol?
Q. Which classes are used for connection less socket programming?
Q. Show some networking terminology given below?
Q. In Inetaddress class which method returns the host name of IP address?
Q. TCP,FTP,Telnet,SMTP are example of?
Q. Which method is used to perform DML statements in JDBC?
Q. How many trAnsweraction isolation levels are defined in java)sql.Connectioninterface?
Q. Which driver is called as thin-driver in JDBC?
Q. When the message “No Suitable Driver” occurs?
Q. Which of the following methods finds the maximum number of connectionsthat a specific driver can obtain?
Q. BLOB, CLOB, ARRAY and REF type columns can be updated in
Q. Which of the following method call is valid to obtain the server's hostname by invokingan applet?
Q. Which of the following statement is TRUE?
Q. In the following URL, identify the protocol identifier? https://gtu.ac.in:8080/course.php
Q. Which of the following is used to call stored procedure?
Q. Which of the following is advantage of using PreparedStatement in Java?
Q. The class java)sql.Timestamp has its super class as
Q. All raw data types (including binary documents or images) should be read anduploaded to the database as an array of
Q. The JDBC-ODBC bridge is
Q. DBC facilitates to store the java objects by using which of the methods of PreparedStatement 1. setObject () 2. setBlob() 3. setClob()
Q. Which of the following is false as far as type 4 driver is concern?
Q. Which of the following methods are needed for loading a database driver inJDBC?
Q. Which of the following statements is false as far as different type ofstatements is concern in JDBC?
Q. Which of the following allows non repeatable read in JDBC Connection?
Q. JDBC stands for?
Q. Which JDBC product components does the Java software provide?
Q. What is used to execute parameterized query?
Q. Which method is used for an SQL statement that is executed frequently?
Q. Which result set generally does not show changes to the underlying database that are made while it is open. The membership, order, and column values of rows are typically fixed when the result set is created?
Q. How many types of JDBC drivers are available?
Q. How many JDBC product components does the Java software provides?
Q. Which driver uses ODBC driver to connect to the database?
Q. Which of the following is used to rollback a JDBC trAnsweraction?
Q. Which of the following is method of JDBC batch process?
Q. What does setAutoCommit(false) do?
Q. Which one of the following contains date information?
Q. Which of the following contains both date and time?
Q. What is the correct syntax of accessing a static member of a class in C++?
Q. Which keyword is used to define the macros in C++?
Q. What will be the output of the following C++ program?
Q. What will be the output of the following C++ code?
Q. Which of the following is used to terminate the function declaration in C++?
Q. Which is more effective while calling the C++ functions?
Q. Which of these operators is used in order to capture every external variable by reference?
Q. Which of these mathematics libraries is used in C++ for vector manipulation?
Q. In the locale object, which of these objects’ information is loaded?
Q. Which of the following correctly declares an array in C++?
Q. What will be the output of the following C++ function?
Q. By default, all the files in C++ are opened in _________ mode.
Q. What is the value of z in the following C++ code snippet?
Q. Which of the following type is provided by C++ but not C?
Q. Which of these functions is used for incrementing the iterator by a certain value?
Q. In heap, which of these values will be pointed out first?
Q. Inheritance models which type of relationship?
Q. Which of the following C++ code will give error on compilation?
Q. Which container is the best for keeping a collection of various distinct elements?
Q. Which header file do we use for the generation of random numbers?
Q. We can apply RTTI to which of the class types?
Q. What do we use in order to throw an exception?
Q. What handler do we use if we want to handle all the types of exceptions?
Q. What does polymorphism stand for?
Q. What is used for dereferencing?
Q. Which of these keywords do we use for the declaration of the friend function?
Q. __________ is an ability of grouping certain lines of code that we need to include in our program?
Q. Which of the following is correct about this pointer in C++?
Q. What happens if the following program is executed in C and C++?
Q. What is the difference between delete and delete[] in C++?
Q. What would happen in case one uses a void in the passing of an argument?
Q. Which function do we use for checking if a character is a space or a tab?
Q. Which of these won’t return any value?
Q. Which concept do we use for the implementation of late binding?
Q. Pick out the correct statement
Q. Which concepts does the Pre Increment use?
Q. What happens if the following C++ statement is compiled and executed?
Q. What is virtual inheritance in C++?
Q. Which of the following approach is used by C++?
Q. Which of the following is not a type of Constructor in C++?
Q. Which of the following is a correct identifier in C++?
Q. What is C++?
Q. What is the ASCII value of ‘\0’ character?
Q. Which of the following types is the language C++?
Q. Identify the size of int datatype in C++.
Q. The constants in C++ are also known as?
Q. Identify the correct function from which the execution of C++ program starts?
Q. Identify the correct syntax for declaring arrays in C++.
Q. Which of the following data type is supported in C++ but not in C?
Q. C++ uses which approach?
Q. Identify the correct extension of the user-defined header file in C++.
Q. Who invented C++?
Q. The constants are also called as
Q.
Q. What is the output of this program?
Q. Which of the following statement is not true about preprocessor directives?
Q. Regarding the following statement which of the statements is true?
Q. The difference between P and ‘P’ is
Q. How to declare a wide character in the string literal?
Q. Which of the following specifies the length of the data being returned?
Q. Which variable defines the data type of the content?
Q. What returns the set cookies in the form of a key?
Q. Which of the following gives the path for CGI script?
Q. What gives the full path to CGI script?
Q. Which of the following css property allows elements to be offset, rotated, scaled, and skewed in a variety of different ways?
Q. Which of the following css property is used to define which properties a transition will be applied to?
Q. Which of the following css property is used to describe how the animation will play?
Q. Which of the following css property is used to define a delay before an animation starts?
Q. Which of the following css property is used to indicate if an animation plays in reverse or repeats itself every other iteration?
Q. Which of the following css property is used to define the time it takes one iteration of an animation to play?
Q. Which of the following css property is used to define the number of times an animation should play?
Q. Which of the following css property is used to define the animations that should be run?
Q. What will be the output of the following PHP code ?
Q. Which of the following file extension is not used for audio MIME?
Q. Which format is a restricted version of Matroska?
Q. Which format is not supported in Internet Explorer?
Q. Which browser does not support MP4 H.264 format?
Q. MP3 format is not supported by
Q. Each cell of the table can be represented by using
Q. For heading we can use
Q. Headings of table lies inside
Q. Which of the following is not the element associated with HTML table layout?
Q. Which of the following element is not associated with a class attribute?
Q. For adding caption to the table we use
Q. border-spacing is given in
Q. Borders can’t be applied on
Q. Which attribute defines numbers of columns in a group?
Q. Which of the following does not specify a column width?
Q. Scope attribute can’t have the value
Q. Which of the following is not the value for frame attribute?
Q. Which of the following is not the value for rules attribute?
Q. Which of the following is not the value for align attribute?
Q. valign attribute does not take the value
Q. Which element is known as HTML plaintext element?
Q. Which element allows insertion of empty spaces on pages?
Q. Which element is known as HTML Example Element?
Q. Which attribute specify a column name from the data source object?
Q. Which attribute is used for data binding?
Q. Which attribute assigns a name to the applet?
Q. Which value is there for autoplaying the YouTube video?
Q. Which element is used for YouTube videos?
Q. HTML object tag to embed multimedia will not embed in
Q. video ID can be substituted by
Q. Which of the following works as a sidebar?
Q. Which of the following can’t be the value of float property?
Q. Which of the following can’t be the value of a clear property?
Q. Which of the following specifies what happens if content overflow an element’s box?
Q. Which of the following was not previous layout mode?
Q. Which property defines in which direction the container wants to stack flex items?
Q. Which property is used to align flex items?
Q. Which of the following specifies initial length of flex item?
Q. Which of the following overrides container’s align-items property?
Q. State whether the given statement is true or false. !DOCTYPE is case sensitive”.
Q. Choose the correct statement
Q. What will be the output of the following C# code?
Q. Select differences between reference type and value type: i. Memory allocated to ‘Value type’ is from heap and reference type is from ‘System. ValueType’ ii. Memory allocated to ‘Value type’ is from ‘System. ValueType’ and reference type is from ‘Heap’ iii. Structures, enumerated types derived from ‘System. ValueType’ are created on stack, hence known as ValueType and all ‘classes’ are reference type because values are stored on heap
Q. Choose effective differences between ‘Boxing’ and ‘Unboxing’.
Q. Syntax for declaration and initialization of data variable is?
Q. Scope of variable is related to definition of variable as: i. Region of code within which variable value is valid and hence can be accessed. ii. No, relation with region where variable is declared its value is valid in entire scope.
Q. Choose the correct type of variable scope for the following C# defined variables.
Q. When there is an indefinite or an infinity value during an arithmetic value computation, javascript
Q. The generalised syntax for a real number representation is
Q. A hexadecimal literal begins with
Q. The type of a variable that is volatile is
Q. A proper scripting language is a
Q. Which of the following Attribute is used to include External JS code inside your HTML Document
Q. JavaScript can be written
Q. JavaScript Code can be called by using
Q. Which attribute is used to specify that the script is executed when the page has finished parsing ( only for external scripts )
Q. JavaScript is ideal to
Q. A JavaScript program developed on a Unix Machine
Q. The script tag must be placed in
Q. The main purpose of a “Live Wire” in NetScape is to
Q. The development environment offers which standard construct for data validation