Home / Tanmay / Programming MCQs Solution

Programming Portal Solution

You will find all Programming Portal MCQs whose solution is updated by Tanmay

Q. Which of the algorithmic languages is lexical scoping standardized in?

Q. What is the purpose of the dynamic scoping?

Q. What is the fundamental rule of lexical scoping?

Q. Which of the following are examples of closures?

Q. What is a closure?

Q. In this snippet, firstname and surname are

Q. Will the below code snippet work? If not, what will be the error?

Q. Consider the following code snippet. What will be the output?

Q. In the below switch syntax, the expression is compared with the case labels using which of the following operator(s) ?

Q. The “var” and “function” are

Q. A statement block is a

Q. The output for the following code snippet would most appropriately be

Q. What kind of an expression is “new Point(2,3)”?

Q. How to make all paragraphs “RED”?

Q. The default value for the “position” attribute is _________

Q. Which CSS property is used to control the text size of an element?

Q. What is iframe used for in HTML?

Q. What is the purpose of HTML forms?

Q. What is the purpose of the <tt> tag in HTML?

Q. Which of the following tags are related to a table in HTML?

Q. Which of the following HTML tags will insert a line break?

Q. What attribute can be added to many HTML/XHTML elements to identify them as a member of a specific group?

Q. Which element is used in <HEAD> of an HTML/XHTML page, if we want to use an external CSS to decorate the page?

Q. What should be the value of the “width” property of the following table: (<table style="width:'???'">), to make the width of the table fit the current width of the browser window?

Q. Which of the following protocols is not used on the Internet?

Q. In HTML, Uniform Resource Locator (URL) is used _____

Q. How to embed audio files in HTML?

Q. How to add alternative text to an image?

Q. Which tag is used to display pre-formatted text?

Q. What is the output of the following code?

Q. Which of the following functions converts a “string” to a “float”?

Q. What is the data type of the object below?

Q. Which function overloads the operator >> ?

Q. In python, we use “try” and “catch” for exception handling?

Q. What is the purpose of the following code?

Q. Which of the following keywords is a placeholder for the body of a function?

Q. Which of the following instructions will work without error?

Q. Which of the following statements is invalid?

Q. What is the output of the following code?

Q. What is the output of the following code?

Q. Python is a compiled language?

Q. Are String objects mutable?

Q. Suppose we have two sets (s1 and s2) then what is the output of S1 + S2

Q. What is the output of the following code?

Q. What is the output of the following code?

Q. Which of the following uses the id() function in Python?

Q. What is the output of the following code?

Q. What is the output of the following code?

Q. What is the output of the following code when executed in Python shell?

Q. Which of the following cannot be declared as a variable?

Q. Which of the following statements is used to create an empty set?

Q. All keywords in Python are ______

Q. CSS is an acronym for