Tag: programming languages

Questions Related to programming languages

What does STL stand for?

  1. Simple Template Library

  2. Standard Template Library

  3. Static Type Library

  4. Single Type-based Library


Correct Option: B

AI Explanation

To answer this question, you need to understand what STL stands for. Let's go through each option to understand why it is correct or incorrect:

Option A) Simple Template Library - This option is incorrect because the correct expansion of STL is not "Simple Template Library."

Option B) Standard Template Library - This option is correct. STL stands for Standard Template Library. The Standard Template Library is a library in C++ that provides a collection of generic algorithms, data structures, and containers.

Option C) Static Type Library - This option is incorrect because the correct expansion of STL is not "Static Type Library."

Option D) Single Type-based Library - This option is incorrect because the correct expansion of STL is not "Single Type-based Library."

The correct answer is B) Standard Template Library.

  1. C++ programs are directly compiled into native code by a compiler

  2. C++ programs are first compiled to intermediate code by a compiler and then executed by a virtual machine

  3. C++ programs are interpreted by an interpreter

  4. A C++ editor directly compiles and executes the program


Correct Option: A
  1. ‘self’ pointer

  2. std::auto_ptr pointer

  3. ‘Myself’ pointer

  4. ‘this’ pointer


Correct Option: D
Explanation:

To solve this question, the user needs to have knowledge of C++ programming language and the concept of member functions.

The implicit pointer that is passed as the first argument for nonstatic member functions in C++ is known as the 'this' pointer.

Option A: 'self' pointer is not a valid keyword in C++. Hence, this option is incorrect.

Option B: std::auto_ptr is a smart pointer that is used for automatic memory management in C++. However, it is not passed as the first argument for nonstatic member functions. Hence, this option is incorrect.

Option C: 'Myself' pointer is not a valid keyword in C++. Hence, this option is incorrect.

Option D: 'this' pointer is a pointer that points to the object for which the member function is called. It is passed as a hidden argument to non-static member functions. Hence, this option is correct.

Therefore, the answer is: D. 'this' pointer.

  1. = (assignment operator)

  2. == (equality operator)

  3. –> (row operator)

  4. :: (scope resolution operator)


Correct Option: D
  1. input type="submit" name="s1" value="press"/>

  2. none


Correct Option: C

  1. tag works in all browsers


  2. is recommended now.


  3. tag not supported for IE, Mazola etc. works in all browsers


  4. is more will outdated


Correct Option: A,B
  1. .

    Welcome to r4r

  2. .

    Welcome to r4r

  3. .

    Welcome to r4r

  4. .

    Welcome to r4r


Correct Option: B,D
  1. HTML allow images and objects to be embedded on web page to create interactive forms by using some script

  2. .HTML allow images and objects to be embedded on web page to create interactive forms by using tags.

  3. Both of the above

  4. None


Correct Option: B

The file attribute is used when we have to include the within same directory. When we have in different directory then we use attribute in server side include tag?

  1. True

  2. False


Correct Option: A