1. Trang chủ
  2. » Tất cả

16-17,HK2_IntroductionC(CLC)Mau 3

6 3 0

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

THÔNG TIN TÀI LIỆU

HCMC University of Technology and Education Faculty for High Quality Training ECET Supervisor Signature Supervisor Signature Final exam at the end of the semester 2, 2016-2017 Subject: Introduction to C programming language Subject code: CPRL130064E Number of pages: 06 pages Duration: 75 minutes Used paper documents Points and Signatures The first marking lecture The second marking lecture Students work directly on the exam and submit all First and last name: Student ID: Order number: Room: Question 1: (2.0 points) Give a following program, please perform: a) Draw a flowchart? b) Show results on the screen after performing the program? # #include I t main(void) a) a flowchart { int a = 12, b = 6, c = 17, d; if ((a >= b) || (b0; i) printf("%d \t", i); } c) Rewrite using “do…while”: a) Results on the screen: b) Pseudocode: Question 3: (1.0 points) What does the following program print? #include int main (void) { unsigned int row = 4; // initialize row unsigned int column; // define column while (row >= 1) // loop until row < { column = 1; // set column to as iteration begins while (column

Ngày đăng: 16/06/2021, 18:16

Xem thêm:

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN