Session1 module 1 2 introduction to c variable and data types

4 50 0
Session1 module 1 2 introduction to c variable and data types

Đang tải... (xem toàn văn)

Thông tin tài liệu

ACCP I10 SEMESTER PCS – PROGRAMMING IN C# MODULAR QUIZ FOR Session 01 Question 1: Which of these statements about the components of the C# platform are true? a b c d The NET framework enables the use of C and C++ programming language C# provides a complete object-oriented architecture C# allows you to write applications that target mobile devices C# provides a very simple and powerful tool for building interoperable, scalable and robust applications Question 2: Which of these statements about the features of the C# platform and the NET framework are true? a The NET framework minimizes software development and versioning conflicts by b c d e providing a code-execution environment The NET Framework supports only VB and C# language The Just-In-Time (JIT) compiler converts the operating system code to the MSIL code when the code is executed for the first time The NET Framework provides consistent object-oriented programming environment The NET Framework builds, deploys and runs applications Question 3: Which of these statements about the language features of C# are true? a The garbage collector allocates and de-allocates memory using automatic memory b c d e management C# applications integrate and use the code written in any other NET language Automatic memory management decreases the quality of the code and reduces the performance and the productivity Developer creates mobile applications for pocket PCs, PDAs and cell phones using the C# language C# application programming uses objects so that the code written once can be reused 4 Question 4: Which of these statements about Visual Studio 2005 are true? a Visual Studio 2005 is use for building high-performance desktop application, XML web Services, mobile applications and ASP Web applications b The Team system edition of Visual Studio 2005 is used for building applications for personal enjoyment and use c Visual Studio 2005 is used to carry out programming in language like Visual C++ 2005 Visual C# d Visual Studio 2005 is used to simply team-based design, development and deployment of enterprise solutions e The Standard edition of Visual Studio 2005 is designed for professional developers Question 5: Which of these statements about Visual Studio 2005 IDE are true? a The Solution Explorer provides a list of topics specific to the area of the IDE you are working in or the task you are trying to finish b A console window in C# allows console applications to run c The Code window enables you to review and change the design-time properties and events of selected objects that are located in editor and designers d Visual Studio 2005 Integrated Development Environment provides the necessary support to compile and execute C# programs Question 6: Which of these statements about the rules for naming variables in C# are true? a b c d e The name of the variable can contain letter and digits The first character in the variable name can be a digit The name of the variable can contain an underscore The name of the variable can contain keyword The variable names RectLeng and rectLeng are the same Question 7: Chose the true statements about comments and XML comments in C# a b c d e You can insert multi-line comments by starting the comment with double slash (//) You cannot insert infinite number of comments You can insert XML comments by starting the comment with a double slash (//) You can specify the parameters of a method using the tag You can extract XML comments to an XML file Question 8: Chose the true statements about constants and literals in C# a Constants can be initialized after you declare identifiers b Constants cannot be identified by the compiler at the time of compilation c Literals can be of any data type d Integer literals can be of float type Question 9: Chose the true statements about keywords and escape sequence characters uesed in C# a b c d e Keywords are used to avoid any conflicts during compile time Keywords cannot be modified in C# Escape sequence characters are prefixed with the ‘/’ character Escape sequence characters are enclosed in single quotes The backslash character can be display using the respective escape sequence character 10 Question 10: Which of these statements about input methods and format specifiers are true? a b c d e The read() method always inserts the new line character at the end of the read character The data type conversion methods exist in the System class Format specifiers in C# anable you to display customized output Format specifiers require input methods of C# Format specifiers allow you to change a numeric value to date-time value Answers Question Answer b, c, d a, d, e a, b, d, e a, c, d b, d a, c c, d, e c a, b ,e 10 a, c ... of topics specific to the area of the IDE you are working in or the task you are trying to finish b A console window in C# allows console applications to run c The Code window enables you to. .. used to carry out programming in language like Visual C++ 2005 Visual C# d Visual Studio 2005 is used to simply team-based design, development and deployment of enterprise solutions e The Standard... to run c The Code window enables you to review and change the design-time properties and events of selected objects that are located in editor and designers d Visual Studio 2005 Integrated Development

Ngày đăng: 27/10/2019, 10:11

Mục lục

  • Answers

Tài liệu cùng người dùng

Tài liệu liên quan