Fundamentals of Programming Languages
This test consists of questions related to computer science background like the topics of computer languages, database, data structures etc.
Questions
Which of the following is/are the true statement(s) in java?
- Final methods are faster than non-final methods.
- Integer class is final in java.
- Final classes are used for the security reasons.
- All of the above
- Only (1) and (2)
Which of the following is not true about memory management function in C language?
- The malloc() function takes a single argument.
- The calloc() function takes two arguments.
- The calloc() function initialises memory to the allocated memory blocks but malloc() does not initialise the memory to the allocated blocks.
- The realloc() function can increase or decrease the size of the allocated memory.
- None of the above
Which of the following is not a true statement?
- We can overload the main method in java.
- We can override the static method in java.
- Constructors can be overloaded in java.
- The return type is same in method overriding.
- None of the above
Which of the following statements is/are false in SQL (Structured Query Language)?
- The order by clause removes duplicates.
- Distinct clause is used to remove duplicate records.
- Unique key has only one null value.
- A primary key does not allow any null value.
- None of the above
Which of the following is false about abstract class in java?
- We cannot create the objects of the abstract class.
- Abstract class can have final methods.
- A static method cannot be abstract.
- Abstract class can have concrete methods.
- None of the above
Which of the following is/are true statement(s)?
- A foreign key in one table is the primary key in the other table.
- A foreign key can allow null values but not a primary key.
- A table can have more than one unique key.
- Foreign key is also called a referencing key.
- All of the above
Which of the following is a false statement?
- There is no repeating group possible in the first normal form.
- There is no partial dependency in the second normal form.
- In BCNF (Boyce Codd Normal Form), every determent should be a candidate key.
- None of the above
- Both (2) and (3)
Which of the following methods in jquery inserts the content at the beginning of the html elements?
- append()
- prepend()
- before()
- after()
- none of the above
Which of the following statements is/are true about fourth normal form in database?
- A fourth normal should be in 3rd normal form.
- There should not be a set of multivalued dependency in fourth normal form.
- The transitional functional dependency should be removed from the table in the fourth normal form.
- All of the above
- Only (1) and (2)
Which of the following is not a keyword in C language?
- Signed
- Sizeof
- Volatile
- Enum
- All of the above are the C keywords
Which of the following is/are the valid array initialization(s) in php language?
- $fruit= array(Apple, Mango, Banana);
- var fruit=new array(Apple, Mango, Banana);
- $rate=array(Apple=>50,Mango=>20,Banana=>40);
- $fruit=array ( array(Apple,50,60), array(Mango,20,25), array(Banana,40,45) );
- (1), (3), and (4) are valid.
What is the role of toggle() function in Jquery?
- It is used to show and hidden the elements in the webpage.
- It is used to show the elements in the web page.
- It is used to hide the elements in the web page.
- It is used to show the animation effect in jquery.
- None of the above
Which of the following event methods in javascript is the combination of the two functions?
- blur()
- hover()
- dblclick()
- focus()
- none of the above
What does fadeTo() method in jquery?
- This method is used to stop the animation effect.
- This method is used to hide the html element.
- This method is used to show the html element.
- This method uses a speed parameter to show the duration of effect with the given parameters.
- None of the above
Which of the following parts in the MVC (Model View Controller) framework handles user's interaction?
- View
- Controller
- Model
- There is no user interaction is possible in MVC framework
- None of the above
Which of the following is/are true statement(s) about the web application and the windows application?
- Windows applications are also called desktop applications.
- Windows application do not have validation controls.
- Web services are the examples of web application.
- All of the above
- Only (1) and (3)
What does CLR (Common Language Runtime) provide in .Net framework?
- Memory management
- Security
- Exception handling
- Garbage collection
- All of the above
Which of the following is not a component of assembly in .net framework?
- Resources
- Type metadata
- Assembly manifest
- MSIL source code
- None of the above
Which of the following applications can be deployed in .net framework?
- Console applications
- Windows services
- Windows Presentation foundation (WPF) applications
- All of the above
- Only (1) and (3)
Which of the following does not determine the assembly's identity in assembly manifest?
- Version number
- Assembly name
- Strong name information
- Culture
- Type reference information.
Which of the following is an example of network data model in database?
- Tree
- Graph
- Array
- Both (1) and (2)
- None of the above
Which of the following is not an application of stack data structure?
- Reverse a word
- Backtracking
- Undo task in text
- Conversion of decimal to binary
- None of the above
Which of the following is/are the true statement(s)?
- Union clause is used to eliminate the duplicate rows from the result set.
- Union all clause shows the duplicacy in the result set.
- In self join, we can join a table to itself.
- Group by clause can be used to group the result of one or more tables.
- All of the above
Which of the following is a true statement?
- Specialisation determines the top-down approach in the database.
- Generalisation defines the bottom-up approach in the database.
- In the network model if the database, there may be multiple paths possible to communicate the entities.
- All of the above
- Only (1) and (3)
Which of the following is not a true statement?
- A queue is defined as an ordered list.
- A queue can be implemented by the array.
- The element is deleted from the from end of the queue.
- A queue is a FIFO (First In First Out Data Structure).
- None of the above