0% found this document useful (0 votes)
21 views2 pages

Ipt Test Questions

Data types are characterized as either value types or reference types. Value types include primitive data types like integers, floats and characters that are stored on the stack. Reference types are stored as references to memory locations on the heap and include class types. It is important to understand data types because a variable assigned one type cannot later hold a different type of data. Operators perform operations on operands to produce a result and include unary, binary, relational and conditional operators. Explicit conversions can cast between non-compatible types using predefined functions.

Uploaded by

Jacob A Gannaban
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

Ipt Test Questions

Data types are characterized as either value types or reference types. Value types include primitive data types like integers, floats and characters that are stored on the stack. Reference types are stored as references to memory locations on the heap and include class types. It is important to understand data types because a variable assigned one type cannot later hold a different type of data. Operators perform operations on operands to produce a result and include unary, binary, relational and conditional operators. Explicit conversions can cast between non-compatible types using predefined functions.

Uploaded by

Jacob A Gannaban
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

_______________

_______________ 1. Data Types are characterized by:


2. There are two types of data types the first one is the _______________ and the second one is the
________________?
_______________ 3.is use to classify letter or text; the integer type is for the whole number;
_______________4.is for the floating number. It its very important to know the kind of data type
because variable assigned a number cannot hold text later on in the program.
______________5. defined as an integer cannot be assigned a string.
______________6. Basic data types in C# are distributed into the following
______________7.are also called value types and predefined in the .NET framework.
______________8. is used for static memory allocation and Heap for dynamic memory allocation,
both stored in the computer’s RAM.
______________9.is used for static memory allocation and Heap for dynamic memory allocation,
both stored in the computer’s RAM.
______________10.allocated on the stack are stored directly to the memory and access to this
memory is very fast, and its allocation is dealt with when the program is compiled.

______________11.are stored generally in the stack, reference types are stored in the managed
heap. A value type derives form system.
______________12. The reference types do not contain the actual data stored in a variable, but they
contain a reference to the variables. In other words, they refer to a memory location.
______________13.This refers to the storage of information that will used (retrieve) inside the
program. It is named as storage location capable of containing a certain type of data that can be
modified during program execution.
_______________14. This refers to the storage of information that will used (retrieve) inside the
program. It is named as storage location capable of containing a certain type of data that can be
modified during program execution.
_______________15. it is a name used to reference variables, functions, labels and various other
user-defined objects.
_______________16. is case sensitive; thus, the names count and count refer to two different
variables.
________________17 (assigned a value) with an equal sign followed by a constant expression. The
general form of initialization is:
________________ 18. can be initialized in their declaration. The initializer consist of an equal sign
followed by a constant expression.
________________19. are immutable values which are known at compile time and do not change for
the life of the program. Constant are declared with the conts modifier.
________________20. can be a decimal, octal, or hexadecimal constant. A prefix specfies the base or
radix: 0x or 0X for hexadecimal, 0 for octal, and no prefix id for decimal.
_______________21. has an integer part, a decimal point, a fractional part, and an exponent part.
_______________22.Character literals are enclosed in single quotes. For example, ‘x’ and can be
stored in simple variable of char type.

23.
Meaning = \\
Meaning = \’
Meaning = \”
Meaning = \?
Meaning = \a
Meaning = \b
Meaning = \f
Meaning = \n
Meaning = \r
Meaning = \t
Meaning = \v
Meaning = \ooo
Meaning = \xhh. . .

_______________24. are used to perform mathematical or logical operations on values (or variables)
called operands to produce a new value, called the result.

_______________25.is the objects that are manipulated or operation that to be performed. Operands
are always evaluated left-to-right in C#.

_______________26. are built variables, constants, and operators.

_______________27. is an operator that act upon a single


_______________28. require two operands. C# uses infix notation for binary operators: The operator
appears between the left and right operands.
_______________29. These operators are used to determine the relationship of one quantity to
another.
_______________30. These operators show the ways through which these relationships can be
connected.
_______________31. is a decision-making operator replace to if-else statement. If includes three
parts.
_______________32. Boolean Expression ? First Statement : Second Statement

_______________33 is converting one type of data to another type. It is also known as Type Casting

_______________34. These conversions are performed by C# in a type-safe manner.

_______________35. These conversion are done explicit by users using the predefined functions.

_______________36. To convert between non-compatible types, such as integers and System.

You might also like