312-92 Exam Details

  • Exam Code
    :312-92
  • Exam Name
    :EC-Council Certified Secure Programmer v2 (ECSP)
  • Certification
    :EC-COUNCIL Certifications
  • Vendor
    :EC-COUNCIL
  • Total Questions
    :99 Q&As
  • Last Updated
    :Jun 08, 2026

EC-COUNCIL 312-92 Online Questions & Answers

  • Question 1:

    In the following socket programming code, who will the server allow connections from?

    int main(void)

    {

    int s1, s2;

    s1 = socket(AF_INET, SOCK_STREAM, 0);

    sin.sin_port = htons(30);

    sin.sin_family = AF_INET;

    sin.sin_addr.s_addr = 0;

    bind(sockfd, (struct sockaddr *)andsin, sizeof(sin));

    listen(sockfd, 10);

    s2 = accept(sockfd, 10);

    write(s2, "hello\n", 6)

    }

    A. Only those coming in on TCP port 10
    B. Only those on the same subnet as the server
    C. Only those coming in on UDP port 10
    D. Anyone

  • Question 2:

    Heather has built a new Linux kernel for her machine and wants to use the grub boot loader. Which file should she edit to tell the computer how to boot up properly?

    A. /boot/grub/menu.lst
    B. /usr/src/linux/arch/i386/boot/menu.lst
    C. /etc/dev/boot/menu.lst
    D. /etc/boot/lilo.conf

  • Question 3:

    What type of authentication is used in the following Pocket SOAP code? Dim Envelope

    Dim HTTP

    Set Envelope = CreateObject("PocketSOAP.Envelope.2")

    Set HTTP = CreateObject("PocketSOAP.HTTPTransport.2)

    Envelope.SetMethod "GetSome", "http://www.mysite.org/message/"

    Emvelope.Parameters.Create "SomeParameter", "SomeValue"

    HTTP.SOAPAction = "http://www.mysite.org/action/Service.GetSome"

    HTTP.Authentication "Username", "Password"

    HTTP.Send http://www.mysite.org/webservice.WDSL",Envelope.Serialize

    Envelope.Parse HTTP

    MsgBox "Result: " and Envelope.Parameters.Item(0).Value

    A. Digest authentication
    B. SSL authentication
    C. Basic authentication
    D. Integrated authentication

  • Question 4:

    What security package is implemented with the following code?

    dwStatus = DsMakSpn

    (

    "ldap",

    "MyServer.Mydomain.com",

    NULL,

    0,

    NULL,

    andpcSpnLength,

    pszSpn

    );

    rpcStatus = RpcServerRegisterAuthInfo

    (

    psz

    RPC_C_AUTHN_GSS_NEGOTIATE,

    NULL,

    NULL

    );

    A. Diffie-Hellman encryption
    B. Repurposing
    C. SSPI
    D. SMDT

  • Question 5:

    Jonathan is creating an XML document and needs to sign data streams. In his code, Jonathan creates a signature node that is contained within the signed datastream. What type of signature signing has Jonathan employed here?

    A. Enveloping
    B. Attached
    C. Detached
    D. Enveloped

  • Question 6:

    Nathan, an application developer, has taken over the lead developer's position and now will administer five other developers. The last lead developer was a programmer specialized in Xcode. Nathan is not familiar with Xcode at all, but will have to learn it to develop programs for company. Nathan come across some code left by the past developer: set this_file to choose file with prompt "Scale your image to 25%" try tell application "Image Capture Scripting" set this_image to open this_file scale this_image by factor 0.35 save this_image in this_file close this_image end tell on error error_message beep buttons {"Process failed")default button1 end try

    A. Carbon
    B. AppleTalk
    C. AppleScript
    D. Cocoa

  • Question 7:

    Kevin is developing a webpage using html and javascript code. The webpage will have a lot of important content and will have a number of functions that Kevin does not want revealed through the source code. Why would Kevin choose to employ HTML Guardian to hide the source code of his webpage?

    A. HTML Guardian disables the "view source" option when users browse to the page
    B. HTML Guardian makes it so that nothing can be seen at all when viewing the source code
    C. HTML Guardian wraps the code up into include files
    D. HTML Guardian encrypts html and javascript code

  • Question 8:

    Lyle is writing some code in VB.NET and is implementing some build-in security. What type of .NET security is Lyle using in the following code?

    public class Myclass1

    Public Sub New()

    End Sub

    Public Sub MyMethods()

    Dim Perm As New MyPermission()

    Perm.Demand()

    End Sub

    Pub Sub YourMethod()

    End Sub

    End Class

    A. Imperative security
    B. Explicit security
    C. Implicit security
    D. Declarative security

  • Question 9:

    Malory is creating a webpage in PHP where users will have to logon to gain access to certain areas of the site. Malory is concerned that malicious users might try to exploit her site, so she decides to use the following code to prevent some

    attacks.

    What is Malory trying to prevent here?

    $username = addslashes($_POST["username"]);

    $password = addslashes($_POST["password"]);

    A. SQL injection
    B. CSS attack
    C. Reflected mode XSS attack
    D. CSRF attack

  • Question 10:

    Wayne is a gaming software developer for a large video gaming company in Los Angeles. Wayne has just completed developing a new action/adventure game for the company that is to be released soon. To protect the company's copyright on the game, Wayne would like to incorporate a technology that will restrict the use of the digital files by controlling access, altering, sharing, copying, printing, and saving.

    What technology does Wayne want to use?

    A. ARM
    B. WRM
    C. DRM
    D. Diffusion

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only EC-COUNCIL exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 312-92 exam preparations and EC-COUNCIL certification application, do not hesitate to visit our Vcedump.com to find your solutions here.