
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
10 questions
Dasar Koding dan Kecerdasan Artifisial

Quiz
•
11th Grade - University
12 questions
Quiz IHT 21-22 Juli 2025

Quiz
•
12th Grade
20 questions
Kuis Data Science Pertemuan 3

Quiz
•
University
17 questions
LA 1A 2024 - QUIZ P15

Quiz
•
University
12 questions
SOAL IE

Quiz
•
University
10 questions
Latsol

Quiz
•
10th Grade - University
12 questions
Pemboleh Ubah, Pemalar dan Jenis Data

Quiz
•
9th - 12th Grade
10 questions
Menuliskan Rancangan Pseudocode

Quiz
•
12th 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 Information Technology (IT)
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

Quiz
•
6th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)

Quiz
•
9th - 12th Grade
20 questions
Parallel lines and transversals

Quiz
•
9th - 12th Grade
9 questions
Geometry and Trigonometry Concepts

Interactive video
•
9th - 12th Grade
10 questions
Angle Relationships with Parallel Lines and a Transversal

Quiz
•
9th - 12th Grade