Programming Languages and Concepts Quiz
Test your knowledge of programming concepts across multiple languages including C++, Java, SAS, COBOL, and BASIC. Covers OOP principles, language-specific features, and programming language fundamentals.
Questions
The file extension associated with Websrvice pages in Asp.net is _____.
- .aspx
- .ascx
- .asmx
- .ashx
A factor in selection of source language is
- Programme Skill
- Language Availability
- Programme capability with other software.
- All of the above
What is the name given to first generation computer language.
- Binary Language
- Machine Language
- Primary Language
- Assembly Language
Which are not provided in C
- Test and Loops
- Grouping and Subprograms
- Synchronization and parallel operations
- All of the above
Which is usually implemented with an interpreters
- Assembly
- PASCAL
- COBOL
- BASIC
COBOL was designed for
- Business
- Scientific
- Simulation
- All of the above
What does PROC APPEND do?
- appends records anywhere in base dataset
- appends records at the start of the base dataset
- appends records at the start from the base dataset
- appends records at the end of base dataset
Why might you use PROC CONTENTS?
- Describes the structure of the data set
- To find variable datatypes
- To find unique values
- To find total number of obeservations
Name 3 main report generating Procedures in Base SAS
- proc Report
- proc Display
- proc GPLOT
- proc Print
- proc Forms
public class test { public static void main(String [] args) { int x = 5; test t = new test(); t.doStuff(x); System.out.print("main x = " + x); } void doStuff(int x) { System.out.print("doStuff x = " + x++); } } What is the result?
- doStuff x = 6 main x = 6
- doStuff x = 5 main x = 6
- doStuff x = 5 main x = 5
- Compilation fails
public static void main(String[] args) { String str = "null"; if (str == null) { System.out.println("null"); } else (str.length() == 0) { System.out.println("zero"); } else { System.out.println("some"); } } What is the result?
- null
- zero
- some
- Compilation fails
public static void main(String [] args) { int x = 5; boolean b1 = true; boolean b2 = false; if ((x == 4) && !b2 ) System.out.print("1"); System.out.print("2"); if ((b2 = true) && b1 ) System.out.print("3"); } } What is the result?
- 2
- 2 3
- 1 2 3
- Compilation fails
Choose the correct statement:
- A final method in class X can be abstract if and only if X is abstract.
- A private static method can be called only within other static methods in class X.
- A protected method in class X can be overridden by any subclass of X.
- A non-static public final method in class X can be overridden in any subclass of X.
The idea of hiding data that are not needed for presentation is
- Encapuslation
- Abstraction
- Information Hiding
- Polymorphism
During Compilation, The function call is replaced by function code for which function?
- Virtual functions
- Inline functions
- Static functions
- Friend functions
__________ pointer is a type of pointer of any data type and generally takes a value as zero
- Vptr
- Void
- Null
- Zero
Types of Storage Class Variables
- Automatic
- Global
- Static
- External
A __________function is used for accessing the non-public members of a class.
- Static
- Virtual
- Void
- Friend
The static member functions have a class scope and they have access to the 'this' pointer of the class.
- True
- False
Types of Polymorphism
- Operator overloading
- Virtual functions
- Virtual base class
- Function overloading