.
  Vyom World.com . Let's Touch the Sky Together!  
.

Home
VyomWorld.com Home
Interview Questions
VyomLinks.com Home
JobsAssist.com Home
Vyom Network
Contact Us
Jobs & Careers
Resume Submitter
Placement Papers
IT Companies Directory
Computer Jobs
Interview Questions
Online Exams
Vyom Career eMag.
Fun
Send FREE SMS!
SMS Jokes
Source Codes Library
Source Codes Home
ASP Source Codes
C Source Codes
C++ Source Codes
COBOL Source Codes
Java Source Codes
Pascal Source Codes
Submit Source Codes
GATE
GATE an Overview
GATE Preparation
Study Materal
GRE
GRE an Overview
GRE Questions
GRE Preparation
GRE Universities
TOEFL Preparation
TOEFL Resources
GMAT Preparation
GMAT Resources
MBA Preparation
MBA Resources
Networking Concepts
Networking Concepts
Testing Preparation
Testing Resources
Webmasters
Free Traffic Builder
Webmaster Articles
Web Hosting
Tutorials
Hardware Tutorial
1500 Free eBooks New!


Home » Placement Papers » TATA ELXSI Placement Papers » TATA ELXSI Previous Year Placement Paper

 

TATA ELXSI Placement Paper -: .Net Questions With Answers


Advertisements
Advertisements




TATA ELXSI Previous Years Solved Sample Placement Papers

  1. Which of the following is responsible for converting bytecode into machine code?

    a) JDK

    b) JRE

    c) JVM

    d) Java Compiler

    Ans: c) JVM
  2. What does JDK include?

    a) Only a compiler

    b) Only a runtime environment

    c) Both a compiler and a runtime environment

    d) None of the above

    Ans: c) Both a compiler and a runtime environment
  3. What is the purpose of the continue statement in a loop?

    a) To exit the loop immediately

    b) To skip the current iteration and move to the next iteration

    c) To terminate the program

    d) To execute a specific block of code

    Ans: b) To skip the current iteration and move to the next iteration
  4. Which loop construct in Java is best suited when the number of iterations is unknown?

    a) for loop

    b) while loop

    c) do-while loop

    d) none

    Ans: b) while loop
  5. What will be the output of the following C# code?

    using System;
    
    namespace MyApplication {
      class Program {
        static void Main(string[] args) {
          string[] mobiles = { "iPhone", "Samsung", "Vivo"};
          Console.WriteLine(mobiles);
        }
      }
    }
        

    A: "iPhone", "Samsung", "Vivo"

    B: {"iPhone", "Samsung", "Vivo"}

    C: string[]

    D: System.String[]

    Ans: D

    Explanation:

    In the above code, the statement Console.WriteLine(mobiles); will print the type of the variable that is System.String[].

  6. What will be the output of the following C# code?

    using System;
    
    namespace MyApplication {
      class Program {
        static void Main(string[] args) {
          string[] mobiles = {"iPhone", "Samsung", "Vivo"};
          Console.WriteLine(mobiles[-1]);
        }
      }
    }
        

    A: None

    B: Warning

    C: Exception

    D: System.String[]

    Ans: C

    Explanation:

    The array index starts from 0 in C#. In the above code, we are trying to access an element with index -1, resulting in an exception: System.IndexOutOfRangeException.

  7. Which statement is correct about the following C# statement?

    int[] x = {10, 20, 30};

    A: 'x' is a reference to the array created on stack

    B: 'x' is a reference to an object created on stack

    C: 'x' is a reference to an object of a 'System.Array' class

    D: None of the above

    Ans: C

    Explanation:

    In the above given C# statement, the variable x is a reference to an object of a System.Array class.

  8. Which array property is used to get the total number of elements in C#?

    A: Len

    B: Length

    C: Elements

    D: MaxLen

    Ans: B

    Explanation:

    The Length property is used to get the total number of elements in C#.




 


.

Recently Updated: New Placement Papers added.
Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Programming & Source Codes | GRE Preparation | Jobs, Discussions | Software Listing | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | International Business Information | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | FAQs | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Excellent Mobiles | Software Testing | Interview Questions | Freshers Jobs | Server Insiders | File Extension Directory

Copyright ©2003-2025 Vyom Technosoft Pvt. Ltd., All Rights Reserved. Read our Privacy Policy