Output should be like press any following key enter

This preview shows page 3 - 6 out of 6 pages.

Output should be like: Press any following key Enter Total Students : 2 Enter Student Name : Lakhtey Enter English Marks (Out Of 100) : 50 Enter Math Marks (Out Of 100) : 60 Enter Computer Marks (Out Of 100) : 30 ********************************************* Enter Student Name : Ali Asad Enter English Marks (Out Of 100) : 60 Enter Math Marks (Out Of 100) : 70 Enter Computer Marks (Out Of 100) : 30 ****************Report Card******************* **************************************** Student Name: Ali Asad, Position: 1, Total: 160/300 **************************************** Student Name: Lakhtey, Position: 2, Total: 140/300 ****************************************
Image of page 3

Subscribe to view the full document.

Practice Practice Exam Questions Question 1 Which of the following methods help us to convert string type data into integers? Select any two. A) Convert.toInt32(); B) Convert.Int32(); C) int.parse(); D) parse.int(); Question 2 Suppose you’re implementing a method name “Show” that will be able to take an unlimited number of int arguments. How are you going to define its method signature? A) void Show(int[] arg) B) void Show(params int[] arg) C) void Show(int a) D) void Show(ref int a)
Image of page 4
Practice Question 3 You’re developing an application that saves user’s information. The application includes the following code segment (line numbers included for reference). 01 public bool IsNull(string name) 02 { 03 return true; 04 } You need to evaluate whether a name is null. Which code segment should you insert at line 03 A) if (name = null) { return true; } B) if (name == null) { return true; } C) if (null) { return true; } D) if (!name) { return true; }
Image of page 5

Subscribe to view the full document.

Practice Question 4 You need to use null- coalescing operator to make sure “name” variable must have a value not null. Select the right way to use null-coalescing operator in C#. A) string name = n ?? “No Name”; B) string name = “No Name” ?? null; C) string name = “No Name” ? null; D) string name = null ? “No Name”; Question 5 Which jump statement will you use to start the next iteration while skipping the current iteration of loop? A) Break B) Continue C) Goto D) Return
Image of page 6
  • Spring '16
  • Antin
  • ASCII, Ali Asad

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern