Home / Yogesh / Programming Language MCQs
You will find all MCQs which are added in Programming Portal by Yogesh
Q. Which of these contains an executable statement?
Q. Browsers that do not understand Javascript _______
Q. The tag <noscript> will work __________________
Q. Which method returns the string starting at the specified position?
Q. How to know the number of elements of a form?
Q. The opposite of onmouseover is_____?
Q. Which of the following is not a mouse event?
Q. Which method returns the character at the specified index?
Q. Which of the following functions is a valid type of function that javascript supports?
Q. Which event is specific to the keyboard?
Q. Which one is not a comparison operator?
Q. The following statement A ? B : C is equivalent to ______?
Q. If str = "VWXYZ", what returns str.charAt(3)?
Q. How to detect the name of the client’s browser?
Q. Which of these parameters is not valid?
Q. How many parameters can be passed to a function?
Q. To check if three variables are equal, we are going to use_____?
Q. How to get a random number between 5 and 9 inclusive?
Q. How to declare an array of 10 elements in JavaScript?
Q. What is the correct syntax for checking the value of “c”?
Q. How to create a function in JavaScript?
Q. How to write an IF condition to check if “a” is NOT equal to 2?
Q. How to write an IF condition in JavaScript?
Q. How do you write “Hello World” in an alert box?
Q. Where is the right place to insert JavaScript code?
Q. The external JavaScript file must contain the <script> tag?.
Q. What is the correct syntax for referring to an external script called “myscript.js”?
Q. How to call a function named “sum”?
Q. In which HTML tag do we put the JavaScript code?
Q. Your company assigns you to work on a JavaScript project. With the DATE object, which of the following allows you to call a function based on the elapsed time?
Q. You are a junior web designer. Your company assigns you to work on a JavaScript project. What are the benefits of using JavaScript for form validation?
Q. You are working on a JavaScript project. How do I request inputs from the user?
Q. You are working on a JavaScript project. Which of the following statements correctly describes the relationship between JavaScript and “objects”?
Q. Which of the following is the minimum browser version that supports JavaScript?
Q. When we can’t trigger JavaScript from an event handler?
Q. Which of the following functions sorts the elements of an array?
Q. Which of the following functions of “String” object divides a String object into an array of strings by separating the string into substrings?
Q. Which of the following functions of “Number” object returns a string of the current number?
Q. To know the identifier of the user’s OS, we use ______?
Q. Which of the following IS NOT a valid function call?
Q. Which property is object oriented?
Q. Which declaration provides the value of a function?
Q. Which function does the reverse of split()?
Q. DOM ____?
Q. Which of the following is not a property of window object?
Q. Which keyword catches all values except those specified?
Q. What event do you use to perform something after the page has finished loading?
Q. What is the output of : String.fromCharCode(65)?
Q. What is the correct syntax to write an array in JavaScript?
Q. What is the correct syntax for opening a new window called “f2”?
Q. What is the correct syntax of the “for” loop?
Q. What is the correct syntax of the “while” loop?
Q. How to round the number 3.12 to a closer integer number?
Q. JavaScript is the same as Java?
Q. How can you add a comment in JavaScript code?
Q. How do you find the greatest value of “a” and “b”?
Q. How to insert a comment on several lines?
Q. What is the object that is in TOP of the root in JavaScript?
Q. xcopy command can copy
Q. FAT stands for
Q. While working with MS-DOS which key is used to get the p[revious command used
Q. To copy the file command.com from drive c: to drive a
Q. The deleted file in MS-DOS can be recovered if you use the command mention below immediately, the command is
Q. Which command displays current directory name or change from one to another?
Q. Which command creates a directory or subdirectory?
Q. Which command will be used to display a file within the specified directory of pathname?
Q. Which command displays the directory list including files in tree structure?
Q. In MS-DOS you can use small or capital letter of combination of both to enter a command but internally MS-DOS work with.
Q. The vol command is used to
Q. RESTORE command is used to
Q. While working with MS-DOS, which command is used to copying the files to transfer from one PC to another one?
Q. Which command is used to change the file name?
Q. DIR command is used to
Q. CHKDSK can be used to find
Q. Which statement is correct?
Q. Which command be used to ask you to confirm that you want to delete the directory?
Q. DEL command is used to
Q. Which command displays all the files having the same name but different extensions?
Q. Which command displays only file and directory names without size, date and time information?
Q. Which command displays comma for thousand separating on file size while listing?
Q. Which command is used to display all the files having the (.exe) extension but different filename?
Q. Which command should be used to display all files within the specified subordinate directory of the subdirectory?
Q. Only filenames and extensions are to be displayed in wide format, which command you'll use?
Q. Which command lists the contents of current directory of a disk
Q. Which of the following extensions suggest that the file is a backup copy.
Q. If you need to duplicate the entire disk, which command will you use?
Q. Each time you turn on your computer, it will check on the control file
Q. Which command divides the surface of the blank disk into sectors and assign a unique address to each one
Q. If you don't know the current time, which command will you use to display
Q. While working with Ms-Dos which command transfers a specific file from one disk to another?
Q. In MS-Dos what command you will use to display system date?
Q. In MS-Dos 6.22, which part identifies the product uniquely
Q. The relational data model was developed in the _______.
Q. Mysql is an example of the _____.
Q. Which of the following is a valid sql statement?
Q. Databases are stored in ______ so that they are available when needed.
Q. Which of the following is not one of the standard nosql categories?
Q. The privilege ____ can be granted to retrieve data.
Q. Which of the following keywords cannot be used to modify an existing table?
Q. Which of the following is not considered to be type of database client?
Q. Which of the following is not a sql keyword?
Q. Which of the following is true of mysql?
Q. Which of the following is a valid SQL command?
Q. In order to add a new column to an existing table in SQL, we can use the command
Q. Which level of Abstraction describes what data are stored in the Database?
Q. Storing same data in many places is called
Q. What Is MySQL View?
Q. What’s the difference between the DESCRIBE and SHOW FIELDS FROM commands?
Q. A user with RELOAD priveliges can
Q. If you’re writing a client using the C language API, your source code should include the following line at the top
Q. Which of these field types would be best to hold a .jpg image?
Q. Which of the following is available in MySQL
Q. The program called mysql is
Q. Which of these field types would be best to hold a film title?
Q. Which of the following is NOT available in MySQL
Q. How many distinct, different values can you hold in an enum field?
Q. If you want to undo a GRANT, you should use
Q. Which of these is a valid call to a function (watch the spaces carefully!)
Q. You are required to buy a license for MySQL if
Q. “out” is implicit object of which class?
Q. Which object stores references to the request and response objects?
Q. What temporarily redirects response to the browser?
Q. Can and <%–comment–%> be used alternatively in JSP?
Q. Java code is embedded under which tag in JSP?
Q. Which of the following is not a directive in JSP?
Q. What are the components of a marker interface?
Q. Which of the following is not a marker interface?
Q. What is not the advantage of Reflection?
Q. What does Class.forName(“myreflection.Foo”).getInstance() return?
Q. How private method can be called using reflection?
Q. How private field can be called using reflection?
Q. What is used to get class name in reflection?
Q. How method can be invoked on unknown object?
Q. How to get the class object of associated class using Reflection?
Q. What will be the output of the following PHP code ?
Q. The value of __NAMESPACE__ is a string that contains the current namespace name. In global, un-namespaced code, it contains . . . . . .
Q. Some PHP code might not have a namespace and therefore lives in the . . . . . . namespace.
Q. As the namespace size grows, using namespaces can become a little repetitious, but PHP also provides the . . . . . statement, which allows you to alias a specific namespace.
Q. Which of the below namespace declaration is correct?
Q. Within a namespace, for accessing the built-in PHP classes you can prefix the class name with a . . . . . and let PHP look in the global class list.
Q. What will be the output of the following PHP code?
Q. PHP considers the following values as False
Q. What is the limit of a PHP integer value?
Q. strval()
Q. PHP ..... demand that you declare a data type when you create a variable.
Q. String values must be enclosed in ......
Q. If you echo a Boolean variable, the value FALSE displays as a .... and the value TRUE echoes as a .....
Q. You can test the type of any variable with the ..... function.
Q. Which of the following is not valid PHP code?
Q. Variables always start with a ........ in PHP
Q. Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
Q. What should be the correct syntax to write a PHP code?