
Tipe Data dan Fungsi dalam C

Quiz
•
Information Technology (IT)
•
12th Grade
•
Medium
Hadi LW
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa topik utama yang dibahas dalam hari ini?
Instalasi Dev C++
Algoritma pemrograman, jenis data, dan variabel
Penggunaan fungsi printf
Perbandingan bahasa pemrograman C dan C++
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pada deklarasi variabel char str[100], angka 100 dalam kurung siku menunjukkan apa?
Nilai awal variabel.
Jumlah karakter maksimum yang dapat disimpan.
Nomor versi dari variabel.
Ukuran memori yang dialokasikan dalam byte.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dalam pemrograman, variabel diibaratkan seperti sebuah wadah atau gelas. Apa fungsi utama dari variabel berdasarkan analogi ini?
Untuk menampilkan hasil program ke layar.
Untuk menyimpan data dengan tipe tertentu.
Untuk melakukan operasi matematika yang kompleks.
Untuk menghubungkan program dengan perangkat keras.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dalam fungsi printf("%s", str);, simbol %s berfungsi sebagai apa?
Penanda akhir baris.
Operator aritmatika.
Penentu tipe data string untuk ditampilkan.
Komentar dalam kode program.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Tipe data int (integer) dalam pemrograman C digunakan untuk menyimpan jenis data apa?
Karakter atau huruf.
Bilangan bulat (angka tanpa desimal).
Bilangan desimal (angka dengan koma).
Nilai benar atau salah (Boolean).
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dalam bahasa pemrograman C, bagaimana cara yang benar untuk mendeklarasikan variabel integer bernama 'tahun' dan langsung menginisialisasinya dengan nilai 2021 dalam satu baris kode?
int tahun = 2021;
tahun = 2021;
integer tahun = 2021;
tahun int = 2021;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dalam fungsi printf() pada bahasa C, penentu format apa yang digunakan untuk menampilkan nilai variabel bertipe string dan integer secara berurutan?
%d dan %s
%i dan %c
%s dan %i
%f dan %d
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Debugging Neopixel Programming

Quiz
•
12th Grade
20 questions
Algoritma Struktur Data

Quiz
•
University
20 questions
ASESMEN DIAGNOSTIK INFORMATIKA KELAS 8

Quiz
•
8th Grade - University
15 questions
QUIS SUMATIF 1

Quiz
•
12th Grade
15 questions
Scratch

Quiz
•
8th Grade - University
10 questions
Pemrograman & Aplikasi Mikrokontroler (Pengenalan IDE)

Quiz
•
11th Grade - University
20 questions
Pengenalan Bahasa Pemrograman Python

Quiz
•
9th Grade - University
10 questions
Quiz1 Kelas XII

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie

Quiz
•
5th - 12th Grade
20 questions
Macromolecules

Quiz
•
9th - 12th Grade