Basics of Computer Languages
This test consists of questions related to computer languages, database, data structures and operating system etc.
Questions
Which of the following is a true statement in java?
- Static block is always executed when the JVM loads the class in java.
- Static method can be synchronized in java.
- We can throw exception in a static block.
- All of the above are true.
- Only (1) and (3) are true.
Which of the following statement(s) is/are true in java?
- An interface can not have static method in java.
- We can declare abstract class without any abstract method in java.
- If we declare main method as private in java then the program will compile.
- All of the above.
- Only (1) and (3) are true.
Which of the following method of the HashMap returns the number of number of key-value mappings in the map?
- Set entrySet()
- Set keySet()
- int size()
- boolean isEmpty()
- None of the above
Which of the following constructor of the HashMap gives NullPointerException in the java collection framework?
- HashMap (Map m)
- HashMap (int initialCapacity)
- HashMap(int initialCapacity, float loadFactor)
- HashMap()
- None of the above
Which of the database schema represents the data as a set of relations?
- Physical data level
- External data level
- Conceptual data level
- Both (1) and (2)
- None of the above
What is the meaning of 'out' in System.out.println in java?
- It is a class in java.lang package.
- It is a static object of PrintStream class.
- It is a method in the PrintStream class.
- It is a reference variable of the System class.
- Both (2) and (4).
Which of the following command comes under the data manipulation language (DML) in database?
- Create
- Alter
- Delete
- Drop
- Grant
Which of the following class(es) belong to java.lang package?
- String
- Thread
- Throwable
- Math
- All of the above
What is the following determines the robustness of the java programming language?
- It determines that the java is error free language as it is strictly typed.
- It determines the multithreading support.
- It determines that java bytecode can run on any platform.
- It determines that java is widely distributed over internet.
- None of the above
Which of the following is not a feature of object oriented programming languages?
- There is mainly focus on the object.
- Code reusability.
- Data binding.
- Top down programming approach.
- None of the above
Which of the following is/are the true statement?
- A constructor has the same name as a class name.
- Destructors are used to release the resources.
- A constructor can be private in C++.
- All of the above.
- None of the above
Which of the following is the example of linear data structure?
- Tree
- Graph
- Linked list
- All of the above
- None of the above
Which of the following is/are the true statements?
- C++ supports null pointers.
- int *ptr[abs] is the example of array of pointer to an integer.
- In C++, we can pass pointer to a function.
- All of the above.
- Only (1) and (3) are true.
Which of the following is/are the use of database trigger in database?
- To replicate the data.
- To enforce business rules.
- To execute business rules
- All of the above.
- Only (1) and (2).
Which of the following is not true?
- Jquery uses the javascript library.
- Jquery supports ajax.
- By including jquery library files in to our project, it takes additional space on the server.
- Google map is the example of ajax.
- None of the above
Which of the property of the database transaction ensures the persistency of the database?
- Isolation
- Durability
- Atomicity
- Consistency
- None of the above
Which of the following is not a String function in C# language?
- IndexOf()
- ToLower()
- Contains()
- Trim()
- None of the above
Which of the following is/are the client side programming languages?
- ASP.Net
- JavaScript
- PHP
- Both (2) and (3)
- None of the above
Which of the following is an example of application software?
- Media player
- Accounting software
- Operating system
- Both (1) and (2)
- None of the above
Which of the following is/are the true statements(s)?
- Ajax uses javascript to communicate with the server.
- In ajax, we need not to wait the response of the server to load a particular part of the page.
- There is no server side request to handle in javascript.
- All of the above.
- Only (1) and (2).