
Pointers V2
Quiz
•
Information Technology (IT)
•
1st Grade
•
Practice Problem
•
Medium
Miltiadis Katarachias
Used 3+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Τι θα τυπώσει το παρακάτω πρόγραμμα;
int arr[] = {1, 2, 3, 4};
int *ptr = arr;
printf("%d", *(ptr + 2));
1
2
3
4
2.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Ποιο είναι το αποτέλεσμα του παρακάτω κώδικα;
char str[] = "Hello";
char *ptr = str;
printf("%c", *(ptr + 1));
H
e
l
διεύθυνση
3.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Ποιο είναι το αποτέλεσμα του παρακάτω προγράμματος;
int arr[2][2] = {{1, 2}, {3, 4}};
int *ptr = &arr[0][0];
printf("%d", * (ptr + 3));
Σφάλμα
2
3
4
4.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Τι κάνει η έκφραση *(str + i) για μια συμβολοσειρά str;
Επιστρέφει το μέγεθος της συμβολοσειράς σε bytes.
Υπολογίζει το μήκος της συμβολοσειράς.
Επιστρέφει τη διεύθυνση του i-οστού χαρακτήρα της συμβολοσειράς.
Επιστρέφει τον i-οστό χαρακτήρα της συμβολοσειράς
5.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Ποιο είναι το αποτέλεσμα του παρακάτω κώδικα;
char str[] = "Array";
char *ptr = &str[3];
printf("%s", ptr);
r
ay
ray
A
6.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Τι θα τυπώσει το παρακάτω πρόγραμμα;
char str[] = "Strings";
char *ptr1 = str;
char *ptr2 = str + 4;
printf("%ld", ptr2 - ptr1);
4
S
n
2
7.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Ποιο θα είναι το αποτέλεσμα του παρακάτω κώδικα;
char arr[][10] = {"One", "Two", "Three"};
char *ptr = arr[2];
printf("%c", *(ptr + 1));
Three
h
One
W
Create a free account and access millions of resources
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
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Information Technology (IT)
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
10 questions
Christmas/Winter
Quiz
•
KG - 2nd Grade
16 questions
Christmas 1st grade
Quiz
•
1st Grade
10 questions
Exploring the Water Cycle
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
20 questions
Modules 4 - 6 CBA Review
Quiz
•
1st Grade
10 questions
Exploring the American Revolution
Interactive video
•
1st - 5th Grade
