
CSC1003-QUIZ-1
Authored by ushapreethi p
Computers
University
Used 1+ 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
Assume you have made the following declarations:
double taxBracket[4] = {0.10, 0.18, 0.26, 0.30};
double* taxPtr = taxBracket;
Which of the following is not true:
taxPtr == &taxBracket[0]
taxBracket[0] == 0.10
taxBracket[2] == 0.18
taxBracket[2] == 0.26
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If you declare a variable as int var = 5;and the compiler stores var at memory
address 3000, then the value of &var is ___________ .
5
3000
var
0
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If you declare an integer pointer as int* pt; and you declare an integer variable as
int num;, then which of the following is legal?
num = &pt;
pt = #
num = pt;
&num = pt;
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int intarr=5;
int intptr=&intarr;
Consider intptr points to address 1000, What is the value of (intarr+2)?
1002
7
1004
1008
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not true:
Pointers hold memory addresses.
The asterisk * is used to refer an address.
A variable’s address is a constant, but a pointer is a variable.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following fopen statements is illegal?
fclose(fp);
fp = fopen(“abc.txt”, “r”);
fp = fopen(“abc.txt”, “a”);
fp=fclose();
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the meant by ‘a’ in the following operation?
fp = fopen(“Random.txt”, “a”);
append
apprehend
add
attach
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
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
15 questions
Informatyka - sprawdź swoją wiedzę
Quiz
•
University
10 questions
Semiconductores
Quiz
•
University
10 questions
KIỂU DỮ LIỆU CÓ CẤU TRÚC
Quiz
•
11th Grade - University
10 questions
JTable en Java
Quiz
•
University
10 questions
FST Class 2023- Quiz 2
Quiz
•
University
10 questions
Logic Programming
Quiz
•
University
10 questions
UTS Aplikasi Komputer 4C
Quiz
•
University
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University