logo

CuriousTab

CuriousTab

Discussion


Home Certification Microsoft Certification See What Others Are Saying!
  • Question
  • You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application connects to a Microsoft SQL Server database. The application has two DataTable objects that reference the Customers and Orders tables in the database. The application contains the following code segment. (Line numbers are included for reference only.) 01DataSet customerOrders = new DataSet(); 02customerOrders.EnforceConstraints = true; 03ForeignKeyConstraint ordersFK = new ForeignKeyConstraint("ordersFK", 04customerOrders.Tables["Customers"].Columns["CustomerID"], 05customerOrders.Tables["Orders"].Columns["CustomerID"]); 06 07customerOrders.Tables["Orders"].Constraints.Add(ordersFK); You need to ensure that an exception is thrown when you attempt to delete Customer records that have related Order records. Which code segment should you insert at line 06?


  • Options
  • A. ordersFK.DeleteRule = Rule.SetNull;
  • B. ordersFK.DeleteRule = Rule.None;
  • C. ordersFK.DeleteRule = Rule.SetDefault;
  • D. ordersFK.DeleteRule = Rule.Cascade;

  • Correct Answer
  • ordersFK.DeleteRule = Rule.None; 


  • More questions

    • 1. If you wanted administrators to see a message when logging into the router, which command would you use?

    • Options
    • A. message banner motd
    • B. banner message motd
    • C. banner motd
    • D. message motd
    • Discuss
    • 2. At which layer of the OSI model would you assume the problem is if you type show interface serial 1 and receive the following message? Serial 1 is down, line protocol is down

    • Options
    • A. Physical layer
    • B. Data Link layer
    • C. Network layer
    • D. None
    • Discuss
    • 3. Which commands loads a new version of the Cisco IOS into a router?

    • Options
    • A. copy flash ftp
    • B. copy ftp flash
    • C. copy flash tftp
    • D. copy tftp flash
    • Discuss
    • 4. What is the command to copy a Cisco IOS to a TFTP server?
    • Discuss
    • 5. When a PC sends a packet to another PC in a remote network, what destination IP address and MAC address will be in the frame that it sends to its default gateway?
    • Discuss
    • 6. What is the administrative distance of OSPF?

    • Options
    • A. 90
    • B. 100
    • C. 110
    • D. 120
    • Discuss
    • 7. With which network type will OSPF establish router adjacencies but not perform the DR/BDR election process?

    • Options
    • A. Point-to-Point
    • B. Backbone area 0
    • C. Broadcast multi-access
    • D. Non-broadcast multi-access
    • Discuss
    • 8. A network administrator needs to configure a router with a distance-vector protocol that allows classless routing. Which of the following satisfies those requirements?

    • Options
    • A. IGRP
    • B. OSPF
    • C. RIPv1
    • D. EIGRP
    • Discuss
    • 9. You get a call from a network administrator who tells you that he typed the following into his router: Router (config) #router ospf 1 Router (config-router) # network 10.0.0.0. 255. 0.0.0 area 0 He tells you he still can't see any routes in the routing table. What configuration error did the administrator make?

    • Options
    • A. The wildcard mask is incorrect
    • B. The OSPF area is wrong
    • C. The OSPF Process ID is incorrect.
    • D. The AS configuration is wrong
    • Discuss
    • 10. Which proprietary Cisco STP extensions would put a switch port into err-disabled if a BPDU is received on this port?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment