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

Quiz
•
Computers
•
3rd - 12th Grade
•
Medium
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
7
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
Similar Resources on Wayground
13 questions
9-Cpp-1

Quiz
•
9th Grade
10 questions
Kuis Percabangan dan Perulangan

Quiz
•
10th Grade
10 questions
Сортировки

Quiz
•
10th Grade
15 questions
C++ SHS B1-B2

Quiz
•
11th Grade
12 questions
Bab 1.4.2 - Operator Hubungan dan Operator Logikal dlm Struktur

Quiz
•
9th - 12th Grade
11 questions
Строки в с++

Quiz
•
8th Grade
14 questions
C++ - Loops and Random Numbers

Quiz
•
9th - 12th Grade
10 questions
C++

Quiz
•
7th - 8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade