计算机代写 ————————————————————

————————————————————
USAGE CASE #1: bad input file
————————————————————
————————————————————

Copyright By PowCoder代写 加微信 powcoder

————————————————————
USAGE CASE #2: good quiz
————————————————————
Question 1 -> OK
Question 2 -> OK
Question 3 -> OK
Question 4 -> OK
Question 5 -> OK
Question 6 -> OK
Question 7 -> OK
****** Answer [2] to every question. *****

QUESTION [1]
^^^^^^^^^^^^
When a C program starts, the function that gets executed is called ________
1. principal
3. function
5. program
Your answer? 2

QUESTION [2]
^^^^^^^^^^^^
A C program can have only one function.
Your answer? 2

QUESTION [3]
^^^^^^^^^^^^
From the following sentences, select one that is correct:
1. Any correct code in C is also correct in C++
2. C source code can be organized into modules
3. C++ augments C with object oriented features
4. Namespaces are a feature available in C and C++
5. There is no difference between “++i” and “i++”
6. Abstraction is a characteristic that is common to ALL programming languages, regardless of their OOP status.
Your answer? 2

QUESTION [4]
^^^^^^^^^^^^
The stages of compilation in C++ are ________
1. compile, debug, linking
2. preprocess, compile, debug
3. translate, preprocess, linking,
4. compile, preprocess, linking
5. analize, translate, verify
6. debug, debug, debug
Your answer? 2

QUESTION [5]
^^^^^^^^^^^^
In C, the function “fopen” is used for ________
1. open a web address
2. open a file
3. open a database
4. open a module in VS editor
5. there is no such function in C
Your answer? 2

QUESTION [6]
^^^^^^^^^^^^
What does ‘std::printf(“Hello\n”)’ means in C++?
1. nothing, the syntax is not correct
2. call the function “std” and pass “printf” as parameter
3. insert the text “Hello” into a file
4. print the text “Hello” to the screen
Your answer? 2

QUESTION [7]
^^^^^^^^^^^^
C++ is a strongly typed language
Your answer? 2

QUIZ RESULTS: your score is 4/7.
————————————————————

————————————————————
USAGE CASE #3: bad quiz (not enough questions)
————————————————————
————————————————————

————————————————————
USAGE CASE #4: another good quiz
————————————————————
Question 1 -> OK
Question 2 -> OK
Question 3 -> OK
Question 4 -> OK
Question 5 -> OK
****** Answer [3] to every question. *****

QUESTION [1]
^^^^^^^^^^^^
What does ‘std::printf(“Hello\n”)’ means in C++?
1. nothing, the syntax is not correct
2. call the function “std” and pass “printf” as parameter
3. insert the text “Hello” into a file
4. print the text “Hello” to the screen
Your answer? 3

QUESTION [2]
^^^^^^^^^^^^
C++ is a strongly typed language
Your answer? 3

QUESTION [3]
^^^^^^^^^^^^
A C program can have only one function.
Your answer? 3

QUESTION [4]
^^^^^^^^^^^^
From the following sentences, select one that is correct:
1. Any correct code in C is also correct in C++
2. C source code can be organized into modules
3. C++ augments C with object oriented features
4. Namespaces are a feature available in C and C++
5. There is no difference between “++i” and “i++”
6. Abstraction is a characteristic that is common to ALL programming languages, regardless of their OOP status.
Your answer? 3

QUESTION [5]
^^^^^^^^^^^^
In C, the function “fopen” is used for ________
1. open a web address
2. open a file
3. open a database
4. open a module in VS editor
5. there is no such function in C
Your answer? 3

QUIZ RESULTS: your score is 1/5.
————————————————————

————————————————————
USAGE CASE #5: another bad quiz (bad questions)
————————————————————
Question 1 -> OK
Question 2 -> ERROR
Question 3 -> OK
Question 4 -> OK
Question 5 -> ERROR
Question 6 -> OK
Question 7 -> ERROR
————————————————————

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com