Multi-Language Programming Fundamentals Quiz
Test your knowledge of fundamental programming concepts across C#, Java, JavaScript, and C++ including value types, OOP principles, and language-specific syntax.
Questions
Methods that work on the data are called accessor methods.
- True
- False
Methods that work on the data are called accessor methods.
- True
- False
- JavaScript can only run on Windows
- True
- False
Which of the following is NOT a value type?
- Struct
- Delegate
- string
- Enumeration
Which of the following are true about Constructors?
- Member Function
- Same name as Class name
- Default constructor initializes all non-initialized fields and variables to zero.
- Compiler adds an empty constructor, if we do not write our own constructor
Which is true about applet?
- Applet version has main method
- GUI components are added explicitly to the Applet
- Aplet class is declared private
- None of the above
JFC Stands for
- Java Foundation Course
- Java Fundamental Classes
- Java Foundation Classes
- None of the above
Java APIs are libraries of compiled code?
- True
- False
Which of the following is NOT a value type?
- Struct
- Delegate
- string
- Enumeration
A boolean in C# is
- BOOL
- bool
- Boolean
- boolean
True or False. Is Foo.Print() a valid statement? Given a class Foo and it has a function public void Print (); Foo f = new Foo (); Foo.Print ();
- True
- False
True or False. Like in C++, using exception does carry some performance penalty
- True
- False
Which of the following is jagged array creation?
- string [,,] aMatrix;
- string [][][] aMatrix;
- int [][]aInt= new int[3][];
- None of the above.
- JavaScript is ...
- same as Java
- kind of like Java
- different than Java
- written part of Java
- JavaScript is ...
- subjective
- objective
- evil
- object based
- To comment out a line in JavaScript ...
- Precede it with two forward slashes, i.e. '//'
- Precede it with an asterisk and a forward slash, i.e. '*/'
- Precede it with an asterisk, i.e. '*'
- Precede it with a forward slash and an asterisk, i.e. '/*'
Methods that work on the data are called accessor methods.
- True
- False
Methods that work on the data are called accessor methods.
- True
- False
- JavaScript can only run on Windows
- True
- False
Which of the following is NOT a value type?
- Struct
- Delegate
- string
- Enumeration