0

programming languages Online Quiz - 38

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

Which version of the .NET Framework introduced WPF?

  1. 1.1

  2. 2.0

  3. 3.0

  4. 3.5

  5. 4.0


Correct Option: C

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.


Correct Option: B

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

  1. True

  2. False


Correct Option: B
  1. System

  2. System.Windows

  3. System.Windows.Presentation

  4. System.Windows.Media

  5. System.Windows.Zaml


Correct Option: E

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

  1. help cp

  2. man cp

  3. cp ?

  4. ? cp


Correct Option: B

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


Correct Option: C

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


Correct Option: A
  1. type not_empty

  2. cat not_empty

  3. more not_empty

  4. view not_empty


Correct Option: B

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

  1. newdir flower

  2. mkdir flower

  3. crdir flower

  4. create flower


Correct Option: B

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

  1. const

  2. volatile

  3. mutable

  4. All the Above

  5. None of the Above


Correct Option: D

Which of the following exists in C++?

  1. virtual destructor

  2. virtual constructor

  3. Both A and B

  4. None of the Above


Correct Option: A

A template can be instantiated by

  1. Explicit Instantiation

  2. Implicit instantiation

  3. Both A and B

  4. None of the Above


Correct Option: C

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


Correct Option: C

The output of operation 20%3 is

  1. 6

  2. 2

  3. 1

  4. 4


Correct Option: B
  1. call by value

  2. call by reference

  3. call by address

  4. All the Above


Correct Option: B

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


Correct Option: C

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


Correct Option: A
- Hide questions