CIT834 TMA

Q1 Which of the following is the root of the .NET type hierarchy?
System.Object
System.Type
System.Base
System.Parent

Q2 Which of the following statements is correct about the .NET Framework?
.NET Framework uses DCOM for achieving language interoperability.
.NET Framework is built on the DCOM technology.
.NET Framework uses DCOM for making transition between managed and unmanaged code.
.NET Framework uses DCOM for creating unmanaged applications.

Q3 Which of these method used to read strings from the console?
get()
getline()
read()
readLine()

Q4 Which of these methods are used to read single character from the console?
get()
getline()
read()
readLine()

Q5 Which of these keywords are used for generating an exception manually?
try
catch
throw
check

Q6 Name the exception thrown by read() on failure.
InterruptedException
SystemException
SystemInputException
I/O Exception

Q7 The data members of a class by default are ?
protected,public
private,public
private
public

Q8 Which of these keywords are used for the block to handle the exceptions generated by try block?
try
catch
throw
check

Q9 The following statements about objects in â??C#â? are correct except
Everything you use in C# is an object, including Windows Forms and controls
Objects have methods and events that allow them to perform actions
All objects created from a class will occupy equal number of bytes in memory
Objects often cause major faults in C#, so it should not be used often

Q10 What is the most specified using class declaration ?
type
scope
type & scope
class

Q11 Which of the keywords are used for the block to be examined for exceptions?
try
catch
throw
check

Q12 Choose the most correct statement
try block does not need to be followed by catch block
try block can be followed by finally block instead of catch block
try can be followed by both catch and finally block
try need not to be followed by anything

Q13 The following statements are the functions of try & catch except
It is used to manually handle the exception
It helps to fix the errors
It prevents automatic terminating of the program in cases when an exception occurs
It makes codes to run faster

Q14 Which of the following is the correct default value of a Boolean type?
0
1
1
False

Q15 Which of the following statement correctly assigns a value 33 to a variable c? Given byte a = 11, b = 22, c;
c = (byte) (a + b);
c = (byte) a + (byte) b;
c = (int) a + (int) b;
c = (int)(a + b);

Q16 The following statements are correct about data types except
Each value type has an implicit default constructor that initializes the default value of that type.
It is possible for a value type to contain the null value.
All value types are derived implicitly from System.ValueType class.
Variables of reference types referred to as objects and store references to the actual data.

Q17 Which of the following is the correct ways to set a value 3.14 in a variable pi such that it cannot be modified?
float pi = 3.14F;
#define pi 3.14F;
const float pi = 3.14F;
const float pi; pi = 3.14F;

Q18 Which one of the following statements is correct?
We can assign values of any type to variables of type object.
When a variable of a value type is converted to object, it is said to be unboxed.
When a variable of type object is converted to a value type, it is said to be boxed.
Boolean variable cannot have a value of null.

Q19 What is the size of a Decimal?
4 byte
8 byte
16 byte
32 byte

Q20 Which of the following does not store a sign?
Byte
Short
Integer
Long

Q21 Which of the following is the correct default value of a Boolean type?
0
1
correct
wrong

Q22 Which of the following statements is correct?
Values of any type can be assigned to variables of type object.
When a variable of a value type is converted to object, it is said to be unboxed.
When a variable of type object is converted to a value type, it is said to be boxed.
Boolean variable cannot have a value of null.

Q23 Which of the following does not store a sign?
Short
Integer
Long
Byte

Q24 Which of the following is the correct size of a Decimal data type?
8 Bytes
4 Bytes
10 Bytes
16 Bytes

Q25 Which of the following is NOT an Integer?
Char
Byte
Integer
Short

Q26 Which of the following is an 8-byte Integer?
Char
Long
Short
Byte

Q27 Which of the following statements is not correct about functions used in C#.NET?
Function definitions cannot be nested.
Functions can be called recursively.
If we do not return a value from a function then a value -1 gets returned.
To return the control from middle of a function exit function should be used.

Q28 Which of the following statements are correct?
C# allows a function to have arguments with default values.
C# allows a function to have variable number of arguments.
Omitting the return value type in method definition results into an exception.
Redefining a method parameter in the method’s body causes an exception.

Q29 All the following can occur multiple number of times in a program except
namespace
Entrypoint
Class
Function

Q30 Which of the following statements are correct?
C# allows a function to have arguments with default values.
C# allows a function to have variable number of arguments.
Omitting the return value type in method definition results into an exception.
Redefining a method parameter in the method’s body causes an exception.

Q31 Which one of the following statements is not correct about functions and subroutines used in C#.NET?
A function cannot be called from a subroutine.
The ref keyword causes arguments to be passed by reference.
While using ref keyword any changes made to the parameter in the method will be reflected in that variable when control passes back to the calling method.
Functions and subroutines can be called recursively.

Q32 A function returns a value, whereas a subroutine cannot return a value.
correct
wrong
Sometimes
Not certain

Q33 Which one of the following statements is correct?
An argument passed to a ref parameter need not be initialized first.
Variables passed as out arguments need to be initialized prior to being passed.
Pass by reference eliminates the overhead of copying large data items.
To use a ref parameter only the calling method must explicitly use the ref keyword.

Q34 Which of the following can be used to terminate a while loop and transfer control outside the loop?
exit while
continue
exit statement
break and .goto

Q35 Which of the following statements is correct?
It is not possible to extend the if statement to handle multiple conditions using the else-if arrangement.
The switch statement can include any number of case instances with two case statements having the same value.
A jump statement such as a break is required after each case block excluding the last block if it is a default statement.
The if statement selects a statement for execution based on the value of a Boolean expression.

Q36 Which of the following assemblies can be stored in Global Assembly Cache?
Private Assemblies
Friend Assemblies
Shared Assemblies
Public Assemblies

Q37 Which of the following .NET components can be used to remove unused references from the managed heap?
Common Language Infrastructure
CLR
Garbage Collector
Class Loader

Q38 Which of the following statements is not TRUE about the .NET CLR?
It provides a language-neutral development & execution environment
It ensures that an application would not be able to access memory that it is not authorized to access.
It provides services to run “managed” applications.
It provides services to run “unmanaged” applications.

Q39 Which one of the following jobs is performed by Garbage Collector?
Freeing memory on the stack
Freeing memory occupied by unreferenced objects.
Closing unclosed database collections
Closing unclosed files

Q40 Which of the following components of the .NET framework provide an extensible set of classes that can be used by any .NET compliant programming language?
.NET class libraries
Common Language Runtime
Common Language Infrastructure
Component Object Model

Q41 When writing a scientific paper, though the _______ comes before the entire text, it’s written after the text.
Introduction
Abstraction
Brief
Summary

Q42 One of these is a classificcation of technical report writing
Formality
Length
Regularity
All of the above

Q43 A _ ____ letter accompanies a commissioned letter.
Formal
Brief
Transmittal
Swift

Q44 __________ is a form of report in which you describe how to perform tests, weigh tangible evidence in order to arrive at your conclusions
Investigative report
Occurrence report
Field report
None of the above

Q45 ___________ enhances sound scientific judgment and sound business decision-making, based on data presented in the report.
Self-assessment
Clarity
Technical accuracy
Consistency

Q46 A technical report serves as a stepping stone for publishing in a _ journal.
Classical
Scientific
Proceeding
Historical

Q47 _____ describes an event, such as flood disaster
Narative report
Occurrence report
Evetn report
Incedent report

Q48 In a ________, products and services are promoted through rational or logical presentation
Publications
Technical report
Structures
Overviews

Q49 _________ announces or re-announces the subject-matter of a report
Title page
Introduction
Acknowledgement
All of the above

Q50 The components of a technical report could be modified to include a sub-section labelled
Theme
Notary
List
Introduction

Q51 The principal results or findings of an __________ is stated when writing a good introduction.
Introduction
Materials
Reviews
Investigation

Q52 A list included to ensure that a report reaches all those entitled to receive is called________
Grid List
Acquisition List
Distribution List
Discussion List

Q53 Generally, ________ on the part of the writer signifies some form of laziness.
Embolism
Colloquialism
Dualism
Empiricism

Q54 Technical report writing in science and technology will normally use a large number of technical terms and _______
Words
Symbols
Expression
All of the above

Q55 Some writers prefer ________ to findings as the outcome of their scientific work.
Result
Methods
Outcomes
None of the above

Q56 The ______ report is one that is initiated with known data.
Investigative
Periodic
Specific
Anomaly

Q57 Technical reports essentially present results of an experiment in a coherent and ______ manner.
Relexive
Periodic
Adaptive
Logical

Q58 One the following is not a component of an end matter ________
Jockey List
Acknowledgements
Biodata of Author(s)
Appendices

Q59 A __ _______objective entails putting ideas forward in a conventional, usable or acceptable form
Social
Educational
Primary
Physical

Q60 In citing scientific works, indexing and abstracting services can be classified as _
Primary Sources
Secondary Sources
Local Sources
Finite Sources

Q61 A scientific paper is organised to meet the needs of valid __________
Methods
Instructions
Demand
Publication

Q62 The principal results or findings of an __________ is stated when writing a good introduction.
Introduction
Materials
Reviews
Investigation

Q63 A scientific paper is required to be defined in a ______ manner
Composed
Comprehensive
Direct
Effective

Q64 A list included to ensure that a report reaches all those entitled to receive is called________
Grid List
Acquisition List
Distribution List
Discussion List

Q65 Suffiecient inoformation is required in scientific writing so that users and authors of data can ______
Assess observations
Repeat experiments
Evaluate intellectual processes
All of the above

Q66 Generally, Colloquialism on the part of the writer signifies some form of laziness.
Embolism
Empiricism
Dualism
None of the above

Q67 _____________ that creates a scientific paper is to be defined properly in order to properly define the scientific paper
Mechanism
Intellect
Publication
None of the above

Q68 Technical report writing in science and technology will normally use a large number of technical terms and _______
Words
Methods
Expression
None of the above

Q69 The citation order system does not avoid the substantial printing expenses of name and year system when a research paper is written
correct
wrong
Unsure
None of the above

Q70 Some writers prefer ________ to findings as the outcome of their scientific work.
Result
Methods
Outcomes
None of the above

Q71 The citation order system is simply a system of citing ____________
Publications
Procedures
References
Papers

Q72 The ______ report is one that is initiated with known data.
Investigative
Periodic
Specific
Anomaly

Q73 The citation order system is preferred by readers because they can quickly refere to the ________
References
Findings
Results
Methods

Q74 Technical reports essentially present results of an experiment in a coherent and ______ manner.
Relexive
Periodic
Adaptive
None of the above

Q75 Citation by number is a disadvange of alphabetical number system because the expenses of printing is high
correct
wrong
Unsure
None of the above

Q76 A __ _______objective entails putting ideas forward in a conventional, usable or acceptable form
Physical
Educational
Primary
None of the above

Q77 The alphabetical list of references is easy for readers and authors to use
correct
wrong
Unsure
None of the above

Q78 There are ________ basic rules to follow in handling the citations and references of a technical reports and scientific papers.
2
3
4
5

Q79 In citing scientific works, indexing and abstracting services can be classified as _
Primary Sources
Secondary Sources
Local Sources
None of the above

Q80 A basic rule of citation states one should list only significant, published and unpublished _________
Results
Experiments
References
findings

Q81 Which of the following is the root of the .NET type hierarchy?
System.Object
System.Type
System.Base
System.Parent

Q82 Which of the following statements is correct about the .NET Framework?
.NET Framework uses DCOM for achieving language interoperability.
.NET Framework is built on the DCOM technology.
.NET Framework uses DCOM for making transition between managed and unmanaged code.
.NET Framework uses DCOM for creating unmanaged applications.

Q83 Code that targets the Common Language Runtime is known as
Unmanaged
Distributed
Legacy
Managed Code

Q84 Which of the following constitutes the .NET Framework?
ASP.NET Applications
CLR
WinForm Applications
Windows Services

Q85 Which of the following statements correctly define .NET Framework?
It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services.
It is an environment for developing, building, deploying and executing only Web Applications.
It is an environment for developing, building, deploying and executing Distributed Applications.
It is an environment for developing, building, deploying and executing Web Services.

Q86 Which of the following are NOT true about .NET Framework?
It provides a consistent object-oriented programming environment whether object code is stored and executed locally, executed locally but Internet-distributed, or executed remotely.
It provides a code-execution environment that minimizes software deployment and versioning conflicts.
It provides a code-execution environment that promotes safe execution of code, including code created by an unknown or semi-trusted third party.
It provides different programming models for Windows-based applications and Web-based applications.

Q87 Which of the following statements is correct about Managed Code?
Managed code is the code that is compiled by the JIT compilers.
Managed code is the code where resources are Garbage Collected.
Managed code is the code that runs on top of Windows.
Managed code is the code that is written to target the services of the CLR.

Q88 One of the disadvantages of Explicit Conversion is that it _______
Makes program memory heavier
Results in loss of data
Is potentially Unsafe
Runs slower

Q89 Type of Conversion in which compiler is unable to convert the data type implicitly is ?
ushort to long
int to uint
ushort to long
byte to decimal

Q90 â??Implicit Conversionâ?? follows the order of conversion as per compatibility of data type as :
float < char < int
char < int < float
int < char < float
float < int < char

Q91 Types of â??Data Conversionâ?? in C#?
Implicit Conversion
Explicit Conversion
Implicit Conversion and Explicit Conversion
Indirect conversion

Q92 What is the need for â??Conversion of data typeâ?? in C#?
To store a value of one data type into a variable of another data type
To get desired data
To prevent situations of run time error during change or conversion of data type
To keep data safe

Q93 Default Type of number without decimal is ?
Long Int
Unsigned Long
Int
Unsigned Int

Q94 Correct way to assign values to variable â??câ?? when int a=12, float b=3.5,int c;
c = a + b;
c = a + int(float(b));
c = a + convert.ToInt32(b);
c = int(a + b);

