C# MOCK TEST C# MOCK TEST I

Similar documents
C# MOCK TEST C# MOCK TEST II

GO MOCK TEST GO MOCK TEST I

DB2 MOCK TEST DB2 MOCK TEST I

MAVEN MOCK TEST MAVEN MOCK TEST I

PYTHON MOCK TEST PYTHON MOCK TEST III

Duhok Polytechnic University Amedi Technical Institute/ IT Dept. Halkawt Rajab Hussain

JAVA MOCK TEST JAVA MOCK TEST II

.Net Technologies. Components of.net Framework

CICS MOCK TEST CICS MOCK TEST I

DESIGN PATTERNS MOCK TEST DESIGN PATTERNS MOCK TEST III

COBOL MOCK TEST COBOL MOCK TEST III

VB.NET MOCK TEST VB.NET MOCK TEST III

MAVEN MOCK TEST MAVEN MOCK TEST IV

DESIGN PATTERNS MOCK TEST DESIGN PATTERNS MOCK TEST II

PERL MOCK TEST PERL MOCK TEST II

Introduce C# as Object Oriented programming language. Explain, tokens,

JAVASCRIPT MOCK TEST JAVASCRIPT MOCK TEST I

This tutorial has been prepared for the beginners to help them understand basics of c# Programming.

ANGULARJS - MOCK TEST ANGULARJS MOCK TEST II

MAVEN MOCK TEST MAVEN MOCK TEST III

JSP MOCK TEST JSP MOCK TEST III

HBASE MOCK TEST HBASE MOCK TEST III

JAVA MOCK TEST JAVA MOCK TEST III

VB.NET MOCK TEST VB.NET MOCK TEST I

JCL MOCK TEST JCL MOCK TEST IV

NODE.JS MOCK TEST NODE.JS MOCK TEST I

Review: Exam 1. Your First C++ Program. Declaration Statements. Tells the compiler. Examples of declaration statements

HTML5 MOCK TEST HTML5 MOCK TEST I

BASIC ELEMENTS OF A COMPUTER PROGRAM

VARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals

JAVA MOCK TEST JAVA MOCK TEST IV

NODE.JS MOCK TEST NODE.JS MOCK TEST IV

Computational Expression

Lab # 02. Basic Elements of C++ _ Part1

Java Basic Datatypees

An Introduction to Processing

CSS MOCK TEST CSS MOCK TEST III

Creating a C++ Program

Introduction To C#.NET

Understand Computer Storage and Data Types

HIBERNATE MOCK TEST HIBERNATE MOCK TEST I

Chapter-8 DATA TYPES. Introduction. Variable:

CSc Introduction to Computing

Data Types and Expressions. C# Programming: From Problem Analysis to Program Design 2nd Edition

C#: framework overview and in-the-small features

Data Types & Variables

Chapter 2: Using Data

Visual C# Instructor s Manual Table of Contents

PL/SQL MOCK TEST PL/SQL MOCK TEST IV

Getting started with Java

Datatypes, Variables, and Operations

Lexical Structure (Chapter 3, JLS)

Agenda & Reading. VB.NET Programming. Data Types. COMPSCI 280 S1 Applications Programming. Programming Fundamentals

Java Classes & Primitive Types

3. Java - Language Constructs I

IT 1033: Fundamentals of Programming Data types & variables

BTE2313. Chapter 2: Introduction to C++ Programming

By the end of this section you should: Understand what the variables are and why they are used. Use C++ built in data types to create program

Java Classes & Primitive Types

Objectives. Introduce the core C# language features class Main types variables basic input and output operators arrays control constructs comments

Exercise: Inventing Language

Data Types, Variables and Arrays. OOC 4 th Sem, B Div Prof. Mouna M. Naravani

VARIABLES AND TYPES CITS1001

JAVA.LANG.INTEGER CLASS

Java Fall 2018 Margaret Reid-Miller

Data Structures and Programming with C++

Outline. Review of Last Week II. Review of Last Week. Computer Memory. Review Variables and Memory. February 7, Data Types

Lecture 2 Tao Wang 1

Activity 3: Data Types

Objectives. Chapter 2: Basic Elements of C++ Introduction. Objectives (cont d.) A C++ Program (cont d.) A C++ Program

Chapter 2: Basic Elements of C++ Objectives. Objectives (cont d.) A C++ Program. Introduction

Chapter 2: Basic Elements of C++

CS242 COMPUTER PROGRAMMING

JSP MOCK TEST JSP MOCK TEST IV

Basic Types, Variables, Literals, Constants

GWT MOCK TEST GWT MOCK TEST I

Appendix G: Writing Managed C++ Code for the.net Framework

EJB MOCK TEST EJB MOCK TEST IV

REVIEW. The C++ Programming Language. CS 151 Review #2

Java Language Basics: Introduction To Java, Basic Features, Java Virtual Machine Concepts, Primitive Data Type And Variables, Java Operators,

HIVE MOCK TEST HIVE MOCK TEST III

CS2141 Software Development using C/C++ C++ Basics

