home / study / questions and answers / engineering / computer science / 1) the v
ID: 675485 • Letter: H
Question
home / study / questions and answers / engineering / computer science / 1) the value “4” is a __________ data type. ...
Your question needs more information to be answered.
A Chegg Expert needs more info to provide you with the best answer. See comments below.
Question
Edit question
1) The value “4” is a __________ data type. A. command B. string C. namespace D. integer 2) The character >= is an example of a(n): A. relational operator. B. equality operator. C. reserved word. D. namespace. 3) The __________ at the beginning of a line of text will begin to comment out a block of text. A. / B. // C. /* D. */ 4)What will the value of x be after the code below is executed? int x ; x = 4; x = x + 2; A. 0 B. 4 C. 6 D. 42 5)The __________ command will compile an application and check for syntax errors, but not launch the program for interactivity. A. Save B. Run C. Build D. Test 6)int x ; x = 4; x = x * 2; A. 0 B. 2 C. 6 D. 8 7) The value 4 is a(n) __________ data type. A. command B. string C. namespace D. integer 8) What is the difference between these two statements? Console.Write( "Hello"); Console.WriteLine( "Hello"); A. The first statement will print Hello and then move the cursor to the next line. The second statement will print Hello and not move the cursor afterwards. B. The first statement will print Hello and not move the cursor afterwards. The second statement will print Hello and then move the cursor to the next line. C. The first statement will cause a syntax error and the program will not compile. D. The second statement will cause a syntax error and the program will not compile. 9) In the statement below, "number1" can be called a: number1 = sum1 + sum2; A. named memory location. B. data type. C. data value D. string 10) The __________ at the beginning of a line of text will comment out that single line of text. A. / B. // C. /* D. */ 11) A variable declaration statement specifies the: A. name of the variable. B. type of the variable. C. name and type of the variable. D. name, type, and value of the variable. 12) __________ is/are used to output a line of text to a console window. A. C# namespaces B. Visual C# compiler directives C. Console.Readline D. Console.Writeline 13) After the code below is executed, what will be in the variable x ? a = 12; b = 6; x = a % b; A. 0 B. 2 C. 0.05 D. 72 14) The "if" statement is a statement that: A. repeats an action over and over. B. asks a True/False question. C. cannot use equality operators. D. evaluates a question as True, False, or Not Applicable. 15) When placed inside the double quotes used to print a string, backslash-t ( ) will cause the cursor to move to the: A. next line. B. top of the page. C. next tab stop. D. next page. 16) Using a backslash () in the middle of a string of text is considered a(n) __________ character. A. comment B. escape C. sequence D. special tool 17) int chapterCount = 15 In the above line of code, chapterCount is a: A. namespace. B. binary operator. C. data type. D. variable name. 18) The body of every class declaration in C# is delimited by which of the following? A. { and } B. /* and */ C. " and " D. [ and ] 19) A collection of programming classes to provide segmentation and avoid naming conflicts is called a: A. namespace. B. binary operator. C. data type. D. variable. 20) will accept a line of text input into a console window by an end user. A. C# B. Visual C# compiler directives C. Console.Readline D. Console.Writeline.
Explanation / Answer
1) The value “4” is a __________ data type.
A. command B. string C. namespace D. integer
Ans. B. string
2) The character >= is an example of a(n):
A. relational operator. B. equality operator. C. reserved word. D. namespace.
Ans. A. relational operator.
3) The __________ at the beginning of a line of text will begin to comment out a block of text.
A. / B. // C. /* D. */
Ans. C. /*
4)What will the value of x be after the code below is executed?
int x ; x = 4; x = x + 2;
A. 0 B. 4 C. 6 D. 42
Ans. C. 6
5)The __________ command will compile an application and check for syntax errors, but not launch the program for interactivity.
A. Save B. Run C. Build D. Test
Ans. C. Build
6)int x ; x = 4; x = x * 2;
A. 0 B. 2 C. 6 D. 8
Ans. D. 8
7) The value 4 is a(n) __________ data type.
A. command B. string C. namespace D. integer
Ans. D. integer
8) What is the difference between these two statements?
Console.Write( "Hello");
Console.WriteLine( "Hello");
A. The first statement will print Hello and then move the cursor to the next line. The second statement will print Hello and not move the cursor afterwards.
B. The first statement will print Hello and not move the cursor afterwards. The second statement will print Hello and then move the cursor to the next line.
C. The first statement will cause a syntax error and the program will not compile.
D. The second statement will cause a syntax error and the program will not compile.
Ans. B. The first statement will print Hello and not move the cursor afterwards. The second statement will print Hello and then move the cursor to the next line.
9) In the statement below, "number1" can be called a:
number1 = sum1 + sum2;
A. named memory location. B. data type. C. data value D. string
Ans. C. data value
10) The __________ at the beginning of a line of text will comment out that single line of text.
A. / B. // C. /* D. */
Ans. B. //
11) A variable declaration statement specifies the:
A. name of the variable. B. type of the variable.
C. name and type of the variable. D. name, type, and value of the variable.
Ans. C. name and type of the variable.
12) __________ is/are used to output a line of text to a console window.
A. C# namespaces B. Visual C# compiler directives C. Console.Readline D. Console.Writeline
Ans. D. Console.Writeline
13) After the code below is executed, what will be in the variable x ?
a = 12; b = 6; x = a % b;
A. 0 B. 2 C. 0.05 D. 72
Ans. A. 0
14) The "if" statement is a statement that:
A. repeats an action over and over. B. asks a True/False question.
C. cannot use equality operators. D. evaluates a question as True, False, or Not Applicable.
Ans. B. asks a True/False question.
15) When placed inside the double quotes used to print a string, backslash-t ( ) will cause the cursor to move to the:
A. next line. B. top of the page. C. next tab stop. D. next page.
Ans. C. next tab stop.
16) Using a backslash () in the middle of a string of text is considered an __________ character.
A. comment B. escape C. sequence D. special tool
Ans. B. escape
17) int chapterCount = 15;
In the above line of code, chapterCount is a:
A. namespace. B. binary operator. C. data type. D. variable name.
Ans. D. variable name.
18) The body of every class declaration in C# is delimited by which of the following?
A. { and } B. /* and */ C. " and " D. [ and ]
Ans. A. { and }
19) A collection of programming classes to provide segmentation and avoid naming conflicts is called a:
A. namespace. B. binary operator. C. data type. D. variable.
Ans. A. namespace.
20) ________ will accept a line of text input into a console window by an end user.
A. C# B. Visual C# compiler directives C. Console.Readline D. Console.Writeline.
Ans. C. Console.Readline
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.