Home / Bhagwan Das / Programming MCQs Solution
Programming Portal Solution
You will find all Programming Portal MCQs whose solution is updated by Bhagwan Das
Q. A class member declared protected becomes a member of subclass of which type?
Q. Which of this keyword must be used to inherit a class?
Q. Which of these methods return a class object given its name?
Q. Does code Segment loads the java code?
Q. Which of these method returns a largest whole number less than or equal to variable X?
Q. Which of these is a process of converting a simple data type into a class?
Q. What will be the output of the following Java code snippet? int a = random.nextInt(7) + 4;
Q. Which of these is a method can generate a boolean output?
Q. What is the purpose of the "default" keyword in Java interfaces?
Q. Which of the following package stores all the standard java classes?
Q. Which of these methods returns the class of an object?
Q. Which of these methods is not a Locale class?
Q. Which of these is a super class of wrappers Double & Integer?
Q. Which of these is a wrapper for simple data type char?
Q. Which of these class contains all the methods present in Math class?
Q. What is a "static" method in Java?
Q. In Java, can a constructor have a return type?
Q. What is a non-static (instance) method in Java?
Q. Which exception is thrown when java is out of memory?
Q. Which of these keywords is used to make a class?
Q. Which operator is used for division in Java?
Q. What is the result of the expression 7 / 0 in Java?
Q. Which of these is not a bitwise operator?
Q. How do you check if a string contains a specific character in Java?
Q. The class string belongs to ................. package.
Q. What will s2 contain after following lines of Java code?
Q. What will be the output? String str1 = "abcde"; System.out.println(str1.substring(1, 3));
Q. Which of these data type value is returned by equals() method of String class?
Q. What will be the output of the following Java code? int arr[] = new int [5]; System.out.print(arr);
Q. What is the access level of a class member declared as private in Java?
Q. How to format date from one form to another?
Q. Which statement can produce the same output as 'SHOW COLUMNS'?
Q. The NULL value also means . . . . . . . .
Q. The operator that compares sounds is . . . . . . . .
Q. The slave stores the CHANGE MASTER parameters in the file . . . . . . . .
Q. What is the meaning of "NULL" in Mysql?
Q. When no modes are enabled, what does this SQL statement return? SELECT @@SESSION.sql_mode;
Q. All API calls return a value.
Q. Which statement is used to create a trigger?
Q. Suppose a stored function named PI() is written in the database 'sampdb'. How would it be called?
Q. On failure, 'mysql_query()' returns . . . . . . . .
Q. How many among the following does not return a value? mysql_close(), mysql_init, mysql_real_connect
Q. What does the AUTO_INCREMENT sequences begin at by default?
Q. The option necessary to compile a C program havin math functions is . . . . . . . .
Q. Is the following statement is true/false? "An expression can be NULL, but can never equal to NULL"
Q. When building from source, the embedded server library is enabled by . . . . . . . .
Q. The expression 12 DIV 5 evaluates to . . . . . . . .
Q. What is abc in the following SQL statement? DELETE FROM xyz WHERE abc = 5;
Q. Before relocation of database, the server should be stopped if running.
Q. Which command is used to remove existing tables or database?
Q. Which spatial datatype is used to store a curve?
Q. Which of these has a bigger memory footprint? Perl, PHP
Q. The number of options that can be used to control LOCAL capability at runtime is . . . . . . . .
Q. Which operator is used to perform integer divisions in MySQL?
Q. UPDATE statement is a DML statement. What does DML stand for?
Q. The higher priority is . . . . . . . . writes, reads
Q. To convert an int to string, the function is . . . . . . . .
Q. How many of the following use NULL to indicate failure? mysql_init(), mysql_real_connect()
Q. What is the creation of a stored program similar to?
Q. The command which lists databases managed by the server is . . . . . . . .
Q. What is the output from PHP?
Q. Which among the following can also be included with "SELECT" clause while writing query in Mysql?
Q. Which option suppresses output unless there are errors in the table?
Q. SPATIAL indexes cannot be created on NOT NULL spatial columns.
Q. What will be the output of the following MySQL statement "false AND Null"?
Q. Which of the following are the valid "database datatypes" in Mysql?
Q. A stored program associated with a schedule is . . . . . . . .
Q. Which of the following columns is not returned by 'OPTIMIZE TABLE'?
Q. The line used to turn on the event scheduler is . . . . . . . .
Q. Which Statement is used to insert the values in the table?
Q. Which statement upgrades the database directory name encoding?
Q. The statement used to select a default database is . . . . . . . .
Q. The LOCAL capability for client library is enabled by . . . . . . . .
Q. Which of the following statements is/are correct with respect to "VIEW"?
Q. Which of the following statement is false?
Q. Which of the following is not a feature of PowerPoint?
Q. Microsoft Office SharePoint Designer is used for
Q. It is a Note-taking software for use with tab- let PCs or regular PCs.
Q. In NiFi, what is the function of the "controller service"?
Q. What is the role of the "TailSyslog" processor in Apache NiFi?
Q. What is the role of the "PutS3Object" processor in NiFi's data flow?
Q. What is the primary benefit of using NiFi's "SplitContent" processor in a data flow?
Q. What is the purpose of NiFi's "PutFile" processor in a data flow?
Q. How does Hadoop's HDFS Federation contribute to security in a Hadoop cluster?
Q. What is the purpose of Hadoop's Secure DataNode?
Q. How can you enforce secure data transmission between a Hadoop client and the ResourceManager?
Q. How can Hadoop's Kerberos-based authentication improve the security of a Hadoop cluster?
Q. A . . . . . . . . is an operation on the stream that can transform the stream.
Q. All file access uses Java's . . . . . . . . APIs which give Lucene stronger index safety.
Q. What is the role of the HBase Region in HBase architecture?
Q. In HBase, what is the purpose of the ROWKEY?
Q. What is the primary role of the HBase Compaction Scheduler?
Q. In Oozie, what is the role of the "transition" element in a decision node?
Q. Point out the correct statement.
Q. . . . . . . . . allows database-like access, and in particular a SQL interface.
Q. Point out the wrong statement.
Q. In Hive, what does the term "Partitioning" refer to?
Q. What is the role of the Hive CLI (Command-Line Interface) in Apache Hive?
Q. In Hive, what is the function of the LATERAL VIEW statement?
Q. Which is the additional command line option is available in Hive 0.10.0?
Q. HiveServer2 introduced in Hive 0.11 has a new CLI called . . . . . . . .
Q. What is the significance of the Hadoop AvroOutputFormat?
Q. The . . . . . . . . class extends and implements several Hadoop-supplied interfaces.
Q. . . . . . . . . facilitates construction of generic data-processing systems and languages.
Q. Point out the correct statement.
Q. In Pig, what is the purpose of the DISTINCT statement?
Q. In Pig, what is the purpose of the LOAD statement?
Q. In Pig, what is the function of the Pig Latin UNION statement?
Q. In Pig, what is the significance of the CROSS statement?
Q. In Pig, what is the primary function of the Pig Latin TOKENIZE function?
Q. Point out the wrong statement.
Q. . . . . . . . . is a framework for collecting and storing script-level statistics for Pig Latin.
Q. . . . . . . . . are scanned in the order they are specified on the command line.
Q. Which of the following code is used to find scripts that use only the default parallelism?
Q. Point out the wrong statement.
Q. Point out the correct statement.
Q. In Flume, what is the role of a Flume Sink?
Q. Cassandra marks data to be deleted using . . . . . . . .
Q. When a . . . . . . . . is triggered the client receives a packet saying that the znode has changed.
Q. Which Apache project is commonly used for real-time data processing in Hadoop?
Q. . . . . . . . . jobs are optimized for scalability but not latency.
Q. In MapReduce, what is the purpose of the Map task?
Q. Which Hadoop ecosystem tool is used for querying and analyzing large datasets?
Q. What is the primary purpose of Hadoop MapReduce?
Q. Which of the following writes MapFiles as output?
Q. The key, a . . . . . . . . is the byte offset within the file of the beginning of the line.
Q. Point out the correct statement.
Q. Point out the correct statement.
Q. Which of the following is the default output format?
Q. Which of the following is only for storage with limited compute?
Q. Yarn commands are invoked by the . . . . . . . . script.
Q. Letter . . . . . . . . is a File's Menu access keys.
Q. Files that read and write in consecutive order are known as . . . . . . . .
Q. To traverse two dimensional array you require . . . . . . . . loops.
Q. The InputBox functions prompt argument should be entered using . . . . . . . .
Q. The lines connecting the symbols in a flowchart are called as . . . . . . . .
Q. What is wrong with the expression "static dblPi AsDouble"?
Q. What output will be returned if the following Visual Basic code is executed?
Q. While entering a numeric literal constant you need not enter a . . . . . . . .
Q. Which of the following type of constant is ControlChars.NewLine constant?
Q. . . . . . . . . capitalization is used for menu item captions.
Q. What will be the content of num, after code execution; if before code execution num has value 1000?
Q. How many times will the MessageBox.Show method in the following code be processed?
Q. A checkbox can be directly accessed from the keyboard using a . . . . . . . .
Q. The purpose of . . . . . . . . is to process code at one or more regular intervals.
Q. The size property contains the size of . . . . . . . .
Q. A function can receive information either by value or by . . . . . . . .
Q. A text box's . . . . . . . . property specifies whether the text box has scroll bar.
Q. . . . . . . . . in flowchart is used to represent a for clause.
Q. . . . . . . . . is data type that can be used to declare a text of maximum 10 million.
Q. What is the result of the expression 10-2+20>2*14-2?
Q. The text box's . . . . . . . . event procedure prevents user from entering a specified character.
Q. To delete . . . . . . . . you must delete the contents of the form's text property.
Q. . . . . . . . . is used to open a sequential access file for output.
Q. . . . . . . . . button is used to select a control from the form.
Q. The requirement for repeating the instructions is referred to as the . . . . . . . .
Q. . . . . . . . . is used to open the sequential file access for append.
Q. Reading data from a file is referred to as . . . . . . . .
Q. Named constants are used because . . . . . . . .
Q. Which of the following method is used to sort an array in visual basic?
Q. Selection structures that can select from many alternatives are known as . . . . . . . .
Q. A . . . . . . . . provides an area in the form for the user to enter data.
Q. in . . . . . . . . we can edit in run time
Q. You use the . . . . . . . . tool to add a checkbox to a form.