Home / Vijay Sangwan / Programming MCQs Solution
Programming Portal Solution
You will find all Programming Portal MCQs whose solution is updated by Vijay Sangwan
Q. In Java, can a method throw any checked exception without declaring it using "throws"?
Q. In Java, can a "catch" block catch multiple exceptions?
Q. What will be the output of the following Java code?
Q. In Java, can a "finally" block be used without a "catch" block?
Q. Which keyword is used to explicitly throw an exception?
Q. In which of the following package Exception class exist?
Q. Which of the following should be true of the object thrown by a thrown statement?
Q. In Java, can a subclass inherit constructors from its superclass?
Q. What happens when a constructor is defined for an interface?
Q. In Java, can an interface have static methods with implementations?
Q. The same import package/class be called twice in java?
Q. Java system properties can be set at runtime.
Q. What is true about the setProperties method?
Q. What is JVM?
Q. Which of these is an correct way of defining generic class?
Q. In Java, which access modifier allows a method to be accessed from any class in any package?
Q. Which of the below is not a Java Profiler?
Q. Which of the following is a bitwise operator in Java?
Q. What is the value of the expression false || true in Java?
Q. Which operator is used to invert all the digits in a binary representation of a number?
Q. What will be the output of the following Java program?
Q. Can 8 byte long data type be automatically type cast to 4 byte float data type?
Q. Which of this statement is incorrect?
Q. What will be the output of the following Java code?
Q. Which of this method of class StringBuffer is used to get the length of the sequence of characters?
Q. What is the purpose of the Arrays.fill() method in Java?
Q. What is the access level of a class member with no access modifier specified in Java?
Q. What is the keyword used to declare a class that cannot be instantiated and can only be extended?
Q. What is the default value of a char variable in Java if it's not explicitly initialized?
Q. Which of these can be returned by the operator &?
Q. What is the synonym for REAL?
Q. For which of these is the startup option best suited?
Q. The statement that constructs a branching flow-control construct is . . . . . . . .
Q. The information about table index characteristics is stored in which table of INFORMATION_SCHEMA?
Q. What is the synonym for CHARACTER SET?
Q. The DBI API for Perl is . . . . . . . .
Q. Is duplicate entry of other attributes are allowed in SQL?
Q. The stored-routine privileges are contained in . . . . . . . .
Q. The variable used to set table alias names as non case sensitive is . . . . . . . .
Q. Which API provides the lowest level interface to the server?
Q. How many of the following do not support 'BIT' data type? MyISAM, MEMORY, NDB
Q. Which system variable enables mysqld to keep more tables open simultaneously?
Q. Which is more efficient? LOAD DATA, INSERT
Q. The expression '2 BETWEEN 2 AND 5' results in . . . . . . . .
Q. In which mode of search is the search string parsed into words and the search looks for rows?
Q. For which of these storage engines are configuration options always built?
Q. Which table option for MyISAM tables reduces index flushing?
Q. What is the minimum value stored by signed TINYINT?
Q. The default case sensitivity of database and table names depends on . . . . . . . .
Q. The use of table level locks is always useful in MyISAM tables.
Q. What will be the output of the following MySQL command? SELECT * FROM person WHERE emp_id = NULL;
Q. Which keyword is used to search through natural language fulltext?
Q. Which mode prevents entry of the 'zero' date value in strict mode?
Q. The datatype SMALLINT stores . . . . . . . .
Q. The MySQL APIs are libraries to connect applications to database servers.
Q. Which statement is used to delete an existing row from the table?
Q. The place where the server stores its databases and status files are called the data directory.
Q. Which command is used to redefined the mysql delimiter?
Q. Which clause is used to "filter out unwanted Groups"?
Q. What is the synonym for last_insert_id session variable?
Q. For failure, mysql_query() returns . . . . . . . .
Q. Which among the following is the correct syntax for defining "Constraint Check" in Mysql?
Q. The file that can be used to execute multiple compile statements is . . . . . . . .
Q. Which Numeric Data type has the largest range?
Q. CGI stands for . . . . . . . .
Q. fetchrow_hashref() returns reference to hash of row values keyed by . . . . . . . .
Q. For which table does 'REPAIR TABLE' not work?
Q. The most restrictive among the following is . . . . . . . . mysql_query(), mysql_real_query()
Q. to insert a hyperlink in a slide
Q. What's the easy way to apply varied animations to test on slides
Q. How many columns can you insert in a word document in maximum?
Q. When typing in Preeti font all the Ukars turn to something else? What's the cause?
Q. The word processor in MS office suite is
Q. Microsoft Word, Microsoft Excel, and Microsoft PowerPoint are the part of
Q. Which tool is used to generate printout of a table\'s structure?
Q. What is the significance of NiFi's "Data Provenance Repository"?
Q. What is the role of Apache NiFi's "FlowFile" in data flow management?
Q. In Apache NiFi, what does the term "processor" refer to?
Q. In Apache NiFi, what is the primary function of the "RouteText" processor?
Q. What is the primary purpose of NiFi's "SplitText" processor?
Q. How can you secure the communication between a Hadoop client and the ResourceManager?
Q. What is the purpose of Hadoop's HDFS Trash feature in a security context?
Q. How does Hadoop's HDFS Access Control Lists (ACLs) differ from traditional Unix file permissions?
Q. What role does the Hadoop CredentialProvider API play in securing Hadoop credentials?
Q. How does Hadoop's HDFS Trash feature contribute to security?
Q. How does Hadoop's Secure DataNode Communication enhance the security of a Hadoop cluster?
Q. What role does the Hadoop CredentialProvider API play in securing sensitive information in Hadoop?
Q. PCollection, PTable, and PGroupedTable all support a . . . . . . . . operation.
Q. Point out the correct statement.
Q. Point out the correct statement.
Q. Point out the correct statement.
Q. Point out the correct statement.
Q. . . . . . . . . is a write-only protocol that cannot be parsed by Thrift.
Q. Point out the wrong statement.
Q. . . . . . . . . is responsible for maintaining groom server status.
Q. Apache . . . . . . . . provides direct queries on self-describing and semi-structured data in files.
Q. What is the purpose of the HBase Bulk Loading feature?
Q. In HBase, what is the role of the HBase Bloom Filter Compound feature?
Q. In HBase, what is the role of the HBase Compaction Thread?
Q. In HBase, what is the primary purpose of the HBase Online Schema Change?
Q. In HBase, what is the purpose of the HBase Block Encoding?
Q. What is the significance of the Oozie Decision node in a workflow?
Q. What is the purpose of the Oozie Coordinator Dataset?
Q. In Oozie, what does the term "action" refer to?
Q. In Oozie, what is the significance of the "ok to" and "error to" properties in a workflow?
Q. In Hive, what is the role of the STORED BY clause in a CREATE TABLE statement?
Q. . . . . . . . . are encoded as a series of blocks.
Q. Avro supports . . . . . . . . kinds of complex types.
Q. Which of the following compression is similar to Snappy compression?
Q. Avro schemas are defined with . . . . . . . .
Q. Point out the wrong statement.
Q. Which of the following format is more compression-aggressive?
Q. What is the purpose of the Pig Latin STORE statement in Apache Pig?
Q. . . . . . . . . operator is used to view the step-by-step execution of a series of statements.
Q. In Sqoop, what is the purpose of the "--warehouse-dir" option in an import command?
Q. Which of the following interface is implemented by Sqoop for recording?
Q. . . . . . . . . text is appropriate for most non-binary data types.
Q. What is the role of the Hadoop JobClient in a MapReduce job?
Q. What is the primary function of the Hadoop Partitioner in a MapReduce application?
Q. In a MapReduce program, what is the purpose of the Hadoop OutputCommitter?
Q. Point out the wrong statement.
Q. Point out the correct statement.
Q. All of the following accurately describe Hadoop, EXCEPT . . . . . . . .
Q. Which of the following platforms does Hadoop run on?
Q. What is the purpose of the MapReduce "Combine" phase?
Q. Streaming supports streaming command options as well as . . . . . . . . command options.
Q. Which of the following Hadoop streaming command option parameter is required?
Q. In Hadoop, what does the term "DataNode" represent?
Q. What is the role of the TaskTracker in Hadoop?
Q. Which component of Hadoop is responsible for resource management?
Q. Which of the following method add a path or paths to the list of inputs?
Q. The Char data type can store . . . . . . . .
Q. The behavior are represented by . . . . . . . .
Q. What will be in Msg after the following code is evaluated?
Q. What will be the output of the following Visual Basic code?
Q. The main property of . . . . . . . ., is LoadPicture and resize the picture .
Q. A Radio button can be directly accessed from the keyboard using a . . . . . . . .
Q. Pressing the enter key when the button is on focus produces . . . . . . . .
Q. An application communicates with the user through . . . . . . . .
Q. The subscripts are . . . . . . . . than the row and column in which the element is located.
Q. To covert a number from one data type to another, you use the . . . . . . . .
Q. Following are the concatenation operator
Q. . . . . . . . . property is used set width and height of images .
Q. The . . . . . . . . symbol is used to take a decision in the flowchart.
Q. What is a class definition?
Q. Arranging data in a specific order is called as . . . . . . . .
Q. . . . . . . . . is generally used to emphasize the text.
Q. . . . . . . . . is the process of adding a number to the value stored in a value.
Q. Which statement is used to define a class in visual basic?
Q. It is inappropriate to assign access keys to . . . . . . . .
Q. The actions such as click, double-click, scrolling etc are . . . . . . . .
Q. Use the . . . . . . . . to verify the tab order control in the interface.
Q. In Visual Basic, which of the following method converts a string to a number?
Q. Which of the following is used to write a stream of characters in Visual Basic?
Q. In the Visual Basic application, which of the following are listed in a properties window?
Q. Two procedures can have procedure-level variable whose names are same.
Q. The Cancel Button's procedure is accessed by . . . . . . . . key.
Q. What is the result of the expression 10-5>3*4-2?
Q. In R, what is the syntax for the for loop?
Q. Which of the following object is masked from 'package: stats'?
Q. Purpose of Static Factory Method?
Q. Is Session a thread-safe object?
Q. Which type of ServletEngine is a server that includes built-in support for servlets?
Q. Which of these method of httpd class is used to write UrlCacheEntry object into local disk?
Q. What alternatives exist to embedding Java code directly within the HTML markup of your JSP page?
Q. What does the 'chown' command do in Linux?
Q. Which command is used to view system logs in Linux?
Q. Which of the following commands is used to display the system's hostname?
Q. Which of the following commands is used to change the system's time zone in Linux?
Q. Which of the following commands is used to view a file in a compressed format (gzip)?
Q. Which command is used to view the contents of a compressed file without extracting it?
Q. Which command is used to create a new directory in Linux?
Q. Which command is used to check disk usage in Linux?
Q. Which Linux command is used to view running processes?
Q. Which Linux command is used to create a new directory?
Q. Which command is used to display the manual pages of a command in Linux?
Q. Which of the following is the default shell in most Linux distributions?
Q. Which keyword is used to declare a constant variable in C++?
Q. Which C++ feature allows a function to be redefined in a derived class?
Q. What is the default return type of the 'main()' function in C++?
Q. What is the output of the following C++ code? int x = 10; cout << ++x;
Q. Which of the following is the correct way to define a function with an override specifier in C++?
Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x >>= 1);
Q. Which of the following C++ classes is used for handling input and output?
Q. Which of the following data types can store floating-point numbers in C++?
Q. Which of the following C++ features is used to achieve polymorphism?
Q. What is the purpose of the 'this' pointer in C++?
Q. What will be the output of the following code? int x = 5; int y = 2; cout << x % y;
Q. What is the output of the following code snippet? int x = 10; int y = 0; 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 define a constructor in C++?
Q. Which of the following is the correct way to declare a constant in C++?
Q. Which of the following is used to define a macro in C++?
Q. Which of the following is a keyword in C++?
Q. What will be the output of the following code? int a = 5; cout << ++a;
Q. What does the 'continue' statement do in a loop in Python?
Q. Which function is used to get the length of a string in Python?
Q. What is the output of the following Python code: print(2 * 3 + 5)?
Q. What is the correct file extension for Python files?
Q. What is the purpose of the 'docker-compose config --hash' command?
Q. Which Docker command is used to stop and remove all containers?
Q. Which of the following is true about Docker containers?
Q. What does the 'docker tag' command do?
Q. Which Docker component manages the network configuration of containers?
Q. Which of the following is true about Docker Compose?
Q. What is the purpose of the 'docker-compose scale' command?
Q. Which of the following statements is correct about Docker Swarm?
Q. How can you view the processes running inside a Docker container?
Q. Which Docker command is used to list the available Docker volumes?
Q. What is the purpose of the 'docker exec' command?
Q. What is the purpose of the 'docker tag' command?
Q. Which Docker command is used to build images from a Dockerfile?
Q. How do you get information about a specific Docker image?
Q. Which of the following is a valid Docker network type?
Q. Which command is used to view Docker system-wide information?
Q. What is the default network driver used by Docker?
Q. What is the difference between 'docker stop' and 'docker kill'?
Q. What is the purpose of the 'docker exec' command?
Q. Which command removes stopped containers, networks, and volumes created by Docker Compose?
Q. Which of the following is NOT a valid service type in Docker Compose?
Q. What is the purpose of the STOPSIGNAL instruction in a Dockerfile?
Q. Which command is used to list all Docker images on the local machine?
Q. Which command is used to pull an image from Docker Hub?
Q. Which command is used to build a Docker image from a Dockerfile?
Q. The standard ASCII characters have numeric values from ‐‐‐ to ‐‐‐‐
Q. Which of the following is a UML constituents
Q. What are the basic run time entities in an object oriented program?
Q. Which one is the Object Oriented Programming language?
Q. ‐‐‐‐‐ function can only be called by another function that is a member of its class.
Q. It is a __________ error to pass arguments to a destructor.
Q. Which of the following statement is correct?
Q. Which of the following statements is correct when a class is inherited publicly?
Q. How many objects can be created from an abstract class?
Q. Which of the following type of data member can be shared by all instances of its class?
Q. A private member function can be called by another function that is a member of a class is called
Q. The empty virtual function are called
Q. Which of the following is correct in C++?
Q. Which of the following is not a type of Constructor?
Q. What is used to read from the console in C++?
Q. Derived class is also known as
Q. What is the shortest command to take you to your home directory?
Q. Java supports input/output of data through the classes included in the _______ package: a) jav
Q. printf("%d%d", book.price, book.page);
Q. In switch statement, each case instance value must be _______?
Q. What is the output of the following program : print '{0:-2%}'.format(1.0 / 3)
Q. Which of the following operator functions cannot be global?
Q. Which of the following is FALSE about references in C++?
Q. String class have a concat() function that is used to _____________________
Q. What do container adapter provide to interface?
Q. Which interface in the container is required for storage management?
Q. The value 132.54 can be represented using which data type?
Q. Which type is best suited to represent the logical values?
Q. What does an escape code represent?
Q. Which utility is used for checking the health of an HDFS file system?
Q. is a CPU emulator and virtual machine monitor
Q. Which of the following can be identified as cloud
Q. Network bottlenecks occur when data sets must be transferred
Q. Which of the following should be placed in second lowermost layer for the following figure ?
Q. The technology used to distribute service requests to resources is referred to as
Q. Process that prevents someone from denying that she accessed resource
Q. has many of the characteristics of what is now being called cloud computing.
Q. a website with an audio interface that can be accessed through a telephone call
Q. The system is notified of a read or write operation by
Q. Does publish() method accepts arbitrary arguments.
Q. A file in HDFS that is smaller than a single block size
Q. AWS reaches customers in _countries.
Q. RestTemplate class method which performs an HTTP HEAD operation.
Q. Which of the following is storage data interchange interface for stored data objects?
Q. Amazon Machine Images are virtual appliances that have been packaged to run on the grid of nodes.
Q. Which of the following is the most refined and restrictive service model?
Q. Which of the following is a payment processing system by Google?
Q. Amazon Web Services (AWS) is an example of______________________
Q. _________ is a service that creates and manages virtual network interfaces.
Q. In para-virtualization, VMs run on hypervisor that interacts with the hardware.
Q. Which of the following service is provided by Google for online storage ?
Q. The term '‘loud’ in cloud-computing refers to ______.
Q. What’s the most popular use case for public cloud computing today?