0

programming languages Online Quiz - 94

Description: programming languages Online Quiz - 94
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. By reading context values from command prompt

  2. By hard coding the user credentials in Windows Service file

  3. both are correct

  4. both are incorrect


Correct Option: B
  1. Message Contract

  2. Exception Contract

  3. Fault COntract

  4. None of the above


Correct Option: C

Which of the following statements is incorrect for MVC

  1. MVC Framework and MVC Pattern are same

  2. in MVC the flow of execution is determined by controller

  3. Routing is used to redirect user to specific page

  4. Model corresponds Database, View corresponds User Interface and Controller handles


Correct Option: A
  1. By reading context values ( User Authentication Details) from command prompt

  2. By hard coding the user credentials in Windows Service file

  3. both are correct

  4. both are incorrect


Correct Option: C

Which contract is used in WCF Service for Exceptions

  1. Message Contract

  2. Exception Contract

  3. Fault COntract

  4. None of the above


Correct Option: C
  1. By using some user defined(Custom) Data Queue

  2. By using Microsoft Messaging Queue (MSMQ)

  3. Both of the above

  4. None of the above


Correct Option: B

Consider this as a part of a code which has no compilation errors or runtime exceptions 21.Integer i1=1000; 22.Integer i2=1000; 23.System.out.println(i1==i2); what is the output?

  1. true

  2. false

  3. compilation fails at line 21

  4. compilation fails at line 22


Correct Option: B

class A { public static void main(String args[]) { System.out.println(args.length); } } what is the output if the code is run using command line invocation java A

  1. NullPointerException

  2. Compilation fails

  3. 0

  4. 1


Correct Option: C
  1. NullPointerException

  2. NumberFormatException

  3. ExceptionInInitializerError

  4. IllegalArgumentException


Correct Option: A,C
  1. A class can extend multiple classes

  2. An interface can extend multiple classes

  3. An interface can implement multiple interfaces

  4. A class can extend multiple interfaces

  5. A class can implement multiple interfaces

  6. An interface can extend multiple interfaces


Correct Option: E,F
  1. abstract final

  2. abstract static

  3. static final

  4. private abstract


Correct Option: C
  1. File owner and File type

  2. File access permission and File access tie

  3. Number of Links, File size and Location of the file data

  4. All of the above


Correct Option: D
  1. Command will be executed on every Sunday in 06:10 in September

  2. Command will be executed on every Saturday at 10:06 in August

  3. Command will be executed on every Sunday at 10:06 in September

  4. Command will be executed on every Saturday at 6:10 in August


Correct Option: D
  1. To increase/decrease the data segment size of a process

  2. To create a new process

  3. To bias the existing priority of a process

  4. To get parent process identifier


Correct Option: B
- Hide questions