Home / Rakesh Kumar / Programming MCQs Solution
Programming Portal Solution
You will find all Programming Portal MCQs whose solution is updated by Rakesh Kumar
Q. Which of these class is related to all the exceptions that are explicitly thrown?
Q. Which of these is not abstract?
Q. Which of these interface is not a member of java.io package?
Q. Which of the following is an incorrect statement about packages?
Q. What does System.getProperty("variable") return?
Q. Which of these is a wrapper for simple data type float?
Q. Which of the following is true about Java system properties?
Q. In Java, can a subclass override a private method from its superclass?
Q. In Java, can a subclass overload a method from its superclass?
Q. What will be the return type of a method that not returns any value?
Q. What is the result of the expression 3 << 2 in Java?
Q. int x = 0, y = 0 , z = 0 ; x = (++x + y-- ) * z++; What will be the value of "x" after execution ?
Q. What will be the output of the following Java program?
Q. Which of the following is not a valid jump statement?
Q. What will be the output of the following Java program?
Q. In Java, what is the purpose of the endsWith() method of a String object?
Q. What will be the output of the following Java program?
Q. Which of these method of class String is used to compare two String objects for their equality?
Q. What is the size of a long variable in Java?
Q. What is the minimum value that can be stored in a char variable in Java?
Q. Which of the following is not a valid way to declare a char variable in Java?
Q. What will be the error in the following Java code? byte b = 50; b = b * 50;
Q. How to convert a String to a Date object?
Q. What is the default path to Perl in Unix?
Q. Which statement is used for updating existing information in the table?
Q. Which of these is the metadata log?
Q. The number of values returned from a stored procedure can be . . . . . . . .
Q. How many values can be returned from a given stored function?
Q. A DEFAULT value cannot be supplied to spatial types.
Q. Which mode tells the server to recognize || as the string concatenation operator?
Q. How many of these can replace ‘level’ in ‘-myisam-recover = level’? BACKUP, FORCE, QUICK
Q. What is the meaning of "HAVING" clause in Mysql?
Q. Which of these is used during MySQL setup?
Q. What can be used as an alternative to mysqlconfig?
Q. What are CROSS JOIN and JOIN are similar to?
Q. Transactional processing requires lesser overhead due to CPU cycles and memory.
Q. mysql_init() returns a . . . . . . . .
Q. The command to move the cursor to the beginning of line in MySQL input editor is?
Q. Converting a client/server application to embedded server is simpler.
Q. Which function returns an array of row values?
Q. SBR replication is . . . . . . . .
Q. Which of these is the most general purpose language?
Q. Which data type character merges the "Check Constraint" into a data type definition?
Q. Under which option are index changes not flushed until tables close?
Q. The column attribute provides unique numbers for identification is . . . . . . . .
Q. The UNION ALL has a higher precedence than UNION DISTINCT.
Q. If a string is to be converted to a number, it is converted into a . . . . . . . .
Q. What is 'tamp' in the following MySQL command? mysql -h xyz.host.try.net -p -u tamp
Q. The language in which image processing is least simple is . . . . . . . .
Q. The general statement-issuing routine is . . . . . . . .
Q. Which character set variable indicates the character set used for storing identifiers?
Q. Which clause can be used to sort string values according to a specific collation?
Q. The statement to change the table name is . . . . . . . .
Q. Which of these is also known as a virtual table?
Q. Which among the following operators is/are belongs to "Equality conditions"?
Q. The character that the MySQL client program recognizes as a statement delimiter is . . . . . . . .
Q. The right shift operator is . . . . . . . .
Q. Which disk data does FILES table in INFORMATION_SCHEMA store?
Q. What attempts auto recovery based on the contents of its serial log?
Q. Which keyword used with UNION does not retain duplicate rows?
Q. If the operands are non binary strings, LIKE compares them according to their collation.
Q. What has a higher priority? writes, reads
Q. User defined variables are session specific.
Q. A password applies globally to an account.
Q. Microsoft Office InterConnect is
Q. The first version of MS Office to be released for the Microsoft Windows operating system is
Q. In NiFi, what is the significance of the "Wait" processor?
Q. In NiFi, what does the term "SSLContextService" represent?
Q. What is the primary purpose of NiFi's "PutKafka" processor?
Q. What is the primary purpose of the "ListenHTTP" processor in Apache NiFi?
Q. In NiFi, what is the purpose of the "SplitJson" processor?
Q. In NiFi, what is the role of the "QueryDatabaseTable" processor?
Q. How does Hadoop's HDFS Access Control Lists (ACLs) differ from traditional Unix file permissions?
Q. What is the purpose of Hadoop's Ranger KMS (Key Management Service) in a secure Hadoop environment?
Q. Point out the wrong statement.
Q. Which of the following project is interface definition language for hadoop?
Q. A . . . . . . . . server and a data node should be run on one physical node.
Q. . . . . . . . . is a component on top of Spark Core.
Q. Spark powers a stack of high-level tools including Spark SQL, MLlib for . . . . . . . .
Q. . . . . . . . . includes Apache Drill as part of the Hadoop distribution.
Q. Point out the wrong statement.
Q. HCatalog maintains a cache of . . . . . . . . to talk to the metastore.
Q. What is the purpose of the HBase Time-to-Live (TTL) feature?
Q. In Oozie, what is the purpose of the "retry-max" property in a workflow action?
Q. Ambari . . . . . . . . deliver a template approach to cluster deployment.
Q. Knox integrates with prevalent identity management and . . . . . . . . systems.
Q. HDT is used for listing running Jobs on . . . . . . . . Cluster.
Q. What is the purpose of the Hive EXTERNAL keyword in a CREATE TABLE statement?
Q. Point out the wrong statement.
Q. The minimum number of row versions to keep is configured per column family via . . . . . . . .
Q. . . . . . . . . is a lossless data compression library that favors speed over compression ratio.
Q. In Hadoop, what is the role of the Hadoop DBInputFormat?
Q. . . . . . . . . support storing a copy of data at a particular instant of time.
Q. Apache Hadoop . . . . . . . . provides a persistent data structure for binary key-value pairs.
Q. In Pig, what is the purpose of the JOIN statement?
Q. What is the primary role of the Pig Latin SUM() function?
Q. What is the role of the Pig Latin CROSS statement in Apache Pig?
Q. Pig Latin statements are generally organized in one of the following ways?
Q. Point out the correct statement.
Q. In Hadoop, what is the purpose of the Hadoop ResourceManager "Dynamic Resource Pools" feature?
Q. What is the primary role of the Hadoop NameNode in the Hadoop Distributed File System (HDFS)?
Q. Which of the tab shows all the role instances that have been instantiated for this service?
Q. Which of the following is a common hadoop maintenance issue?
Q. In Sqoop, what is the purpose of the "--target-dir" option in an import command?
Q. What is the primary purpose of Sqoop in Hadoop?
Q. The java package structure has changed from com.yahoo.zookeeper* to . . . . . . . .
Q. . . . . . . . . is a Cassandra feature that optimizes the cluster consistency process.
Q. Point out the wrong statement.
Q. Point out the correct statement.
Q. Cassandra uses a protocol called . . . . . . . . to discover location and state information.
Q. In a MapReduce program, what is the purpose of the Hadoop Counter class?
Q. What is the default replication factor in HDFS?
Q. . . . . . . . . has the world's largest Hadoop cluster.
Q. What is the purpose of the MapReduce "OutputCommitter"?
Q. Which Hadoop component is responsible for managing and monitoring Hadoop clusters?
Q. The queue definitions and properties such as . . . . . . . . ACLs can be changed, at runtime.
Q. Which of the following adds a configuration resource?
Q. . . . . . . . . is added for supporting writing single replica files in memory.
Q. Which of the following class provides access to configuration parameters?
Q. Point out the correct statement.
Q. Each access key in the interface should be . . . . . . . .
Q. To menu editor is available in . . . . . . . . button of the mouse
Q. In the following code, the body of If will execute if strFirst contains?
Q. The main Property of radio button box is . . . . . . . .
Q. The function of . . . . . . . . is to give a pop-up message to the user.
Q. We can determine number of elements in two-dimensional array by . . . . . . . .
Q. . . . . . . . . array size can be changed at run time .
Q. What will be the output of the following Visual Basic expression?
Q. . . . . . . . . is commonly used to perform an immediate action when clicked.
Q. Most common error that occur in selection structure is . . . . . . . .
Q. . . . . . . . . is insert from component , it is used to load ADO control.
Q. What will be the output of the following Visual Basic code, If the intnumber variable is 90?
Q. What output will be returned if the following Visual Basic code is executed?
Q. What happens when a procedure containing the following statements ends?
Q. Designers generally use . . . . . . . . colour for the background, and . . . . . . . . for the text.
Q. Which of the following is used to convert a number from one data type to another in visual studio?
Q. To determine whether a string has specific sequence of characters, use . . . . . . . .
Q. Which of the following selects the Cat item, which appears third in the cboAnimal control?
Q. Using array in a program is efficient because . . . . . . . .
Q. Variables declared in a form's declaration section have . . . . . . . . scope.
Q. What will be the output of the following Visual Basic expression?
Q. Option Strict On disallows conversion of String data type to . . . . . . . . implicitly.
Q. In R, what is the purpose of the repeat loop?
Q. Sessions is a part of the SessionTracking and it is for maintaining the client state at server side.
Q. For cross field validation or some sort of barrier to ensure state before you start a flow, we use.
Q. Navigation in traditional JSF applications is handled by:
Q. How many trAnsweraction isolation levels are defined in javA)sql.Connection interface?
Q. What will happen if two thread of the same priority are called to be processed simultaneously?
Q. What type of scriptlet code is better-suited to being factored forward into a servlet?
Q. Which command is used to display disk usage in Linux?
Q. What does the 'rm' command do in Linux?
Q. Which command is used to display the contents of a file in Linux?
Q. Which command is used to display the last few lines of a log file?
Q. Which command is used to add a user to a specific group in Linux?
Q. Which command is used to add a new user to the system in Linux?
Q. Which command is used to display the manual page of a command in Linux?
Q. Which command is used to change the ownership of a file?
Q. What is the default access specifier for class members in C++?
Q. Which of the following correctly initializes a C++ pointer?
Q. Which of the following statements about C++ references is true?
Q. Which of the following is not a valid loop statement in C++?
Q. Which keyword is used to define a constant variable in C++?
Q. Which of the following correctly declares a pointer in C++?
Q. Which of the following is not a valid access specifier in C++?
Q. Which data type is used to store a sequence of characters in C++?
Q. Which C++ keyword is used to define an abstract class?
Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x == y ? x : y);
Q. Which of the following statements is correct about constructors in C++?
Q. Which of the following will correctly initialize a dynamic array of integers with 10 elements?
Q. Which of the following is the correct way to create an object of a class in C++?
Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x = y);
Q. Which of the following is the correct way to define a mutable member variable in C++?
Q. Which of the following is the correct way to define a static member function in C++?
Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x && y);
Q. Which of the following is the correct way to define a copy constructor in C++?
Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x & y);
Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x % y);
Q. What is the output of the following code snippet? int arr[3] = {1, 2, 3}; cout << arr[3];
Q. What is the purpose of the 'namespace' in C++?
Q. Which of the following operators is used to access members of a class in C++?
Q. What is the output of the following Python code: print('Python'.lower())?
Q. Which Docker command can be used to list all available images on your system?
Q. Which command is used to view the Docker container's mounted volumes?
Q. Which command is used to build a Docker image from a Dockerfile?
Q. Which of the following Docker commands is used to view resource usage statistics for a container?
Q. What is the 'docker-compose.yml' file used for?
Q. Which command is used to get detailed information about a running Docker container?
Q. Which command is used to detach a container from a network?
Q. Which command is used to get the IP address of a running Docker container?
Q. How can you check the health status of a running container?
Q. Which of the following is true about Docker volumes?
Q. What is the purpose of the 'EXPOSE' instruction in a Dockerfile?
Q. What does the 'docker exec' command do?
Q. Which of the following commands is used to start an existing Docker container?
Q. Which of the following is the default storage driver for Docker?
Q. What is the default network driver used by Docker?
Q. What command would you use to remove a Docker image?
Q. How do you start a container in the background (detached mode)?
Q. What does the 'docker run' command do?
Q. Which command stops and removes all containers defined in a Docker Compose file?
Q. What is the purpose of the ARG instruction in a Dockerfile?
Q. What is the purpose of the ENTRYPOINT instruction in a Dockerfile?
Q. Which command is used to remove a Docker container?
Q. The operator “>>” is called ‐‐‐‐‐
Q. Blanks, tabs, newlines, form feeds and comments are collectively called ‐‐‐‐‐‐‐
Q. ‐‐‐‐‐‐‐ are used for comparing two conditions or to write a compound condition.
Q. Which of the following is not a valid relational operator?
Q. When following piece of code is executed, what happens?b = 3; a = b++;
Q. Which of the following function that must contain in all C++ Programs
Q. Which of the following statement is incorrect?
Q. The keyword to convert constant into variable
Q. How many default constructors per class are possible?
Q. Which among the following is not true for polymorphism?
Q. What is used to write/display to the console in C++?
Q. How would you remove a directory that is not empty?
Q. What command is used to summarize the disk usage?
Q. You just added a new user, kara, to the system. What group is kara added to by default?
Q. What is used to search files for specified words or patterns?
Q. Which command is used to see the online manual?
Q. Which of the following modes of operation exist in vi?
Q. .............is the command used to create new directory.
Q. The ActionListener interface is used for handling action events,For example,it's used by a
Q. For 16-bit compiler allowable range for integer constants is ______ ?
Q. Which of the following is true?
Q. Which of the following is not a correct statement?
Q. Which property is shown most when upcasting is used?
Q. In which type of storage location are the vector members stored?
Q. For automatic objects, constructors and destructors are called each time the objects
Q. is used by Amazon Web Services to store copies of a virtual machine.
Q. The Cloudlets have a ownership unlike that of Clouds.
Q. Internet provides for remote login.
Q. Logical extension of computation migration is
Q. Which of the following is not a cloud stakeholder?
Q. Cloud providers provide cloud services to the cloud users.
Q. To overcome the lag in the operating speeds of the I/O device and the processor we use
Q. Which of the following software can be used to implement load balancing?
Q. Point out the correct statement
Q. Even with two-factor authentication, users may still be vulnerable to attacks.
Q. Service exporters that can export a bean as a remote service based on the :-
Q. Which of the following benefit is provided by the PaaS service provider?
Q. Which of the following is not provided by “Deep Web”?
Q. The Hadoop list includes the HBase database, the Apache Mahout system, and matrix operations.
Q. ________________ is the central application in the AWS portfolio.
Q. The advantages of Ajax is _______________
Q. Data stored in __________ domains doesn’t require maintenance of a schema.
Q. Which of the following statements about Google App Engine (GAE) is INCORRECT.
Q. In order to participate in cloud-computing, you must be using the following OS _______ .
Q. A good cloud computing network can be adjusted to provide bandwidth on demand.