Programming Fundamentals: C++, Unix, and .NET

A comprehensive quiz covering C++ programming concepts, Unix/Linux command line operations, and .NET Framework technologies including C# and WPF.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which version of the .NET Framework introduced WPF?

  1. 1.1
  2. 2.0
  3. 3.0
  4. 3.5
  5. 4.0
Question 2 Multiple Choice (Single Answer)

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.
Question 3 Multiple Choice (Single Answer)

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
Question 4 True/False

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

  1. True
  2. False
Question 5 Multiple Choice (Single Answer)

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
Question 6 Multiple Choice (Single Answer)

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

  1. help cp
  2. man cp
  3. cp ?
  4. ? cp
Question 7 Multiple Choice (Single Answer)

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
Question 8 Multiple Choice (Single Answer)

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
Question 9 Multiple Choice (Single Answer)

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
Question 10 Multiple Choice (Single Answer)

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

  1. newdir flower
  2. mkdir flower
  3. crdir flower
  4. create flower
Question 11 True/False

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

  1. True
  2. False
Question 12 Multiple Choice (Single Answer)

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

  1. const
  2. volatile
  3. mutable
  4. All the Above
  5. None of the Above
Question 13 Multiple Choice (Single Answer)

Which of the following exists in C++?

  1. virtual destructor
  2. virtual constructor
  3. Both A and B
  4. None of the Above
Question 14 Multiple Choice (Single Answer)

A template can be instantiated by

  1. Explicit Instantiation
  2. Implicit instantiation
  3. Both A and B
  4. None of the Above
Question 15 Multiple Choice (Single Answer)

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
Question 16 Multiple Choice (Single Answer)

The output of operation 20%3 is

  1. 6
  2. 2
  3. 1
  4. 4
Question 17 Multiple Choice (Multiple Answers)

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
Question 18 Multiple Choice (Single Answer)

What will be output if you will Execute following code?

  1. 65
  2. -65
  3. 97
  4. -97
  5. CompilationError
Question 19 Multiple Choice (Single Answer)

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
Question 20 Multiple Choice (Single Answer)

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