Variables Data types Variable I/O. C introduction. Variables. Variables 1 / 14

Week 3 Lecture 2. Types Constants and Variables

ME 172. Lecture 2. Data Types and Modifier 3/7/2011. variables scanf() printf() Basic data types are. Modifiers. char int float double

Today. o main function. o cout object. o Allocate space for data to be used in the program. o The data can be changed

Introduction to Data Entry and Data Types

Programming with Java

Chapter 12 Variables and Operators

6.096 Introduction to C++ January (IAP) 2009

Lesson 2 Variables and I/O

Introduction to Programming EC-105. Lecture 2

PES INSTITUTE OF TECHNOLOGY

Chapter 2: Introduction to C++

Chapter 1 Getting Started

Chapter 2: Special Characters. Parts of a C++ Program. Introduction to C++ Displays output on the computer screen

GO - OPERATORS. This tutorial will explain the arithmetic, relational, logical, bitwise, assignment and other operators one by one.

RTL Reference 1. JVM. 2. Lexical Conventions

1 class Lecture2 { 2 3 "Elementray Programming" / References 8 [1] Ch. 2 in YDL 9 [2] Ch. 2 and 3 in Sharan 10 [3] Ch.

boolean, char, class, const, double, else, final, float, for, if, import, int, long, new, public, return, static, throws, void, while

Transcription:

http://www.tutorialspoint.com C# MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to C#. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself. C# MOCK TEST I Q 1 - Which of the following is correct about C#? A - C# is a modern, general-purpose, object-oriented programming language developed by Microsoft. B - C# was developed by Anders Hejlsberg and his team during the development of.net Framework. C - C# is designed for Common Language Infrastructure CLI. Q 2 - Which of the following is correct about C#? A - It is component oriented. B - It can be compiled on a variety of computer platforms. C - It is a part of.net Framework. Q 3 - Which of the following keyword is used for including the namespaces in the program in C#? A - imports B - using C - exports Q 4 - Which of the following is correct about variable naming conventions in C#?

A - A name must begin with a letter that could be followed by a sequence of letters, digits 0 9 or underscore. B - The first character in an identifier cannot be a digit. Q 5 - Which of the following is correct about variable naming conventions in C#? A - It should not be a C# keyword. B - It must not contain any embedded space or symbol such as? - +! @ # % ^ & * [ ] { } Q 6 - Which of the following is a reserved keyword in C#? A - abstract B - as C - foreach Q 7 - Which of the following is a contextual keyword in C#? A - get B - set C - add Q 8 - We can use reserved keywords as identifiers in C#? A - true B - false Q 9 - We can use reserved keywords as identifiers in C# by prefixing them with @ character? A - true B - false Q 10 - Which of the following variable types can be assigned a value directly in C#? A - Value types B - Reference types

C - Pointer types Q 11 - Value type variables in C# are derived from the class System.ValueType? A - true B - false Q 12 - Which of the following is correct about value type variables in C#? A - The value types directly contain data. B - int, char, and float, which stores numbers, alphabets, and floating point numbers, respectively are value types. C - When you declare an int type, the system allocates memory to store the value. Q 13 - Which of the following is correct about reference type variables in C#? A - The reference types do not contain the actual data stored in a variable. B - They contain a reference to the variables. C - Example of built-in reference types are: object, dynamic, and string. Q 14 - Which of the following is correct about Object Type in C#? A - The Object Type is the ultimate base class for all data types in C# Common Type System CTS. B - Object is an alias for System.Object class. C - The object types can be assigned values of any other types, value types, reference types, predefined or user-defined types. Q 15 - Which of the following defines boxing correctly? A - When a value type is converted to object type, it is called boxing. B - When an object type is converted to a value type, it is called boxing. Q 16 - Which of the following defines unboxing correctly? A - When a value type is converted to object type, it is called unboxing.

B - When an object type is converted to a value type, it is called unboxing. Q 17 - Which of the following is correct about dynamic Type in C#? A - You can store any type of value in the dynamic data type variable. B - Type checking for these types of variables takes place at run-time. Q 18 - Which of the following converts a type to a Boolean value, where possible in C#? A - ToBoolean B - ToSingle Q 19 - Which of the following converts a type to a byte value in C#? A - ToSingle B - ToByte Q 20 - Which of the following converts a type to a single Unicode character, where possible in C#? A - ToSingle B - ToByte Q 21 - Which of the following converts a type integerorstringtype to date-time structures in C#? A - ToString B - ToSingle

Q 22 - Which of the following converts a floating point or integer type to a decimal type in C#? Q 23 - Which of the following converts a type to a double type in C#? Q 24 - Which of the following converts a type to a 16-bit integer in C#? Q 25 - Which of the following converts a type to a 32-bit integer in C#? ANSWER SHEET Question Number Answer Key 1 D 2 D 3 B 4 C 5 C 6 D 7 D

8 B 9 A 10 A 11 A 12 D 13 D 14 D 15 A 16 B 17 C 18 A 19 B 20 C 21 D 22 A 23 B 24 C 25 D Loading [MathJax]/jax/output/HTML-CSS/jax.js