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.
Questions
Which version of the .NET Framework introduced WPF?
- 1.1
- 2.0
- 3.0
- 3.5
- 4.0
How can a class be both abstract and sealed?
- The class has no public constructors.
- The class is static.
- The class implements more than one interface.
- The class is generic.
- This scenario is impossible.
Which of the following technologies does NOT support some form of declarative data binding?
- WPF
- Windows Forms
- ASP.NET
- XAML
- Silverlight
True or False: It is impossible to access a MySQL database using C# code.
- True
- False
Which of the following is not a real namespace in the .NET Framework?
- System
- System.Windows
- System.Windows.Presentation
- System.Windows.Media
- System.Windows.Zaml
How do you get help about the command "cp"?
- help cp
- man cp
- cp ?
- ? cp
How do you list all the files that are in the current directory?
- list all
- ls -full
- ls -a
- ls -all
How do you rename file "new" in file "old"?
- mv new old
- cp new old
- rn new old
- rename new old
How do you visualize the content of file "not_empty"?
- type not_empty
- cat not_empty
- more not_empty
- view not_empty
How do you create a new directory called "flower"?
- newdir flower
- mkdir flower
- crdir flower
- create flower
The following statement is valid. double price = 7,450.98
- True
- False
Which of the following are storage qualifiers in C++ ?
- const
- volatile
- mutable
- All the Above
- None of the Above
Which of the following exists in C++?
- virtual destructor
- virtual constructor
- Both A and B
- None of the Above
A template can be instantiated by
- Explicit Instantiation
- Implicit instantiation
- Both A and B
- None of the Above
The member functions of a class can be defined outside the class using
- Extraction Operator
- Insertion Operator
- Scope resolution operator
- None of the Above
The output of operation 20%3 is
- 6
- 2
- 1
- 4
Using pointers to call a function is called as
- call by value
- call by reference
- call by address
- All the Above
What will be output if you will Execute following code?
- 65
- -65
- 97
- -97
- CompilationError
Which of the following can be used to initialize a newly declared variable from an existing variable?
- Virtual Function
- Namespaces
- copy constructor
- None of the Above
The inserting of the code of a called function at the point where the function gets called is achieved by using
- Inline functions
- virtual functions
- Both A and B
- None of the Above