.
  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 » Motorola Placement Papers » Motorola Previous Year Placement Paper

 

Motorola Placement Paper -: .Net Questions With Answers


Advertisements
Advertisements




Motorola Previous Years Solved Sample Placement Papers

  1. Which symbols are used to mark the beginning and end of a code block?

    A: Square brackets []

    B: Curly braces {}

    C: Round brackets ()

    D: Double-quotes ""

    Ans: B

    Explanation:

    C# code block begins and ends by the Curly braces {}.

  2. Every C# statement is terminated by ___.

    A: Colon (:)

    B: Semicolon (;)

    C: Comma (,)

    D: Dot (.)

    Ans: B

    Explanation:

    Every C# statement is terminated by a semicolon (;).

  3. Is C# programming language case-sensitive?

    A: Yes

    B: No

    Ans: A

    Explanation:

    Yes, C# programming language is case-sensitive.

  4. In C#, a single-line comment starts with ___.

    A: Two forward slashes (//)

    B: Two backward slashes (\\)

    C: A hash character (#)

    D: A dollar character ($)

    Ans: A

    Explanation:

    In C#, a single-line comment starts with two forward slashes (//).

  5. In C#, the multi-line comments are placed within the ___.

    A: // and //

    B: \\ and //

    C:

    D: /* and */

    Ans: D

    Explanation:

    In C#, the multi-line comments are placed within the /* and */.

  6. What is the correct syntax to declare a variable in C#?

    A: type variableName = value;

    B: type variableName;

    C: variableName as type = value;

    D: Both A and B

    Ans: D

    Explanation:

    Both of the above syntaxes can be used to declare a variable:

    • type variableName = value; - It defines the type and assigns the value
    • type variableName; - It defines the type only
  7. Which data type is used to store text value in C#?

    A: text

    B: txt

    C: string

    D: str

    Ans: C

    Explanation:

    The string data type is used to store text values in C#.

  8. Which C# keyword is used to define a constant?

    A: define

    B: fixed

    C: constant

    D: const

    Ans: D

    Explanation:

    The const keyword is used to define a constant in C#.

  9. What is the correct syntax to define a C# constant?

    A: const type constant_name;

    B: const type constant_name = value;

    C: const constant_name as type;

    D: const constant_name as type = value;

    Ans: B

    Explanation:

    The correct syntax to define a C# constant is:

    const type constant_name = value;

    Note: A const field requires a value to be provided.

  10. Which is not a valid C# data type?

    A: long

    B: int

    C: float

    D: complex

    Ans: D

    Explanation:

    There is no complex data type in C#.

  11. Which is the correct order for implicit type conversion to convert a smaller to a larger type in C#?

    A: char -> int -> long -> float -> double

    B: bool -> char -> int -> long -> float -> double

    C: char -> int -> float -> long -> double

    D: bool -> char -> int -> long -> double -> float

    Ans: A

    Explanation:

    The implicit type conversion is done in the following order: char -> int -> long -> float -> double.

  12. Which is the correct order for explicit type conversion to convert a larger to a smaller type in C#?

    A: double -> float -> long -> int -> char -> bool

    B: double -> float -> long -> int -> char

    C: float -> double -> long -> int -> char

    D: float -> double -> long -> int -> char -> bool

    Ans: B

    Explanation:

    The explicit type conversion is done in the following order: double -> float -> long -> int -> char.

  13. Which is the correct C# statement to convert a float value to int explicitly?

    A: int_variable = (int) float_variable;

    B: int_variable = float_variable;

    C: int_variable = (int) (float_variable);

    D: int_variable = int *float_variable);

    Ans: A

    Explanation:

    The following syntax is used to convert a float value to int explicitly:

    int_variable = (int) float_variable;




 


.

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-2024 Vyom Technosoft Pvt. Ltd., All Rights Reserved. Read our Privacy Policy