0

programming languages Online Quiz - 241

Description: programming languages Online Quiz - 241
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

Which of the elements defined within the taglib element of taglib descriptor file are required. Select the two correct answers.

  1. name

  2. description

  3. validator

  4. tag-class

  5. display-name


Correct Option: A,D

How to send signals to other processes?

  1. Use sigsend()

  2. use kill()

  3. use signal()

  4. Only init can send signals


Correct Option: B

Linux supports multi-threading

  1. True

  2. False


Correct Option: B
  1. A dummy device to represent memory

  2. A dummy device to represent the processor

  3. A dummy device to provide infinite number of zeros

  4. None


Correct Option: C

What is /dev/full device in Linux?

  1. A device file to represent that the current file system is full

  2. A device file to test scenarios of testing a /dev/full

  3. Invalid device

  4. None


Correct Option: B
  1. A dummy device to represent swap

  2. A dummy device to represent any device

  3. A dummy device to provide infinite number of randon numbers

  4. Invalid device


Correct Option: C
  1. import java.awt.*;package Mypackage;class Myclass {}

  2. package MyPackage;import java.awt.*;class MyClass{}

  3. /This is a comment */package MyPackage;import java.awt.;class MyClass{}

  4. class Myclass {};import java.awt.*;package Mypackage;


Correct Option: B,C

Which of the following are legal identifiers.

  1. 2variable

  2. variable2

  3. _whatavariable

  4. 3

  5. $anothervar

  6. #myvar


Correct Option: B,C,D,E

What will happen if you try to compile and run the following code? public class Q { public static void main(String argv[]){ int anar[]=new int[]{1,2,3}; System.out.println(anar[1]); }}

  1. 1

  2. Error anar is referenced before it is initialized.

  3. 2

  4. Error: size of array must be defined.


Correct Option: C
  1. System.out.println( -1 >>> 2);will output a result larger than 10

  2. System.out.println( -1 >>> 2); will output a positive number

  3. System.out.println( 2 >> 1); will output the number 1

  4. System.out.println( 1 <<< 2); will output the number 4


Correct Option: A,B,C
  1. System.Collections.Generic

  2. System.Reflection

  3. Microsoft.Office.Interop

  4. None of the above


Correct Option: D
  1. It is possible for a single class to implement multiple interfaces

  2. It is possible for a class to inherit from multiple classes

  3. It is possible for a class to inherit from a Sealed class

  4. All of above


Correct Option: A
  1. To get information about event-handler

  2. To get or set property values

  3. Classes in other namespace can use reflection to access data and to determine which fields to persist

  4. None of the above


Correct Option: D
- Hide questions