Home / Shivam / Programming Language MCQs
Total questions: 210
Q. In order to start the transaction, the command used is
Q. To get the table's previous permanent status, use the ____ command
Q. A single unit of work for all commands executed consecutively is known as
Q. Which of the following is/are transaction control commands in SQL?
Q. The character(s) which are used independently or in conjunction with SQL Like Operator:
Q. SQL Like is NOT used with which of the following statement(s)?
Q. In SQL, Like is a ____ operator.
Q. Which keyword is used in SQL Server to implement the auto increment?
Q. Which of the following is the feature(s) of SQL Auto Increment?
Q. Which of the following is TRUE about SQL Auto Increment?
Q. Which data type has this Minimum and Maximum value from 3.4e-038 to 3.4e+038?
Q. The CharArrayWriter class is not used to write data to multiple files
Q. Many threads at a time can run in a single process
Q. Which containers are used to keep the class name space compartmentalized?
Q. Which method compares the given object to 'this' object?
Q. Exception Handling is a mechanism to handle runtime errors
Q. Which is a non-static method having the same name as its class?
Q. If a class has multiple methods by same name but different parameters, it is known as?
Q. Local inner class can access non-final local variable
Q. Which method cannot be overridden?
Q. Which class cannot be instantiated?
Q. What is used to convert the byte-oriented stream into character-oriented stream?
Q. Which method is used in thread class to test if the current thread has been interrupted?
Q. Which type of java package that contains wide range of classes and methods are used for performing different functionalities?
Q. Which concept is used to make Java more memory efficient (because no new objects are created if it exists already in string constant pool)?
Q. The following exceptions: NullPointerException, ArrayIndexOutOfBoundsException, ArithmeticException, NumberFormatException are seen in _______
Q. Find whether these two rules are correct or not defined by the constructor 1. Constructor name must be same as its class name. 2. Constructor must have no explicit return type.
Q. Which are also known as inner classes?
Q. Which type of polymorphism is nothing but the method overloading in java?
Q. Which is nothing but a blueprint or a template for creating different objects which defines its properties and behaviours?
Q. Which class can be used to read data line by line using the readLine() method?
Q. These two ways By extending Thread class By implementing Runnable interface. are used to?
Q. Package does not provide access protection
Q. Generally string is a sequence of characters, But in java, string is an _______
Q. Which block contains a block of program statements where an exception might occur?
Q. Static fields belong to the class, not instances of the class
Q. Which enables some interaction with the garbage collector?
Q. A final class is not to be inherited.
Q. What is meant by JIT?
Q. From where the SequenceInputStream class is used to read data?
Q. An object type can represent any real-world entity.
Q. Constructors are functions that return a new object as its value.
Q. Which statement chooses from a sequence of conditions, and executes a corresponding statement?
Q. Pragmas are processed at ___________
Q. SQL keywords are not case-sensitive.
Q. Is it possible to define a NOT NULL field in a record?
Q. SIGNTYPE lets you restrict an integer variable to the values -1, 0, and 1, which is useful in programming tri-state logic.
Q. Which datatypes can be used with a RECORD Type?
Q. In PL/SQL, a warning or error condition is called an exception.
Q. How many nested IF clauses can be included within an IF clause?
Q. Arrays in other languages become varrays in PL/SQL.
Q. Collection is an ordered group of elements, all of the same type.
Q. A function called from SQL statements must obey certain rules meant to control side effects.
Q. The DBMS_SQL package should be used in which of the following situations?
Q. How many attributes does every explicit cursor and cursor variable have?
Q. Which Operator Returns TRUE if a subquery returns at least one row?
Q. Which of the following is used to define code that is executed / fired when certain actions or event occur?
Q. Which parameter acts like a constant inside the subprogram?
Q. Which statement lets you create standalone functions that are stored in an Oracle database?
Q. PL/SQL packages are schema objects that group logically related PL/SQL types, variables and subprograms.
Q. Which Package lets you use database triggers to alert an application when specific database values change?
Q. WRAP command is used to encrypt a PL/SQL application.
Q. Which Exception is also known as Oracle named exception handler?
Q. PL/SQL provides a feature to handle the Exceptions which occur in a PL/SQL Block known as exception Handling.
Q. Which of the following commands is used to count just the number of lines contained in afile?
Q. Which of the following commands is used to count the total number of line, words andcharacters contained in a file?
Q. Which screen manipulation command sets the screen back to normal?
Q. What communication command provides communication to another user logged on bywriting to the bottom of their terminal?
Q. sed is a command typically used for
Q. To open a file file1 with cursor at line number 4
Q. Which command gives the first byte where the difference is in the file1 & file2?
Q. How do you add (append) a file “file1” to the example.tar file
Q. Which one shows the name of the operating system?
Q. Which of the following commands will allow the user to search contents of a file for aparticular pattern
Q. Which tar command option is used to list the files in a tape archive format?
Q. Which of the following commands can be used to change default permissions for filesand directories at the time of creation
Q. Which of the following commands can be used to copy files across systems?
Q. Which command is used to display all the files including hidden files in your current andits subdirectories ?
Q. Which commands will give you information about how much disk space each file in thecurrent directory uses?
Q. Which of these commands could you use to show one page of output at a time?
Q. Command used to count number of character in a file is
Q. Command used to determine the path of an executable file is
Q. What command is used to list contents of directories?
Q. What command is used to list the files chap0l, chap02 and chap04?
Q. The location for subdirectories for local programs and executables for user and administrative commands is:
Q. How many extended partitions can exist on one drive?
Q. Which command can force all buffers to disk?
Q. Which program is used to schedule particular jobs or programs at particular times on thesystem?
Q. What script is run for setting bash global defaults for all users?
Q. Which of the following is not the component of LINUX?
Q. The UNIX file system stores a date in physical blocks of
Q. The seventh field of /etc/password is
Q. In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory.
Q. Which is the earliest and most widely used shell that came with the UNIX system?
Q. The agency that sits between the user and the LINUX system is called the
Q. By default, one can mount
Q. NFS stands for
Q. IP address is a
Q. RPM stands for
Q. Physical partitioning can be done using
Q. What is the output of the following program?
Q. What will be displayed by the following code?
Q. What is the output of the following program :
Q. What is the output of the following program
Q. What data type is the object below?L = [1, 23, „hello‟, 1]
Q. Which module in Python supports regular expressions?
Q. Which function overloads the >> operator?
Q. What will be the output?
Q. Select from among the following character escape code which is not available in Java.
Q. What is the output of the following program ?
Q. What will be the output of following java code?
Q. What will be the output of the above fraction of code ?
Q. What will be the value of "x" after execution ?
Q. What will be the output after compiling and running following code?
Q. Which of the following is the correct expression that evaluates to true if the number x is between 1 and 100 or the number is negative?
Q. What will be the output for the below code ?
Q. What is output of the following code
Q. When you pass an array to a method, the method receives ________ .
Q. What is the value of a[1] after the following code is executed?
Q. What will be the output of the program? and the command-line invocation is C:Java> java Test 1 2 3 4
Q. Which will legally declare, construct, and initialize an array?
Q. What would be the result of attempting to compile and run the following code?
Q. Which one of the following is a valid statement?
Q. What is the output of the following code?
Q. What is the result of compiling and running the following code?
Q. In Java arrays are
Q. Which of the following is false
Q. Which one of the following is false
Q. ______ is a group of related data items that share a common name with same data type
Q. In Unix, system identifies a file by its
Q. In Unix the PID of the kernel process is
Q. In Unix ,which of the following are not filter programs
Q. In Linux operating system, each process is represented by a/an
Q. What is the default permission value for a directory created in linux
Q. What is the maximum file size supported by Ext4 filesystem
Q. Which one is a virtual filesystem
Q. The first edition of Unix was released on
Q. Which command will display the kernel version of linux operating system
Q. The "se nu" command in vi editor will
Q. Which command is used to save and exit after editing a text file via vi command
Q. The core component of Linux Operating System which interacts directly with hardware and provides low level services to upper layer components is known as
Q. What is the default permission value for a file created in linux
Q. Which command cannot be used to edit a text file from command line
Q. Which command can be used to check the name of a computer system in linux
Q. Which one is not a Java Comment type
Q. Which one was the first browser to support Java applets
Q. Static binding calls at
Q. Dynamic binding calls at
Q. Name of the process by which objects of one class acquire the properties of objects of another is called
Q. The act of representing essential features without including the background details or explanations is called
Q. Which one is commonly used to extend the applications hosted by web servers
Q. A highly optimized set of instructions designed to be executed by the Java run-time system, is called
Q. Java is a
Q. A special kind of Java program that is designed to be transmitted over the Internet and automatically executed by a Java-compatible web browser is
Q. Which one was the initial name of Java
Q. In which year Java programming language was developed
Q. Java was developed by
Q. What will be the output of the following Python code snippet if x=1?
Q. What is the order of precedence in python?
Q. Python supports the creation of anonymous functions at runtime, using a construct called
Q. Which of the following functions can help us to find the version of python that we are currently working on?
Q. What will be the output of the following Python code?
Q. Which of the following character is used to give single-line comments in Python?
Q. Which keyword is used for function in Python language?
Q. Which of the following is used to define a block of code in Python language?
Q. What will be the value of the following Python expression? 4 + 3 % 5
Q. All keywords in Python are in
Q. Is Python code compiled or interpreted?
Q. Which of the following is the correct extension of the Python file?
Q. Is Python case sensitive when dealing with identifiers?
Q. Which type of Programming does Python support?
Q. Who developed Python Programming Language?
Q. What will be the output of the following C# code?
Q. What will be the output of the following C# code conversion?
Q. DIFFERENCE BETWEEN KEYWORDS ‘VAR’ AND ‘DYNAMIC’?
Q. Storage location used by computer memory to store data for usage by an application is?
Q. Why strings are of reference type in C#.NET?
Q. Verbatim string literal is better used for?
Q. Correct statement about strings are?
Q. What will be the output of the following C# string? (Enter a String : BOMBAY).
Q. For two strings s1 and s2 to be equal, which is the correct way to find if the contents of two strings are equal?
Q. What is the Size of ‘Char’ datatype?