Tag Archive: Multiple Choice Question (MCQ)

Multiple Choice Questions On PHP Basis Part-2

This set of multiple choice objective questions on PHP language basis includes MCQ questions on PHP  variables and identifiers declaration, superglobal variables, uploading files using POST in PHP and errors occurring on it. It also includes MCQ on define( ), include( ) and require( ) functions used in PHP, operator associativity, examples of expressions and loops, Heredoc and Newdoc syntax used in PHP. 1. Which of the following is/are the valid identifiers i) !sum             ii) Size                 iii) _variable            iv) 4count…
Read more

Multiple Choice Questions On PHP Basis Part-1

Here are the collections of multiple choice objective questions on PHP language features, advantages and capabilities. It also includes MCQ on different ways of writing PHP code for web pages, printf( ) and echo( ) statements used in PHP, different data types supported by PHP, variable declaration and PHP’s superglobal variables.  1. State whether the following statements about about PHP are True or False. i) A useful PHP script can consist of a little as one line; unlike c, there…
Read more

Top 20 MCQ Questions On Exception Handling In Java

This set of objective questions on Exception Handling in Java includes MCQ questions on compile time and run-time errors occurred in java programming. It includes the collections of objective questions from definition of exception, exception classes, common java exceptions, different exception handling keywords such as try, catch and finally.  1. Which of the following are the most common run-time errors in Java programming. i) Missing semicolons                 ii) Dividing an integer by zero iii) Converting invalid string to number iv) Bad…
Read more

Top 20 Objective Questions On Applets In Java

Here are the collection of objective questions on Applets in Java which includes definition of applets, the applet class, uses of applets in HTML, life cycle of an applet and the graphics class in Java Applet. It also includes MCQ of components, containers and layout managers in java applets, update( ), paint( ) and repaint( ) methods used in Java applets.  1. When the ………………. method of the Applet class is called, it displays the result of the Applet code…
Read more

Top 20 MCQ Questions On Streams In Java

This set of multiple choice questions on streams in java includes collection of MCQ questions on the methods used in InputStream, MarkableStream and OutputStream class in Java. It also includes objective questions on the methods of file input stream and fileOutputStream, ButteredInputStream and BufferedOutputStream, DataInputStream and DataOutputStream along with Reader and Writers classes. You will also find MCQs about RandomAccessFile, StreamTokenizer and other stream classes like object streams, piped streams, pushback streams and filtered streams.  1. The …………………… package contains…
Read more

MCQ On Inheritance, Package And Interface In Java

Here are the collections of multiple choice questions on implementing inheritance in java, defining packages and interfaces. You will find here MCQ questions on three types of access specifiers and the final keyword . It also includes about creating package, adding more classes to a package and accessing the contents of a package.  1. ………………… is one of the cornerstones of object-oriented programming because it allows the creation of hierarchical classifications. A) Mutual Exclusion B) Inheritance C) Package D) Interface…
Read more

Top 20 MCQ Questions On Strings And Vectors In Java

This set of multiple choice question includes collection of top 20 MCQ questions on most commonly used string methods in Java, commonly used StringBuffer methods, vector class and wrapper classes. It also includes MCQs on different methods of wrapper classes like constructor methods, typeValue() method, String() method, valueOf() method and parsing method along with enumerated types, annotations, auto boxing and unboxing features in Java. 1. What is the output of the following code?      String S;      System.Out.println(“S =  “+S);…
Read more

Top 20 MCQ Questions On Arrays And Strings In Java

Here are the collections of top 20 multiple choice questions on Arrays and Strings in Java, which includes MCQ questions on different types of arrays like one dimensional arrays and two dimensional arrays, declaring the array, creating memory locations and putting values into the memory locations. It also includes MCQs on different types of string methods like toSting(), ValueOf(), CharAt(), getChars(), getBytes(), toCharArray(), indexOf() and lastindexOf(). 1. Which of the following declaration of the array contains error? A) int x[…
Read more

MCQ Questions On Control Flow Statements In Java

This set of multiple choice question includes objective questions on control flow statements which are used to control the flow of execution in a program. It includes MCQ question from decision making statements like if-else and switch statements, looping statements like for loop, while loop and do-while loop along with other statements like break, continue and label statements. 1. …………………….. statement provides an easy way to dispatch execution to different parts of your code based on the value of an…
Read more

Top 20 Objective Questions On Operators In Java

Here are the collection of top 20 objective type multiple choice questions on different types of operators used in Java. It includes MCQ questions on arithmetic operators, relational operators, logical operators, assignment operators, increment decrements operators, conditional operators, bitwise operators, dot operator(.) and instance of operators.  1. When the operator ++ is placed after the variable name, first assignment of the value of the variable takes place and then the value of the variable is incremented, this operation is also…
Read more