0% found this document useful (0 votes)
31 views

Chapter Exam NAME: - DATE: - SCORE

This document contains a chapter exam with multiple choice and identification questions about programming concepts in C#. The exam tests knowledge of topics like data types, variables, operators, control structures, and more. It contains 20 multiple choice questions worth 1 point each and 15 identification questions worth 2 points each for a total possible score of 60 points. The exam is assessing fundamental programming concepts and syntax in C# to evaluate the test taker's understanding.

Uploaded by

daniella chynn
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)
31 views

Chapter Exam NAME: - DATE: - SCORE

This document contains a chapter exam with multiple choice and identification questions about programming concepts in C#. The exam tests knowledge of topics like data types, variables, operators, control structures, and more. It contains 20 multiple choice questions worth 1 point each and 15 identification questions worth 2 points each for a total possible score of 60 points. The exam is assessing fundamental programming concepts and syntax in C# to evaluate the test taker's understanding.

Uploaded by

daniella chynn
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/ 3

CHAPTER EXAM

NAME : __________________________________ DATE: ________________ SCORE: _______

I. MULTIPLE CHOICE. (Encircle the letter of your choice) – 20 points


1. A specialized program that takes the instructions written in the programming language and
converts them to machine language.
a. Compiler b. Interpreter c. Debugger d. Runner
2. It is a set of instructions/rules for a computer to follow, written in specific programming
language.
a. Computer b. Syntax c. Program d. Language
3. What symbol is use to indicate the end of a statement?
a. Semicolon (;) b. colon (:) c. period (.) d. curly braces({
})
4. Which of the following choices is the correct syntax for declaring a real number variable
named grade and initializing its value to 4.0?
a. grade : 4.0; b. int grade = 4.0; c. double grade = 4.0; d. grade =
double = 4.0;
5. Which line has all reserved words ?
a. char, int, float, doubled, short, long, unsigned, signed
b. sizeof, const, typedef, static, voided, enum, struct, union
c. if, else, for, while, do, switch, continue, break
d. defaulted, goto, return, extern, private, public, protected
6. These are special class of identifiers and they have predefined meaning in C# and cannot be
used as names for variables or anything else.
a. Identifier b. Variable c. Reserved words d. Datatype
7. It is a type of variable that will contain one permanent value throughout the execution of
the program.
a. Datatype b. Syntax c. Constant d. Keyword
8. What datatype that can only hold values TRUE and FALSE?
a. Byte b. Boolean c. Char d. String
9. It is refers to the technical name given to a variable.
a. Identifier b. Datatype c. Expression d. Variable
10. How would you declare a constant of 5 called "MYCONST"?
a. constant MYCONST = 5; c. const int myconst = 5;
b. #define MYCONST 5; d. public static final int MYCONST=5;
11. What value would be stored in an integer variable “i” as a result of the following calculation:
int i, j=3;
i = 4 + 2 * j / ( j – 1 );
a. 1 b. 7 c. 9 d. 15
12. Part of a program that is use for explaining codes.
a. Comment b. Syntax c. Language d. Source Code
13. Boolean Logical Operator that evaluates to true when either one or both operands are true.
a. && b. || c. ! d. <
14. It is where all the processing in a computer takes place.
a. CPU b. Main Storage d. RAM d. ROM
15. These are devices that display, print or transmit the results of processing from the
computer’s memory.
a. Input devices b. output devices c. RAM
d. computer
16. It refers to the personnel who manage and use the computer system.
a. Hardware b. software c. peopleware d. CPU
17. Type of Control Structure that allows programmer to select and execute specific block of
code while skipping the other sections.
a. Repetition Control Structure b. Decision control structure c. Multiway Structure
d. Statement
18. A variable is/are
a. String that varies during program execution c. A portion of memory to store a
determined value
b. Those numbers that are frequently required in programs d. None of these
19. The number 5.9875 must be stored in a/an ____ datatype.
a. int b. long c. double d. char
20. It is a modern, general-purpose object oriented programming language developed by
Microsoft.
a. Microsoft C# b. C++ c. Cobol d. Java

II. IDENTIFICATION (30 points)


_____________________ 1. C# statement that is use to output or print message into the
Console screen.
_____________________ 2. C# statement that is use to get the input from user.
_____________________ 3. Code/statement for converting string to double.
_____________________ 4. Final value of variable x given x = 30 % 9 + 5 % 8 – 50 / 9 / 2.0
____________________5. It refers to the kind of data you will be storing in the variable.
____________________6. What is the range of values that the data type Byte can hold?
____________________7. It is a data type that can hold any number / combination of
characters.
____________________ 8. Syntax for C# variable declaration.
____________________ 9. Syntax for C# constant declaration.
___________________ 10. It is a symbol use to indicate groupings in c#.
____________________11. It is the entry point for all C# programs.
____________________12. CPU stands for what?
____________________13. Operator use to get the remainder of a number.
____________________14. Final value of y given y = (5 > 6)||(5 ^ 2 <= 5*2) && !(3 != 3)||( 8%5 <=
9%6)&& (5>4)
____________________15. RAM stands for what?

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy