Home / Sandeep / Programming Language MCQs
Total questions: 60
Q. PHP is an example of ___________ scripting language.
Q. What is the result of the following PHP code?
Q. Which of the following built-in functions returns an array consisting of associative key/value pairs?
Q. Which of the following built-in functions is used to sort an array in descending order?
Q. ___ is an array with more than two dimensions.
Q. Which the following declarations are correct to create an array in PHP?
Q. The array index starts from ______?
Q. How many types of array are accessible in PHP?
Q. Which of the umask command parameters grant the right to run the newly created regular files by default?
Q. A user executes the following command. What will be the output of this command?
Q. What does the following command “chmod + t”?
Q. If you are a root user, how can you enable execution only for the owner of the file “myfile”?
Q. Which of these commands will set the permissions on the file “myfile”: read and write for the owner(user), read for the group and nothing for others?
Q. The following command
Q. The -rwxr-xr-t permissions represented by the following octal value.
Q. Which command is used to assign read-write permission to the file owner?
Q. Java has a distinction of supporting special operators known as
Q. Arithmetic operators in java can not be applied to
Q. Which of the variables serve as symbolic constants
Q. What are typically used to store information in Java
Q. What is the default value of boolean in java
Q. What is the default value of int
Q. Assigning a larger type to a smaller one is known as _________ conversion in Java
Q. Which type of conversions do not lose information about the magnitude of a value
Q. The syntax "type variable = (type) variable2" is used for
Q. Assigning a value of one type to a variable of another type is known as
Q. Which of the following is derived data type
Q. Which of the following is intrinsic data type
Q. For logical value, which primitive type is used
Q. Which of these is long data type literal?
Q. What will be the output for the below code ?
Q. What is the output for the below code ?
Q. In Java, the word true is
Q. Java is a _______ language.
Q. Which one is a valid declaration of a boolean?
Q. Which of these occupy first 0 to 127 in Unicode character set used for characters in Java?
Q. Literal can be of which of these data types?
Q. Literals in java must be appended by which of these?
Q. What will be the output of the following PHP code ?