• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 118 pages
Exam (elaborations)

Prn292 Exam Study Guide Set With Complete Solution

Document preview thumbnail
Preview 4 out of 118 pages

PRN292 EXAM STUDY GUIDE SET WITH COMPLETE SOLUTION ...

Content preview

PRN292 EXAM STUDY GUIDE
SET WITH COMPLETE
SOLUTION
1. Unlike const however, read-only fields are NOT______

A. explicitly internal

B. explicitly static

C. implicitly static

D. implicitly internal - Answer C

2. What can be signature of an application's entry point?

A. public static void Main(string s){}

B. public static void main() {}

C. public static void Main() {}

D. public static void Main(int n) {} - Answer C

3. Web service technology is based on?

A. SOAP and TCP/IP

B. TCP/IP and UDP

C. UDP and XML

D. XML and SOAP - Answer D

4. Which sentence is correct?

A. The method on which a delegate makes calls cannot have any arguments.

B. A delegate must define name of the method on which it makes calls.

C. The method on which a delegate makes calls cannot have return type. - Answer B

5. _______is .NET equivalent of Java Virtual Machine (JVM).

A. CLS

B. CTS

,C. CLR

D. Base Class Library - Answer C

6. What is output of the following code?

(see picture)

class Animal{

public void Display(){

System.Consoie.WriteLine("Display of Animal class");

}

class Mammal : Animal

{

public new void Display()

{

base.Display():

System.Consoie.WriteLine("Display of Mammal class");

}

static void Main(string[] args)

{

Mammai m1 = new Mammal();

m1.Display();

}

}



A. Display of Mammal class

B. Display of Animal class

C. Compile error

D. Display of Animal class

Display of Mammal class - Answer D

,7. The scope of a variable runs from the point of declaration to the end of the

A. method.

B. enclosing block.

C. application.

D. class. - Answer B

8. Which is the most suitable statement to fill the missing code (line 12), if you want to
build an in-house XML Web service?

//All necessary namspaces have already been used.

// Consider the following piece of code:

[WebService(Description = "The Calculator Web Service",

Name = "CalculatorWebService")]

//missing code // line 12

public class Service : System.Web.Services.Webservice

{

[WebMethod(Description = "Subtracts two integers.")]

public int Subtract(int x, int p] { return x - y;}

[WebMethod(Description = "Adds two float.", MessageName = "AddFloat")]

public float add(float x, float y) { return x + y;}

[WebMethod(Description = "Adds two integers.", MessageName = "AddInteger")]

public int add(int x, int y) { return x + y;}}

A. [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]

B. [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1,
EmitConformanceClaims = false)]

C. [WebServiceBinding(C - Answer D

9. Which sentence about the C# class types is correct?

A. C# classes can define some constructors.

B. C# classes can define any number of destructors.

C. C# classes can define only one constructor.

, D. C# classes do not support destructors. - Answer A

10. Which type is a handy programming construct that allows to group name/value
pairs?

A. Enumeration.

B. Class.

C. Delegate.

D. Interface. - Answer A

11. What is output of the following code?

using System;

class Program

{

delegate void Display();

static void Main()

{

Display d1 = new Display(DisplayHello);

d1();

}

static void DisplayHello()

{

Console.WriteLine("Hello");

}

}

A. Hello

B. Compile error at line: delegate void Display();

C. Compile error at line: d1();

D. Runtime error - Answer A

12. An assembly consists of Assembly Metadata, Type Metadata, ______and______

Document information

Uploaded on
December 5, 2024
Number of pages
118
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Zayla
3.2
(20)
Sold
163
Followers
13
Items
18588
Last sold
5 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions