0
Alien head

programming languages Online Quiz - 38

Description: programming languages Online Quiz - 38
Number of Questions: 20
Created by:
Tags: programming languages

The inserting of the code of a called function at the point where the function gets called is achieved by using

  1. Inline functions

  2. virtual functions

  3. Both A and B

  4. None of the Above

Answer: 1

Which of the following can be used to initialize a newly declared variable from an existing variable?

  1. Virtual Function

  2. Namespaces

  3. copy constructor

  4. None of the Above

Answer: 3

What will be output if you will Execute following code?

  1. 65

  2. -65

  3. 97

  4. -97

  5. CompilationError

Answer: 4

Using pointers to call a function is called as

  1. call by value

  2. call by reference

  3. call by address

  4. All the Above

Answer: 2

The output of operation 20%3 is

  1. 6

  2. 2

  3. 1

  4. 4

Answer: 2

The member functions of a class can be defined outside the class using

  1. Extraction Operator

  2. Insertion Operator

  3. Scope resolution operator

  4. None of the Above

Answer: 3

A template can be instantiated by

  1. Explicit Instantiation

  2. Implicit instantiation

  3. Both A and B

  4. None of the Above

Answer: 3

Which of the following exists in C++?

  1. virtual destructor

  2. virtual constructor

  3. Both A and B

  4. None of the Above

Answer: 1

Which of the following are storage qualifiers in C++ ?

  1. const

  2. volatile

  3. mutable

  4. All the Above

  5. None of the Above

Answer: 4

The following statement is valid. double price = 7,450.98

  1. True

  2. False

Answer: 2

How do you create a new directory called "flower"?

  1. newdir flower

  2. mkdir flower

  3. crdir flower

  4. create flower

Answer: 2

How do you visualize the content of file "not_empty"?

  1. type not_empty

  2. cat not_empty

  3. more not_empty

  4. view not_empty

Answer: 2

How do you rename file "new" in file "old"?

  1. mv new old

  2. cp new old

  3. rn new old

  4. rename new old

Answer: 1

How do you list all the files that are in the current directory?

  1. list all

  2. ls -full

  3. ls -a

  4. ls -all

Answer: 3

How do you get help about the command "cp"?

  1. help cp

  2. man cp

  3. cp ?

  4. ? cp

Answer: 2

Which of the following is not a real namespace in the .NET Framework?

  1. System

  2. System.Windows

  3. System.Windows.Presentation

  4. System.Windows.Media

  5. System.Windows.Zaml

Answer: 5

True or False: It is impossible to access a MySQL database using C# code.

  1. True

  2. False

Answer: 2

Which of the following technologies does NOT support some form of declarative data binding?

  1. WPF

  2. Windows Forms

  3. ASP.NET

  4. XAML

  5. Silverlight

Answer: 2

How can a class be both abstract and sealed?

  1. The class has no public constructors.

  2. The class is static.

  3. The class implements more than one interface.

  4. The class is generic.

  5. This scenario is impossible.

Answer: 2

Which version of the .NET Framework introduced WPF?

  1. 1.1

  2. 2.0

  3. 3.0

  4. 3.5

  5. 4.0

Answer: 3
+ View questions