
POINTER
Authored by Mercy H
Computers
1st Grade
Used 17+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Apa yang disimpan oleh sebuah pointer dalam bahasa pemrograman Pascal?
Nilai dari variabel yang ditunjuk
Tipe data dari variabel yang ditunjuk
Alamat memori dari variabel lain
Nama variabel yang ditunjuk
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Bagaimana cara mendeklarasikan pointer ke variabel bertipe integer dalam Pascal?
var p: pointer;
var p: integer^;
var p: ^integer;
var p: *integer;
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Fungsi dari ^ pada pointer di Pascal adalah?
Mengambil alamat dari variabel
Mengakses nilai yang disimpan di alamat yang ditunjuk pointer
Menghapus nilai di memori
Menukar alamat pointer dengan variabel lain
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Apa yang akan terjadi jika pointer digunakan tanpa diinisialisasi terlebih dahulu?
Nilai default akan digunakan
Akan menghasilkan kesalahan kompilasi
Pointer akan menunjuk ke lokasi memori sembarang
Nilai yang diakses akan selalu nol
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Perintah apa yang digunakan untuk mengalokasikan memori secara dinamis untuk pointer dalam Pascal?
alloc(p);
malloc(p);
create(p);
new(p);
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Perintah apa yang digunakan untuk melepaskan memori yang dialokasikan oleh pointer dalam Pascal?
delete(p);
dispose(p);
remove(p);
free(p);
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Dalam bahasa Pascal, jika kita memiliki kode berikut: p^ := 10; , apa yang terjadi?
Nilai pointer p diubah menjadi 10
Alamat memori pointer p diubah
Nilai di alamat yang ditunjuk oleh pointer p diubah menjadi 10
Pointer p menunjuk ke variabel baru dengan nilai 10
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Test
Quiz
•
1st - 3rd Grade
15 questions
HTML asoslari
Quiz
•
1st - 5th Grade
13 questions
S1 Word Processing
Quiz
•
1st Grade
10 questions
Komputer Kelas 1 S1
Quiz
•
1st Grade - University
10 questions
F3 RBT 1.1.6
Quiz
•
1st - 7th Grade
15 questions
KSK2013 ulangkaji v1.0
Quiz
•
KG - University
10 questions
Roblox programming
Quiz
•
1st Grade
15 questions
Python Series
Quiz
•
1st - 5th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
15 questions
Place Value tens and ones
Quiz
•
1st Grade
16 questions
Money - Coins
Lesson
•
1st - 2nd Grade
20 questions
Halves and Fourths
Quiz
•
1st Grade