Fundamentals of Programming Languages

This test consists of questions related to computer science background like the topics of computer languages, database, data structures etc.

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is/are the true statement(s) in java?

  1. Final methods are faster than non-final methods.
  2. Integer class is final in java.
  3. Final classes are used for the security reasons.
  4. All of the above
  5. Only (1) and (2)
Question 2 Multiple Choice (Single Answer)

Which of the following is not true about memory management function in C language?

  1. The malloc() function takes a single argument.
  2. The calloc() function takes two arguments.
  3. The calloc() function initialises memory to the allocated memory blocks but malloc() does not initialise the memory to the allocated blocks.
  4. The realloc() function can increase or decrease the size of the allocated memory.
  5. None of the above
Question 3 Multiple Choice (Single Answer)

Which of the following is not a true statement?

  1. We can overload the main method in java.
  2. We can override the static method in java.
  3. Constructors can be overloaded in java.
  4. The return type is same in method overriding.
  5. None of the above
Question 4 Multiple Choice (Single Answer)

Which of the following statements is/are false in SQL (Structured Query Language)?

  1. The order by clause removes duplicates.
  2. Distinct clause is used to remove duplicate records.
  3. Unique key has only one null value.
  4. A primary key does not allow any null value.
  5. None of the above
Question 5 Multiple Choice (Single Answer)

Which of the following is false about abstract class in java?

  1. We cannot create the objects of the abstract class.
  2. Abstract class can have final methods.
  3. A static method cannot be abstract.
  4. Abstract class can have concrete methods.
  5. None of the above
Question 6 Multiple Choice (Single Answer)

Which of the following is/are true statement(s)?

  1. A foreign key in one table is the primary key in the other table.
  2. A foreign key can allow null values but not a primary key.
  3. A table can have more than one unique key.
  4. Foreign key is also called a referencing key.
  5. All of the above
Question 7 Multiple Choice (Single Answer)

Which of the following is a false statement?

  1. There is no repeating group possible in the first normal form.
  2. There is no partial dependency in the second normal form.
  3. In BCNF (Boyce Codd Normal Form), every determent should be a candidate key.
  4. None of the above
  5. Both (2) and (3)
Question 8 Multiple Choice (Single Answer)

Which of the following methods in jquery inserts the content at the beginning of the html elements?

  1. append()
  2. prepend()
  3. before()
  4. after()
  5. none of the above
Question 9 Multiple Choice (Single Answer)

Which of the following statements is/are true about fourth normal form in database?

  1. A fourth normal should be in 3rd normal form.
  2. There should not be a set of multivalued dependency in fourth normal form.
  3. The transitional functional dependency should be removed from the table in the fourth normal form.
  4. All of the above
  5. Only (1) and (2)
Question 10 Multiple Choice (Single Answer)

Which of the following is not a keyword in C language?

  1. Signed
  2. Sizeof
  3. Volatile
  4. Enum
  5. All of the above are the C keywords
Question 11 Multiple Choice (Single Answer)

Which of the following is/are the valid array initialization(s) in php language?

  1. $fruit= array(Apple, Mango, Banana);
  2. var fruit=new array(Apple, Mango, Banana);
  3. $rate=array(Apple=>50,Mango=>20,Banana=>40);
  4. $fruit=array ( array(Apple,50,60), array(Mango,20,25), array(Banana,40,45) );
  5. (1), (3), and (4) are valid.
Question 12 Multiple Choice (Single Answer)

What is the role of toggle() function in Jquery?

  1. It is used to show and hidden the elements in the webpage.
  2. It is used to show the elements in the web page.
  3. It is used to hide the elements in the web page.
  4. It is used to show the animation effect in jquery.
  5. None of the above
Question 13 Multiple Choice (Single Answer)

Which of the following event methods in javascript is the combination of the two functions?

  1. blur()
  2. hover()
  3. dblclick()
  4. focus()
  5. none of the above
Question 14 Multiple Choice (Single Answer)

What does fadeTo() method in jquery?

  1. This method is used to stop the animation effect.
  2. This method is used to hide the html element.
  3. This method is used to show the html element.
  4. This method uses a speed parameter to show the duration of effect with the given parameters.
  5. None of the above
Question 15 Multiple Choice (Single Answer)

Which of the following parts in the MVC (Model View Controller) framework handles user's interaction?

  1. View
  2. Controller
  3. Model
  4. There is no user interaction is possible in MVC framework
  5. None of the above
Question 16 Multiple Choice (Single Answer)

Which of the following is/are true statement(s) about the web application and the windows application?

  1. Windows applications are also called desktop applications.
  2. Windows application do not have validation controls.
  3. Web services are the examples of web application.
  4. All of the above
  5. Only (1) and (3)
Question 17 Multiple Choice (Single Answer)

What does CLR (Common Language Runtime) provide in .Net framework?

  1. Memory management
  2. Security
  3. Exception handling
  4. Garbage collection
  5. All of the above
Question 18 Multiple Choice (Single Answer)

Which of the following is not a component of assembly in .net framework?

  1. Resources
  2. Type metadata
  3. Assembly manifest
  4. MSIL source code
  5. None of the above
Question 19 Multiple Choice (Single Answer)

Which of the following applications can be deployed in .net framework?

  1. Console applications
  2. Windows services
  3. Windows Presentation foundation (WPF) applications
  4. All of the above
  5. Only (1) and (3)
Question 20 Multiple Choice (Single Answer)

Which of the following does not determine the assembly's identity in assembly manifest?

  1. Version number
  2. Assembly name
  3. Strong name information
  4. Culture
  5. Type reference information.
Question 21 Multiple Choice (Single Answer)

Which of the following is an example of network data model in database?

  1. Tree
  2. Graph
  3. Array
  4. Both (1) and (2)
  5. None of the above
Question 22 Multiple Choice (Single Answer)

Which of the following is not an application of stack data structure?

  1. Reverse a word
  2. Backtracking
  3. Undo task in text
  4. Conversion of decimal to binary
  5. None of the above
Question 23 Multiple Choice (Single Answer)

Which of the following is/are the true statement(s)?

  1. Union clause is used to eliminate the duplicate rows from the result set.
  2. Union all clause shows the duplicacy in the result set.
  3. In self join, we can join a table to itself.
  4. Group by clause can be used to group the result of one or more tables.
  5. All of the above
Question 24 Multiple Choice (Single Answer)

Which of the following is a true statement?

  1. Specialisation determines the top-down approach in the database.
  2. Generalisation defines the bottom-up approach in the database.
  3. In the network model if the database, there may be multiple paths possible to communicate the entities.
  4. All of the above
  5. Only (1) and (3)
Question 25 Multiple Choice (Single Answer)

Which of the following is not a true statement?

  1. A queue is defined as an ordered list.
  2. A queue can be implemented by the array.
  3. The element is deleted from the from end of the queue.
  4. A queue is a FIFO (First In First Out Data Structure).
  5. None of the above