Q95 Which datatype should be more preferred for storing a simple number like 35 to improve execution speed of a program?
sbyte
short
int
long

Q96 Arrange the following datatype in order of increasing magnitude sbyte, short, long, int.
long < short < int < sbyte
sbyte < short < int < long
short < sbyte < int < long
short < int < sbyte < long

Q97 Correct Declaration of Values to variables â??aâ?? and â??bâ???
int a = 32, b = 40.6;
int a = 42; b = 40;
int a = 32; int b = 40;
int a = b = 42;

Q98 Choose â??.NET classâ? name from which datatype â??UIntâ? is derived ?
System.Int16
System.UInt32
System.UInt64
System.UInt16

Q99 How many Bytes are stored by â??Longâ?? Datatype in C# .net?
8
4
2
1

Q100 Which one of the following statements is correct?
Array elements can be of integer type only.
The rank of an Array is the total number of elements it can contain.
The length of an Array is the number of dimensions in the Array.
The default value of numeric array elements is zero.

Q101 Which of the following is the correct default value of a Boolean type?
0
1
correct
wrong

Q102 Which of the following statements is correct?
Values of any type can be assigned to variables of type object.
When a variable of a value type is converted to object, it is said to be unboxed.
When a variable of type object is converted to a value type, it is said to be boxed.
Boolean variable cannot have a value of null.

Q103 Which of the following does not store a sign?
Short
Integer
Long
Byte

Q104 Which of the following is the correct size of a Decimal data type?
8 Bytes
4 Bytes
10 Bytes
16 Bytes

Q105 Which of the following is NOT an Integer?
Char
Byte
Integer
Short

Q106 Which of the following is an 8-byte Integer?
Char
Long
Short
Byte

Q107 Which of the following statements is not correct about functions used in C#.NET?
Function definitions cannot be nested.
Functions can be called recursively.
If we do not return a value from a function then a value -1 gets returned.
To return the control from middle of a function exit function should be used.

Q108 Which of the following statements are correct?
C# allows a function to have arguments with default values.
C# allows a function to have variable number of arguments.
Omitting the return value type in method definition results into an exception.
Redefining a method parameter in the method’s body causes an exception.

Q109 All the following can occur multiple number of times in a program except
namespace
Entrypoint
Class
Function

Q110 Which of the following statements are correct?
C# allows a function to have arguments with default values.
C# allows a function to have variable number of arguments.
Omitting the return value type in method definition results into an exception.
Redefining a method parameter in the method’s body causes an exception.

Q111 Which one of the following statements is not correct about functions and subroutines used in C#.NET?
A function cannot be called from a subroutine.
The ref keyword causes arguments to be passed by reference.
While using ref keyword any changes made to the parameter in the method will be reflected in that variable when control passes back to the calling method.
Functions and subroutines can be called recursively.

Q112 A function returns a value, whereas a subroutine cannot return a value.
correct
wrong
Sometimes
Not certain

Q113 Which one of the following statements is correct?
An argument passed to a ref parameter need not be initialized first.
Variables passed as out arguments need to be initialized prior to being passed.
Pass by reference eliminates the overhead of copying large data items.
To use a ref parameter only the calling method must explicitly use the ref keyword.

Q114 Which of the following can be used to terminate a while loop and transfer control outside the loop?
exit while
continue
exit statement
break and .goto

Q115 Which of the following statements is correct?
It is not possible to extend the if statement to handle multiple conditions using the else-if arrangement.
The switch statement can include any number of case instances with two case statements having the same value.
A jump statement such as a break is required after each case block excluding the last block if it is a default statement.
The if statement selects a statement for execution based on the value of a Boolean expression.

Q116 Which of the following assemblies can be stored in Global Assembly Cache?
Private Assemblies
Friend Assemblies
Shared Assemblies
Public Assemblies

Q117 Which of the following .NET components can be used to remove unused references from the managed heap?
Common Language Infrastructure
CLR
Garbage Collector
Class Loader

Q118 Which of the following statements is not TRUE about the .NET CLR?
It provides a language-neutral development & execution environment
It ensures that an application would not be able to access memory that it is not authorized to access.
It provides services to run “managed” applications.
It provides services to run “unmanaged” applications.

Q119 Which one of the following jobs is performed by Garbage Collector?
Freeing memory on the stack
Freeing memory occupied by unreferenced objects.
Closing unclosed database collections
Closing unclosed files

Q120 Which of the following components of the .NET framework provide an extensible set of classes that can be used by any .NET compliant programming language?
.NET class libraries
Common Language Runtime
Common Language Infrastructure
Component Object Model

Whatsapp 08039407882

Leave a Reply

Your email address will not be published. Required fields are marked *