Bài tập trắc nghiệm C++

Bài tập trắc nghiệm C++

3rd - 12th Grade

10 Qs

quiz-placeholder

Similar activities

2025 python class first quiz

2025 python class first quiz

9th Grade - University

10 Qs

SI - Tema 3.- Redes Locales (1º parte)

SI - Tema 3.- Redes Locales (1º parte)

6th - 8th Grade

15 Qs

Sklopovlje i programska podrška

Sklopovlje i programska podrška

10th Grade

10 Qs

Koristimo se mrežama

Koristimo se mrežama

4th Grade

10 Qs

Python Objects and Recursion

Python Objects and Recursion

10th Grade

14 Qs

NADAN QUIZZ (WITH MR KUGEN)

NADAN QUIZZ (WITH MR KUGEN)

6th - 8th Grade

12 Qs

HTML

HTML

KG - 9th Grade

11 Qs

Bài tập trắc nghiệm C++

Bài tập trắc nghiệm C++

Assessment

Quiz

Computers

3rd - 12th Grade

Medium

Created by

Hằng Phạm

Used 30+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Khai báo hằng trong C++ ta dùng:

const n=1000;       

int  a;          

int n;

#include<iostream>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phép chia lấy phần nguyên trong C++ sử dụng kí hiệu nào

div

mod 

%                    

/

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Trong C++, phép toán so sánh bằng được kí hiệu là:

< >                    

!=

==                 

<=

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong C++, biểu thức (14%5+21/4) cho kết quả bằng

6

8

9

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong cấu trúc rẽ nhánh  if (điều kiện)  <câulệnh>;

            câu lệnh được thực hiện khi:

Điều kiện được tính toán              

Điều kiện được tính toán và trả về giá trị đúng

Điều kiện không tính được          

Điều kiện được tính toán và trả về giá trị sai

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh kiểm tra: nếu a không chia hết 2, ta đưa ra màn hình thông báo “NO”

if  (a%2==0)   cout<< “NO”;                   

if  <a%2==0> cout<< “YES”;

if  (a%2!=0)    cout<< “NO”;                   

if  <a%2!=0>  cout<< “YES”;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Khai báo biến trong chương trình là kiểu số thực ta sử dụng kiểu dữ liệu:

integer                  

float                 

long int

bool

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?