Home / Praveen Singh / Programming MCQs Solution
Programming Portal Solution
You will find all Programming Portal MCQs whose solution is updated by Praveen Singh
Q. What is the use of try & catch?
Q. In Java, which keyword is used to implement inheritance between classes?
Q. In Java, can a subclass override a final method from its superclass?
Q. What is the purpose of the "protected" access modifier in Java inheritance?
Q. In Java, can a subclass override a default method from its superclass?
Q. Which of these keywords can be used to prevent inheritance of a class?
Q. Which of these class relies upon its subclasses for complete implementation of its methods?
Q. Which of the following is used for implementing inheritance through class?
Q. toRadian() and toDegree() methods were added by which version of Java?
Q. Which of these package is used for graphical user interface?
Q. Which of these methods return a smallest whole number greater than or equal to variable X?
Q. What will be the output of the following Java code snippet? int a = random.nextInt(15) + 1;
Q. Which of these method returns the remainder of dividend / divisor?
Q. Which of these methods of Byte wrapper can be used to obtain Byte object from a string?
Q. Which of these method is a rounding function of Math class?
Q. What is the purpose of method overriding in Java?
Q. ____________ method cannot be overridden.
Q. In Java, can an interface have fields (member variables)?
Q. In Java, can a class implement multiple interfaces?
Q. What is the return type of a constructor in Java?
Q. Which keyword is used to call the constructor of the superclass in a subclass constructor?
Q. What is true about Class.getInstance()?
Q. Which component is responsible to run java program?
Q. Which of the following is a garbage collection technique?
Q. Which of the following statements are incorrect?
Q. Which of this statement is incorrect?
Q. Which of the following is a unary operator in Java?
Q. What will be the output for the below code?
Q. What will be the output of the following Java program?
Q. What will be the output of the following Java program?
Q. Which of these operators can be used to concatenate two or more String objects?
Q. What is the result of the expression "Java".replace("a", "o") in Java?
Q. Which of the following are incorrect form of StringBuffer class constructor?
Q. What is the highest index of an array with 10 elements in Java?
Q. How do you declare a dynamic array (ArrayList) of integers in Java?
Q. Which method is used to remove all elements from an ArrayList in Java?
Q. What does LocalTime represent?
Q. Which statement is valid if '`sampledb`' is a database and '`tbl`' is a table in it?
Q. Which clause is used with an "aggregate functions"?
Q. Which among the following data types can be used with "Range Condition"?
Q. Which statement is used to check how MySQL would execute a SELECT query?
Q. What is the default format for "Datetime" data type?
Q. What does 'abc' || 'xyz' result in if the PIPES_AS_CONCAT is disabled?
Q. Which file is created by the server to store the database attributes?
Q. How can a view refer to multiple tables?
Q. "CREATE TABLE ..." command is used to create which type of table in Mysql?
Q. What will be the output of the following MySQL statement "true AND Null"?
Q. Usage of aggregates in WHERE clause is disallowed.
Q. To execute the contents of a query file 'exec.sql' by feeding it to mysql, which command is used?
Q. The variable that checks for availability of SSL support is . . . . . . . .
Q. Which of the following is case sensitive?
Q. What is the maximum non zero values for DOUBLE?
Q. What represents a 'tuple' in a relational database?
Q. Where does MySQL Enterprise Backup record details of each backup?
Q. The JDBI interface is available for . . . . . . . .
Q. What is the isolation property of transactions?
Q. Post MySQL 6.0, utf8 was . . . . . . . .
Q. Which server mode value enables use of double quotes to wrap identifier names?
Q. Which keyword is used for sorting the data in descending order in Mysql?
Q. Can "SELECT" clause be used without the clause "FROM"?
Q. What is used to produce a new string from an old string in the desired character set?
Q. Mysql cannot be used to execute script files.
Q. What is xyz in the following MySQL statement? CREATE VIEW xyz AS SELECT a, b FROM t;
Q. STRICT_ALL_TABLES turns on stricter checking of data values.
Q. What is the command to see the warning messages?
Q. INFORMATION_SCHEMA is not based on the SQL standard.
Q. The datatype that means a variable length non binary string is . . . . . . . .
Q. Converting a client/server application to embedded server is difficult.
Q. It is possible to drop multiple tables in the same statement.
Q. The 'A' in the ACID property of transactions is . . . . . . . .
Q. The function that returns a reference to an array of row values is . . . . . . . .
Q. Which keyword inserted in the SHOW STATUS statement shows the values for the current connection?
Q. Which is the correct format to store date in the SQL?
Q. Which table in the 'INFORMATION_SCHEMA' stores information about storage engines and server plugins?
Q. Which of these operators does not perform relative-value comparisons?
Q. 'fetchrow_hashref()' returns a reference to the hash of row values keyed by what?
Q. FULLTEXT indexes can be created only for . . . . . . . .
Q. Which of the following characters cannot be used as a delimiter?
Q. The command to see the warning messages is . . . . . . . .
Q. Which is the correct decreasing order for highly developed text manipulation capabilities?
Q. Which of the following statements is not true?
Q. To change font size of a selected slide title, you?
Q. Microsoft Office Accounting is
Q. Microsoft Word is a word processor that saves in its proprietary————format.
Q. What happens when a user double-clicks an object in the Project pane of the Visual Basic Editor?
Q. In a query, what symbol is used to surround a parameter\'s user prompt?
Q. Which of the following statement is true?
Q. What is the primary benefit of using NiFi's data provenance feature?
Q. In NiFi, what is the role of the "DetectDuplicate" processor?
Q. What is the purpose of NiFi's "ListenSyslog" processor?
Q. What is the purpose of Hadoop's Secure Shell (SSH) in a secure Hadoop environment?
Q. What is the purpose of Hadoop's Impersonation in the context of security?
Q. Which of the following language is not supported by Spark?
Q. Sally in data processing uses . . . . . . . . to cleanse and prepare the data.
Q. Point out the correct statement.
Q. Point out the wrong statement.
Q. In HBase, what is the significance of the HRegionServer?
Q. What is the primary role of the HBase HFile?
Q. In HBase, what is the significance of the HBase Data Block Encoding?
Q. What is the role of the Oozie SLA Alert in workflow automation?
Q. BatchEE projects aims to provide an . . . . . . . . implementation. (aka JSR352)
Q. Point out the correct statement.
Q. HICC, the Chukwa visualization interface, requires HBase version . . . . . . . .
Q. In Hive, what is the significance of the JOIN ON clause?
Q. The . . . . . . . . allows users to read or write Avro data as Hive tables.
Q. Point out the wrong statement.
Q. . . . . . . . . permits data written by one system to be efficiently sorted by another system.
Q. Pig operates in mainly how many nodes?
Q. In Hadoop, what is the function of the NameNode in the Hadoop Distributed File System (HDFS)?
Q. In Hadoop, what is the role of the Hadoop ResourceManager "Capacity Scheduler" in a Hadoop cluster?
Q. In Hadoop, what is the function of the Hadoop NameNode in the Hadoop Distributed File System (HDFS)?
Q. Which of the following is a common reason to restart hadoop process?
Q. The . . . . . . . . tool imports a set of tables from an RDBMS to HDFS.
Q. . . . . . . . . is used to filter log files from the output directory listing.
Q. Which Hadoop component is suitable for handling and processing structured data?
Q. Which Apache project is used for data ingestion from relational databases?
Q. What is the significance of the Hadoop MapReduce job tracker?
Q. What is the primary purpose of the MapReduce "Sort and Shuffle" phase?
Q. The number of maps is usually driven by the total size of . . . . . . . .
Q. . . . . . . . . is the default Partitioner for partitioning key space.
Q. What is the role of the Hadoop TaskTracker in MapReduce?
Q. What is the significance of the Hadoop MapReduce "Custom InputFormat" in advanced MapReduce?
Q. Point out the wrong statement.
Q. Point out the correct statement.
Q. For running hadoop service daemons in Hadoop in secure mode . . . . . . . . principals are required.
Q. Apache Hadoop YARN stands for . . . . . . . .
Q. . . . . . . . . is used for storing one of the replicas in SSD.
Q. What is the specialty of the Default button?
Q. What are listed in a Properties Window?
Q. . . . . . . . . operator returns true, if all the sub-conditions are true.
Q. The size of . . . . . . . . is determined by the label's margin property.
Q. A function's header includes the . . . . . . . . data type.
Q. To see the underlined hidden access key, you can do so, by pressing the . . . . . . . . key.
Q. In the following code, the body of If will execute if txtState.Text contains?
Q. . . . . . . . . is used to differentiate the one redio button group to another radio button group.
Q. Form is called as the . . . . . . . .
Q. The . . . . . . . . show the various characteristics of selected objects or controls.
Q. Which of the following is false?
Q. The most common event associated with the command button is the Click event,
Q. Which of the following statement is used to define a class in visual basic?
Q. The . . . . . . . . operator is used to divide two integers.
Q. You specify each item to display in a list box using the Items collection's. . . . . . . .
Q. A . . . . . . . . is defined as a zero or more characters enclosed in quotation marks.
Q. Toolbar is display at the . . . . . . . . of the mdi form.
Q. One of its most important properties of text box is . . . . . . . .
Q. The range of Integer data type is . . . . . . . . to . . . . . . . .
Q. How do you join two data frames based on a common column using dplyr's left_join()?
Q. What is the purpose of the break statement in a loop in R?
Q. Point out the wrong statement?
Q. Which of the following code is used to get an attribute in a HTTP Session object in servlets?
Q. Which of the following methods are needed for loading a database driver in JDBC?
Q. How many types of JDBC drivers are available?
Q. Which of the following is advantage of using JDBC connection pool?
Q. Which of these is an instance variable of httpd that is a Hashtable?
Q. Which of these method of httpd class is used to get report on each hit to HTTP server?
Q. Which of these method of DatagramPacket is used to find the length of byte array?
Q. Which of these class is used to encapsulate IP address and DNS?
Q. how many ports TCP/IP are reserved for specific protocol?
Q. Show some networking terminology given below?
Q. In Inetaddress class which method returns the host name of IP address?
Q. Which command is used to display the system's hostname in Linux?
Q. What is the purpose of the 'wget' command in Linux?
Q. Which command is used to display the last few lines of a file in Linux?
Q. What is the purpose of the 'ps' command in Linux?
Q. Which command is used to display all environment variables in Linux?
Q. Which command is used to extract files from a gzip-compressed file?
Q. Which of the following commands is used to get information about the system's CPU?
Q. Which command is used to display the last logins of users on the system?
Q. Which command is used to remove files in Linux?
Q. Which command is used to display information about the system's disk space?
Q. Which command is used to search for a file in a directory hierarchy?
Q. Which command is used to terminate a process in Linux?
Q. Which operator is used to resolve ambiguity in multiple inheritance?
Q. What is the output of the following code? int x = 10; cout << ++x * x++;
Q. Which STL container stores key-value pairs and provides fast retrieval based on keys?
Q. Which of the following is true about destructors in C++?
Q. Which of the following is used to allocate memory dynamically in C++?
Q. Which of the following is true about function overloading in C++?
Q. Which of the following is the correct way to define a function with a trailing return type in C++?
Q. Which of the following is the correct way to allocate memory dynamically for an integer in C++?
Q. Which of the following C++ operators is used to dereference a pointer?
Q. Which of the following can be used to define a function 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 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. Which of the following is the correct way to declare a pointer in C++?
Q. What is the purpose of the 'new' operator in C++?
Q. Which of the following Docker components is responsible for managing containers and images?
Q. What is the purpose of the 'docker-compose logs --follow' command?
Q. What is the purpose of the 'docker-compose exec --user' command?
Q. What is the purpose of the 'docker-compose unpause' command?
Q. Which command is used to view the Docker build cache?
Q. What is the default value for the 'restart' policy in Docker containers?
Q. Which of the following is a command to list all running containers in Docker?
Q. Which of the following commands is used to create a new Docker network?
Q. What is the purpose of the 'docker-compose kill' command?
Q. What is the default port for the Docker daemon?
Q. What is Docker Compose primarily used for?
Q. Which command is used to view detailed information about a Docker volume?
Q. Which command is used to load a Docker image from a tar archive?
Q. What does the 'docker ps -a' command show?
Q. Which of the following commands is used to remove a Docker volume?
Q. Which Docker command would you use to enter an interactive shell inside a running container?
Q. Which command is used to push a Docker image to Docker Hub?
Q. What is the main benefit of using Docker over virtual machines?
Q. Which command is used to remove a Docker image?
Q. Which of the following is a valid Docker network driver?
Q. Which command removes a Docker volume?
Q. What is the purpose of a Dockerfile?
Q. What is the purpose of the Docker 'volume' feature?
Q. Which command is used to check logs of a service in Docker Compose?
Q. What is the purpose of the HEALTHCHECK instruction in a Dockerfile?
Q. Which command is used to rename a Docker container?
Q. What is the purpose of the ENV instruction in a Dockerfile?
Q. What is the purpose of the CMD instruction in a Dockerfile?
Q. Which command is used to stop a running Docker container?
Q. What is the purpose of Docker Compose?
Q. Which command is used to create a new Docker container?
Q. Write the range of value of the data type ‘char’
Q. The instructions, which are used in programming, are called ‐‐‐‐‐‐‐‐
Q. Which of the following is a UML relationship.
Q. The >> operator is known as‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐.
Q. classes are ‐‐‐‐‐‐‐‐ datatype.
Q. In object oriented Programming the program is divided into ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐.
Q. The operator ‘<< ‘is called
Q. When are the Global objects destroyed?
Q. Which of the following statement will be correct if the function has three arguments passed to it?
Q. Which of the following statement is correct?
Q. The arrays of variable that are of the type class
Q. The function that is a bridge between two classes
Q. The function used to disply one character at a time
Q. A friend function for binary operator overloading takes‐‐‐‐ ‐arguments.
Q. Which of the following never requires any arguments?
Q. Which of the following gets called when an object is being created?
Q. What keyboard combination can be used to exit the shell?
Q. How do you run a job that will continue running even if you are logged out?
Q. How would you avoid accidentally removing files?
Q. What command is used to assign only read permission to all three categories of the file'letter'?
Q. What command is used with vi editor to move forward to the end of a word?
Q. Which command is used to find what is in your home directory?
Q. Which of the following has greater market share of Linux SW/HW
Q. How would you show a list of files and directories that are inside the current directory.
Q. What command, followed by the directory name is used to access that specific directory?
Q. In which directory are the crontab files for users stored on suse linux?
Q. What is different between a Java applet and a Java application?
Q. Which component method is used to access a component's immediate container?
Q. What is garbage collection in the context of Java?
Q. What method is used to specify a container's layout?
Q. Which is the right way to declare constant in C?
Q. C Language developed at _____?
Q. What is the output of the following program : print '{0:.2}'.format(1.0 / 3)
Q. If a function is friend of a class, which one of the following is wrong?
Q. What is the built in library function to compare two strings?
Q. In threat modeling, what methodology used to perform risk analysis
Q. [π=n/Ttotal=n⁄[kTo+Te(n,m)] The above equa on calculates the value of which of the following?
Q. A mashup cloud can be designed by utilizing the Scalability of AWS and of GAE platforms
Q. What are the different types of instances?
Q. Which of the following can be identified as cloud?
Q. Which of the following is true with respect to layered architecture?
Q. Every call to publish() will return a class that conforms to the interface.
Q. client() class provides to create topics.
Q. Which of the following type of virtualization is also characteristic of cloud computing
Q. Communication between services is done widely using protocol
Q. is a function of the particular enterprise and application in an on- premises deployment.
Q. captive requires that the cloud accommodate multiple compliance regimes.
Q. DCS is a
Q. refers to an increase in the performance by the addition of more resources along the service layers
Q. A web service contract is described using :-
Q. Publishing an application’s data as a REST service requires.
Q. is a pay-as-you-go model matches resources to need on an ongoing basis.
Q. The number of reduces for the job is set by the user via
Q. Point out the wrong statement :
Q. An operating system running on a Type __ VM is a full virtualization.
Q. _________ is used by Amazon Web Services to store copies of a virtual machine.
Q. The typical three-layer switching topology will not create latency within a cloud network.
Q. Which of the following is a type of Page Orientation?
Q. Portrait and Landscape are present under which command in Page Layout group?
Q. What is the default paper size in MS Word?
Q. Documents have a ________ to separate their text from their borders.
Q. Which of the following is the command present in Deign tab to modify the table?
Q. __________ is a picture or a graphic that can be added to a document.
Q. Which of the following is a type of checkbox available in MS Word?
Q. Which of the following is an advantage to convert a word file into PDF file?
Q. Using which many methods can the horizontal line be inserted in MS Word?
Q. Which of the following type of Border can be added in MS Word?
Q. Which of the following is a type of page break present in MS Word?
Q. What is the default margin set in MS Word?
Q. A document's margins are adjusted using the ______ in Microsoft Word.
Q. Which of the following is a type of Indent in MS Word?
Q. Which of the following is an advantage of Pie Chart?
Q. As the measurement unit, _______is/are used in Ruler.
Q. Which option is correct to save the document in MS Word?
Q. What is the keyboard shortcut to Select All?
Q. Which of the following is the correct order to select the entire document?
Q. A _____________ within the paragraph will select the entire paragraph.
Q. Which of the following comes under the methodology to delete the text?
Q. Which of the following doesn't come under Text Basics?
Q. With the help of Ruler, one can change the ___________ of the document.
Q. Which of the following is a command in View tab?
Q. How many groups of commands is there in View tab?
Q. Which of the following is a layout tool?
Q. Using View tab, we can switch between –
Q. Which of the following command is not present in Review tab?
Q. What can be done using Mailings tab?
Q. Which of the following is the least-often used tab in Ribbon?
Q. Which of the following is a group of related command in References tab?
Q. How many commands are present in References tab?
Q. Which of the following tab is used to add the document citation?
Q. Which of the following can be changed using Page layout tab?
Q. Which of the following is NOT a command in Insert tab?
Q. Which of the following can be added using Insert tab?
Q. Which of the following document settings can be changed from Home tab?
Q. Which of the following is NOT present as a command in Home tab?
Q. How many groups of related commands are there in Home tab?
Q. Which of the following tab is the default in MS Word?
Q. What is the maximum collations a character set can have?
Q. Unicode support is provided in MySQL.
Q. Which clause can be used to sort string values according to a specific collation?
Q. Which statement is used to find out which character sets are available?
Q. Which collations does this statement list?
Q. Which statement is used to show the server’s current character set and collation settings?
Q. What does UTF stand for int utf8?
Q. Prior to MySQL 6.0, utf8 was
Q. What is generally used as a synonym for CHARACTER SET?
Q. What will be the output of the following Javascript code?
Q. A function definition expression can be called as
Q. The property of a primary expression is
Q. The expression of calling ( or executing ) a function or method in JavaScript is called
Q. What kind of an expression is “new Point(2,3)”?
Q. Which of the operator is used to test if a particular property exists or not?