0
Alien head

programming languages Online Quiz - 111

Description: programming languages Online Quiz - 111
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

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

Choose true option :

  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

Choose correct syntax as per w3c standard:

  1. .

    Welcome to r4r

  2. .

    Welcome to r4r

  3. .

    Welcome to r4r

  4. .

    Welcome to r4r


Correct Option: B,D

We have following break line tag is used in all browser


  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

Choose correct syntax for making a submit button:

  1. input type="submit" name="s1" value="press"/>

  2. none


Correct Option: C

Choose correct syntax used for external CSS

  1. .

  2. .

  3. Both

  4. None


Correct Option: B

Which of the following operator cannot be overloaded?

  1. = (assignment operator)

  2. == (equality operator)

  3. –> (row operator)

  4. :: (scope resolution operator)


Correct Option: D

What is the implicit pointer that is passed as the first argument for nonstatic member functions?

  1. ‘self’ pointer

  2. std::auto_ptr pointer

  3. ‘Myself’ pointer

  4. ‘this’ pointer


Correct Option: D

Which of the following is the most common way of implementing C++?

  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

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

If X is the name of the class, what is the correct way to declare copy constructor of X?

  1. X(X arg)

  2. X(X* arg)

  3. X(const X* arg)

  4. X(const X& arg)


Correct Option: D

Which of the following language feature is not an access specifier in C++?

  1. Public

  2. Private

  3. Protected

  4. Internal


Correct Option: D

Which of the following language is not supported by C++?

  1. Exception Handling

  2. Reflection

  3. Operator Overloading

  4. Namespaces


Correct Option: B

Which of the following keyword supports dynamic method resolution?

  1. Abstract

  2. Virtual

  3. Dynamic

  4. Typeid


Correct Option: B

Which of the following correctly describes C++ language?

  1. Statically typed language

  2. Dynamically typed language

  3. Both Statically and dynamically typed language

  4. Type-less language


Correct Option: A

Which of the following languages is a subset of C++ language?

  1. C language

  2. Java Language

  3. C# language

  4. B language


Correct Option: A

main() { int a=0; if(a==0) printf(“Cisco Systemsn”); printf(“Cisco Systemsn”); }

  1. Two lines with “Cisco Systems” will be printed.

  2. Compile error

  3. run time error

  4. Cisco Systemsn


Correct Option: A

main() { int x=10, y=15; x = x++; y = ++y; printf(“%d %dn”,x,y); }

  1. 10,16

  2. 11,15

  3. 10,15

  4. 11,16


Correct Option: D

#define TRUE 0 // some code while(TRUE) { // some code }

  1. infinite loop

  2. Error

  3. This will not go into the loop as TRUE is defined as 0.

  4. 0


Correct Option: C

main() { char s1[]=“Cisco”; char s2[]= “systems”; printf(“%s”,s1); }

  1. systems

  2. Cisco

  3. Null

  4. error


Correct Option: B
+ View questions