Home / Neelam Mittal / Programming MCQs Solution
Programming Portal Solution
You will find all Programming Portal MCQs whose solution is updated by Neelam Mittal
Q. What is the purpose of the "throw" keyword in Java exception handling?
Q. What will be the output of the following Java code?
Q. What will be the output of the following Java code?
Q. What happen in case of multiple catch blocks?
Q. In Java, can a subclass access private members (fields and methods) of its superclass?
Q. In Java, can a subclass inherit private fields from its superclass?
Q. Which of these classes can return more than one character to be returned to input stream?
Q. Which of these stream contains the classes which can work on character stream?
Q. Which object Java application uses to create a new process?
Q. Which of these is a super class of wrappers Byte and short wrappers?
Q. Which of these methods is used to check for infinitely large and small values?
Q. What is the Java 8 update of PermGen?
Q. Which of these methods is used to know whether a string contains "true"?
Q. Which of these classes can schedule task for execution in future?
Q. What is method overloading in Java?
Q. What is method overriding in Java?
Q. The main method should be static for the reason
Q. What is the value of the expression 9 % 4 in Java?
Q. What is the result of the expression (6 + 3) * 2 in Java?
Q. int ++a = 100 ; System.out.println( ++a ) ; What will be the output of the above fraction of code ?
Q. What will be the output of the following Java code?
Q. Which right shift operator preserves the sign of the value?
Q. What will be the output of the following Java program?
Q. What does the length() method of a String object in Java return?
Q. What will be the output of the following Java code?
Q. The String method compareTo() returns
Q. What will be the output of the following program?
Q. Which of these methods can be used to convert all characters in a String into a character array?
Q. What will be the output of the following Java code?
Q. Which of these methods of class StringBuffer is used to extract a substring from a String object?
Q. What is the result of compiling and running the following code?
Q. Which access modifier allows a class member to be accessed only within its own class and package?
Q. Which of the following is not an access modifier in Java?
Q. Which keyword is used to declare a method that cannot be overridden in a subclass?
Q. What will be the output of the following Java code?
Q. Which operator is used to check whether the expression is "NULL"?
Q. Which option enables multiple-statement execution?
Q. Which clause is used to sort a UNION result as a whole?
Q. Which parameter determines the shortest words to index in FULLTEXT indexes?
Q. In the following SQL query, what does "person" stands for?
Q. The name of the option file in Unix is . . . . . . . .
Q. What does mysql_real_connect() return if it fails?
Q. A view can refer to multiple tables via . . . . . . . .
Q. Which upgrade involves exporting existing data using mysqldump?
Q. Which statement issues a lock on tables?
Q. Which statement is used to determine the storage engine for individual tables?
Q. The option that suppresses output unless there are errors in the table is . . . . . . . .
Q. CHECK TABLE works with how many of the following? MyISAM, ARCHIVE, CSV
Q. Which keyword is used to create a table as a temporary copy of itself?
Q. What is the host name in the following MySQL command? mysql -h cobra.snake.net -p -u sampadam
Q. The metadata log is . . . . . . . .
Q. The best datatype for a column that is expected to store values up to 2 million is . . . . . . . .
Q. Which statement terminates the execution of a function?
Q. Hexadecimal numbers can be used in scientific notation.
Q. Which mode does not remove trailing spaces when CHAR values are retrieved?
Q. Which statement is used to check the status of the event scheduler at runtime?
Q. The "Mysql command line tool" formats are bounded by . . . . . . . .
Q. Which log does the event scheduler log to?
Q. Which of the following WHERE clauses are faster? 1. WHERE col * 3 < 9 2. WHERE col < 9 / 3
Q. The data directory subdirectory that corresponds to the nbdinfo database is . . . . . . . .
Q. What is the meaning of "Inequality Condition"?
Q. The output from PHP is . . . . . . . .
Q. Which character is illegal in naming an unquoted identifier in SQL?
Q. What is the default storage engine?
Q. Which of these is not a comment specifying construct?
Q. The place where the server stores its databases and status files are the data directory.
Q. The Audit_log_events system variable is of type . . . . . . . .
Q. What will be the output of the following MySQL statement "NOT (Null)"?
Q. Is duplicate entry of primary key is allowed in SQL?
Q. The function load_defaults() reads the option files.
Q. Which script initializes the data directory during installation?
Q. How are identifiers quoted in MySQL?
Q. MySQL is freely available and is open source.
Q. Which of these grant table scope columns is case insensitive?
Q. The context in which the privilege 'CREATE TABLESPACE' applies is . . . . . . . .
Q. AUTO_INCREMENT columns must be NOT NULL.
Q. SHOW DATABASES lists the databases in the server to which you are connected.
Q. Which command is used to show all tables that are stored in a database?
Q. The statement that alters an existing event to have the given definition is . . . . . . . .
Q. Which clause is used to determine "which column to include in the query sets"?
Q. The MySQL clients are linked with . . . . . . . .
Q. Which among the following is the correct syntax for showing all tables in the database?
Q. The option that is necessary to compile a C program having math functions is . . . . . . . .
Q. To change font size of a selected slide title, you:
Q. To create a PowerPoint presentation from a template
Q. The very first version of Microsoft Office was released for
Q. Which is not an option for customizing a datasheet window?
Q. In NiFi, what is the role of the "ConsumeMQTT" processor?
Q. In NiFi, what is the purpose of the "HandleHttpRequest" processor?
Q. What is the role of NiFi's "GetHTTP" processor in a data flow?
Q. How does Hadoop mitigate the risk of unauthorized data access in HDFS?
Q. How does Hadoop's Knox Gateway contribute to securing REST APIs in a Hadoop cluster?
Q. How can Hadoop's Audit Logging enhance security in a Hadoop environment?
Q. . . . . . . . . is a single-threaded server using standard blocking I/O.
Q. Groom servers starts up with a . . . . . . . . instance and an RPC proxy to contact the bsp master.
Q. Distributed Mode are mapped in the . . . . . . . . file.
Q. Drill analyze semi-structured/nested data coming from . . . . . . . . applications.
Q. Point out the correct statement.
Q. Hama is a general . . . . . . . . computing engine on top of Hadoop.
Q. In HBase, what does the term "Column Family" refer to?
Q. In HBase, what is the purpose of the HBase Cell?
Q. What is the role of the HBase Server Manager in HBase architecture?
Q. What is the significance of the HBase Bloom Filter Compound feature?
Q. Which of the following tool is intended to be more compatible with HDT?
Q. Point out the wrong statement.
Q. If demux is successful within . . . . . . . . attempts, archives the completed files in Chukwa.
Q. Which of the following is a monitoring solution for hadoop?
Q. Point out the wrong statement.
Q. In Hadoop, what does the term "Deserialization" refer to?
Q. Avro is said to be the future . . . . . . . . layer of Hadoop.
Q. Point out the wrong statement.
Q. Hadoop I/O Hadoop comes with a set of . . . . . . . . for data I/O.
Q. With . . . . . . . . we can store data and read it easily with various programming languages.
Q. In Pig, what does the term "Relation" refer to?
Q. In Pig, what is the significance of the COGROUP statement?
Q. Which of the following function is used to read data in PIG?
Q. . . . . . . . . operator is used to review the schema of a relation.
Q. . . . . . . . . method tells LoadFunc which fields are required in the Pig script.
Q. Which of the following find the running time of each script (in seconds)?
Q. In Hadoop, what is the significance of the Hadoop JobTracker in a Hadoop cluster?
Q. What is the primary role of the Hadoop NodeManager in the YARN architecture?
Q. Which hdfs command is used to check for various inconsistencies?
Q. Point out the wrong statement.
Q. Point out the wrong statement.
Q. ZooKeeper itself is intended to be replicated over a sets of hosts called . . . . . . . .
Q. Sqoop direct mode does not support imports of . . . . . . . . columns.
Q. Point out the correct statement.
Q. The fields parsed by . . . . . . . . are backed by an internal buffer.
Q. What is the significance of the Hadoop RecordReader in a MapReduce job?
Q. In a MapReduce job, what does the term "Reducer" refer to?
Q. You can delete a column family from a table using the method . . . . . . . . of HBAseAdmin class.
Q. Point out the correct statement.
Q. Which of the following genres does Hadoop produce?
Q. What is the function of the MapReduce "Combine" phase?
Q. Which is the most popular NoSQL database for scalable big data store with Hadoop?
Q. Which of the following phases occur simultaneously?
Q. Which Hadoop component is responsible for managing and monitoring Hadoop clusters?
Q. In advanced MapReduce, what is the role of the Hadoop MapReduce "Map Output Compression"?
Q. In advanced MapReduce, what is the purpose of the Hadoop MapReduce "Map-side Filtering" technique?
Q. Which of the following statement can be used to get the storage policy of a file or a directory?
Q. Point out the wrong statement.
Q. Access keys allows the user to run the application even when . . . . . . . .
Q. The computer creates the object when it processes the statement containing . . . . . . . . keyword.
Q. What happens when a control is deleted from a form?
Q. . . . . . . . . determines the type of data stored in a variable.
Q. Each menu title should have an unique . . . . . . . .
Q. The Like operator returns . . . . . . . . value.
Q. A form's . . . . . . . . event is triggered when the computer processes the Me.Close() statement.
Q. In the following code, the body of If will execute if strFirst contains?
Q. Unintentional errors in application by declaring variables can be reduced by . . . . . . . .
Q. When you declare a variable in the form's declaration section, it is called as . . . . . . . .
Q. . . . . . . . . is a numeric variable used for counting something.
Q. What will be in strName after the following code is executed?
Q. A form's . . . . . . . . event is triggered when you click the Close button on its title bar.
Q. What is wrong with the expression "const dblPi As Double = 3.141593"?
Q. To change the control's Shape using the . . . . . . . . property
Q. A . . . . . . . . displays a list of choices.
Q. Which of the following rounds the contents of the intNum variable to three decimal places?
Q. In the below statement when true is returned? If str="USE" Xor strln="USE" Then
Q. A nested selection structure can be contained in . . . . . . . . of another selected structure.
Q. . . . . . . . . statement is the last statement in the function.
Q. What is the array of these statements?
Q. Which event occurs each time an interval is elapsed in the timer?
Q. The . . . . . . . . in a pattern represents one character only.
Q. Ms Access is used to . . . . . . . .
Q. Which of the following is called the line continuation character?
Q. A suggestion for fixing the error appears in the . . . . . . . .
Q. How many times will the MessageBox.Show method in the following code be processed?
Q. In the expression x <- 4 in R, what is the class of 'x' as determined by the `class()' function?