1. Trang chủ
  2. » Công Nghệ Thông Tin

Quiz1 basic c programming techniques

37 698 0

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

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 37
Dung lượng 279,39 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Part 1 of 1 80.0 100.0 Points Question 1 of 20 5.0 5.0 Points int type variable range is A. 32768 +32767 B. MIN_SIZE to MAX_SIZE C. 2147483648 +2147483647 D. 8388608 +8388607 Question 2 of 20 5.0 5.0 Points byte type variable size is A. 16 bits B. 12 bits C. 8 bits D. 24 bits Question 3 of 20 5.0 5.0 Points double type variable precision is A. 1516 digits B. 1617 digits C. 1213 digits D. 1415 digits Question 4 of 20 5.0 5.0 Points float type variable precision is A. 6 digits B. 8 digits C. 9 digits D. 7 digits Question 5 of 20 0.0 5.0 Points how many number is created while compilation with the declaration below: short s = 1; A. 2 B. 3 C. 1 D. 4 Question 6 of 20 5.0 5.0 Points The syntax for declaring array is: A. arrayname DataType; B. DataType arrayname; C. DataType arrayname; D. arrayname DataType;

Trang 4

Question 6 of 20 5.0/ 5.0 PointsThe syntax for declaring array is:

Trang 6

B Serial

C Local

D Static

In the following code sample, will the second if structure be evaluated?

bool condition = true;

Trang 8

long type variable size is

Trang 9

character type variable size is

What are the keywords supported in an if statement?

A if, else, else-if, return

B if, else, else if

C if, else, default

Trang 10

D if, else, else if, break

The namespace contains all code required to interact

with the including the console output

Trang 11

C Virus

D User services

What are the four basic repetition structures in C#?

A for, foreach, loop, while

B loop, while, do-for, for-each

C do-each, while, for, do

D for, foreach, while, do-while

float type variable size is

A 32 bits

Trang 13

A.the default array size for each data type

B.the number of items in the initialization list

C.The number present in the square bracket next to the data type at the right hand side

D.the compilers presetting for each data

type array

Trang 14

Question 4 of 20 5.0/ 5.0 Pointsdecimal type variable size is

Trang 16

For multiple levels of organizations _ can be used

Trang 21

C 9 digits

D 7 digits

What code would we need to implement to have an integer “cast” to a string?

A public static implicit operator String(int i)

Trang 22

D None of the above

A only contains one character

B contains exactly its variable name and nothing else

Trang 23

C contains numbers rather than letters

D sequence of characters in double quotation marks

Trang 25

B foreach (int number in arrNumbers)

Trang 26

A String literal is a:

A only contains one character

B contains exactly its variable name and nothing else

C contains numbers rather than letters

D sequence of characters in double quotation marks

Trang 27

C 3

D compile error

In the following code sample, will the second if structure be evaluated?

bool condition = true;

Trang 29

double type variable range is

A from ±5.0E−256 to ±1.7E320

B from ±5.0E−324 to ±1.7E308

C from ±1.7E−320 to ±1.7E320

D about ±1.5.0E±256

Trang 30

What code would we need to implement to have an integer “cast” to a string?

A public static implicit operator String(int i)

Trang 32

C Creation of a non-zero based array

Trang 33

A uint int ulong long

B int long uint ulong

C int uint long ulong

D ulong long uint int

Trang 34

Question 16 of 20 1.67/ 5.0 PointsLINQ can access to

Trang 35

C Classes

D System namespace

If an IndexofAny method is passed an array of characters it:

A searches for the first occurrence of any of the characters in the string

B will search for the first occurrence of the sequence of characters

Trang 36

The code will generate an error at

compile time at line 9 as the function

Split used is not supported string data

type.

Trang 37

B

The code will generate an error at line 10

as conversion not allowed for one array

type to another array type.

C

The code will compile successfully and output will be Programming In c#

Ngày đăng: 31/03/2017, 15:04

TỪ KHÓA LIÊN QUAN

w