
CSC1003-QUIZ-1

Quiz
•
Computers
•
University
•
Hard
ushapreethi p
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Quiz de Linguagem C

Quiz
•
University
10 questions
LERT pitot static

Quiz
•
11th Grade - University
15 questions
CP LAB ASSIGNMENT QUIZ

Quiz
•
University
15 questions
AWS ACF Módulo 2 - Economia e Faturamento na Nuvem

Quiz
•
University
10 questions
MS-Excel : Creating and Editing workbooks

Quiz
•
University
10 questions
CHAPTER 4: IDS AND IPS

Quiz
•
University
10 questions
Programų priežiūra 4

Quiz
•
University
10 questions
Программирование для инженеров

Quiz
•
University
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 Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University