Home / Jatin Dubey / Programming Language MCQs
Total questions: 158
Q. Which is a superclass of all exception classes?
Q. An interface is a blueprint of a class. It has static constants and abstract methods
Q. Breaking a string or stream into meaningful independent words is known as tokenization.
Q. What can be accessed or inherited without actual copy of code to each program?
Q. Which provides accessibility to classes and interface?
Q. The following program is an example of?
Q. If you are inserting any value in the wrong index as shown below, 1. int a[]=new int[5]; 2. a[10]=50; it would result in ______.
Q. Packages are used for distributing a collection of reusable classes, usually in a format known as Java Archive (JAR) file.
Q. The following program is an example for?
Q. Which statement provides an easy way to dispatch execution to different parts of your code based on the value of an expression?
Q. Give the Output for the following program
Q. Which field of StreamTokenizer if the token is a word, this filed contains the word that can be used in programming?
Q. Which Thread pool is used where container creates a thread pool to process the request?
Q. Which is used to separate the hierarchy of the class while declaring an import statement?
Q. Classes in the same package cannot access each other's package-access members.
Q. Which method of string class in java is used to convert the boolean into String?
Q. By overriding the toString() method of the Object class, we can return values of the object, so we don't need to write much code.
Q. Which Exception occurs when a class is not found while dynamically loading a class using the class loaders?
Q. Which methods are provided by the PrintStream class?
Q. Daemon thread provides services to user threads for background supporting tasks,It has no role in life than to serve user threads.
Q. A package can be renamed without renaming the directory in which the classes are stored.
Q. What is known as the classes that extend Throwable class except RuntimeException and Error?
Q. Which is irrecoverable?
Q. Java application uses an output stream to read data from a source, it may be a file, an array, peripheral device or socket.
Q. Mutual exclusive and inter-thread communication are which type of Synchorization?
Q. An exception is an event, which occurs during the execution of a program that disrupts the normal flow of the program's instructions
Q. Switch is more efficient than nested if or if - else in java.
Q. Which is used for reading streams of raw bytes such as image data and for reading streams of characters, consider using FileReader?
Q. Which class is used to uncompress the file in the deflate compression format, It provides facility to the other uncompression filters?
Q. Which method is used to change the name of a thread?
Q. Which mechanism is used when a thread is paused running in its critical section and another thread is allowed to enter (or lock) in the same critical section to be executed?
Q. How many reserved keywords are currently defined in the Java language?
Q. Which constructor creates an empty string buffer with the specified capacity as length.
Q. ResultSetMetaData interface is useful because it provides methods to get metadata from the ResultSet object.
Q. The following Syntax is used for
Q. From the following statements which is a disadvantage of an java array?
Q. The PipedInputStream and PipedOutputStream classes can be used to read and write data simultaneously
Q. Which method returns the interrupted flag after that it sets the flag to false if it is true?
Q. Unchecked exceptions are checked at compile-time rather they are checked at runtime.
Q. Which of the following is a tab in Ribbon in MS Word?
Q. How many tabs are there in Ribbon in MS Word?
Q. Ribbon is located ______Quick Access Toolbar and Title Bar in MS Word.
Q. Microsoft Office 2007 introduced the Ribbon as a ____________ element.
Q. Title Bar is present at the _________ of the Quick Access Toolbar.
Q. Which of the following command is NOT present in Quick Access Toolbar?
Q. Which commands are present in Quick Access Toolbar?
Q. Quick Access Toolbar is present at ______ of Office Button in MS Word.
Q. Which of the following option is NOT present in Office Button?
Q. Where is Office Button located in MS Word?
Q. Which of the following option is provided by Office Button?
Q. Office Button is symbolized with which feature on MS Word?
Q. What is meant by the concept of WYSIWYG in MS Word?
Q. What was the initial name of Microsoft Word when it was released?
Q. Microsoft Word was released in which year?
Q. Documents can be ____ with MS Word.
Q. Which of the following is NOT present in MS Word?
Q. What is MS Word used for?
Q. Microsoft Word is a ____
Q. Which of the following is MS Office Suite's software program?
Q. Suppose you are asked to display all the names which have 'a' as their second character then which query pattern you will use?
Q. What will the following statement return?
Q. Suppose you have 1000 records and you only want 100 records which of the following clause you will use?
Q. From all the clauses in MYSQL what task is performed by the DISTINT clause?
Q. Which of the following is the correct syntax for using the TRUNCATE statement?
Q. If you are asked to delete the entire data of a table without disturbing the table definition then in such case which statement you will use?
Q. What is the function of DESCRIBE statement?
Q. Suppose you have two columns named student_name and student_department inside table student_details and you are asked to update the value of these two columns where ID=4 then what statement you will write?
Q. Is it important to provide where condition with update statement in MYSQL?
Q. What does the show tables command do?
Q. Suppose you are asked to drop a column using alter statement then which syntax you will follow?
Q. Suppose you have a table named to test and inside this table you have a column named CGPA now if you are asked to change the column named CGPA to total percentage, using alter command then which of the following statement you will write?
Q. Can you change the column name using alter command?
Q. Which of the following is the correct syntax to add a field using alter command?
Q. ALTER command is a type of which SQL command?
Q. Which of the following command is used to delete a database?
Q. If our database name is 'schooldb' and we want to drop this database will the query work if we will write our database name in capital letters?
Q. In the following statement, what do you mean by the 'student'?
Q. Can we create a database named 01_test?
Q. To see all the databases which command is used?
Q. If you want to stop the processing query then which of the following command you should use?
Q. In MYSQL, can you write multiple statements in a single line?
Q. In MYSQL, can we write keywords in any letter case?
Q. To know your MYSQL version and current date which of the following command you should use?
Q. Is a semicolon necessary after every query?
Q. What do you mean by HOST in MYSQL?
Q. To see the list of options provided by MYSQL which of the following command is used?
Q. In which language MYSQL is written?
Q. Which of these methods can randomize all elements in a list?
Q. Which of these methods sets every element of a List to a specified object?
Q. Which of these is an incorrect form of using method max() to obtain maximum element?
Q. Which of these is Basic interface that all other interface inherits?
Q. Which of these interface must contain a unique element?
Q. Which of these interface is not a part of Java’s collection framework?
Q. Which of these interface declares core method that all collections will have?
Q. What is Collection in Java?
Q. Which of these methods deletes all the elements from invoking collection?
Q. Which of these classes is not part of Java’s collection framework?
Q. Which of these packages contain all the collection classes?
Q. Which of these method of class StringBuffer is used to reverse sequence of characters?
Q. Which of these class is implemented by FilterInputStream class?
Q. Which of these class is used to read characters and strings in Java from console?
Q. Which of these class is used to read from byte array?
Q. Which of these classes are used by character streams for input and output operations?
Q. Which of these classes are used by Byte streams for input and output operation?
Q. Which of these is a type of stream in Java?
Q. Which of these is used to perform all input & output operations in Java?
Q. Which of these modifiers can be used for a variable so that it can be accessed from any thread or parts of a program?
Q. What does AWT stands for?
Q. Which of these methods can be used to output a sting in an applet?
Q. Which of these functions is called to display the output of an applet?
Q. Which of these is returned by greater than, <, and equal to, ==, operator?
Q. On applying Left shift operator, <<, on an integer bits are lost one they are shifted past which position bit?
Q. Which operator is used to invert all the digits in binary representation of a number?
Q. Decrement operator decreases value of variable by what number?
Q. Modulus operator, %, can be applied to which of these?
Q. Which of these literals can be contained in a data type float variable?
Q. What is the range of data type byte in Java?
Q. What is the range of data type short in Java?
Q. A package is a collection of
Q. Which statements are most accurate regarding the following classes?
Q. Determine output
Q. The object is created with new keyword
Q. What is the result of compiling and running the following code?
Q. Choose all the lines which if inserted independently instead of "//insert code here" will allow the following code to compile:
Q. Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct?
Q. What will be the output for the below code ?
Q. What is the output for the below code ?
Q. What is the output for the below code?
Q. What will the output of the following program?
Q. The following program
Q. In Java, the word true is ...............
Q. The encrypted password of a user is stored in ____
Q. A user can change the default shell connection using ______?
Q. When a user is created, the group ID GID is listed in which file?
Q. Which of the following identifiers associated with a process that determines its privilege level?
Q. User ID which equals 0 is ______ ?
Q. The shell connection is _____?
Q. Which of the following commands can be used to change the user’s password?
Q. What does the following command do?
Q. By default, a Linux user belongs to which group?
Q. The output of ls -l for /etc/passwd and /usr/bin/passwd is as follows? If a user not belonging to the “root” group and executes the passwd command to try to change his password, which of the following is true?
Q. Which daemon manages physical memory by moving the process that is in ‘physical memory’ to the ‘swap space’ when more physical memory is needed?
Q. When the kernel has finished booting, what process is started?
Q. The process identifier of “init” is ____ ?
Q. Which file is read by “init” to get the default execution level?
Q. What is the only partition mounted in single-user mode ?
Q. The shell in single-user mode runs as ____ ?
Q. The shell used in single-user mode is _____ ?
Q. Which of the following is not a valid execution level?
Q. Boot straping is also known as ____ ?
Q. The process of starting a computer is known as ________ ?
Q. Which is loaded into memory at system startup?