CSC1003-QUIZ-1

CSC1003-QUIZ-1

University

10 Qs

quiz-placeholder

Similar activities

TECHNICAL C PROGRAM

TECHNICAL C PROGRAM

University

10 Qs

Quiz 4 Week 6 Repetition Structures (For)

Quiz 4 Week 6 Repetition Structures (For)

University

15 Qs

CodeHS Basic Data Structures in Python

CodeHS Basic Data Structures in Python

9th Grade - University

10 Qs

Python Revision

Python Revision

University

14 Qs

C programming-1

C programming-1

University

13 Qs

PHP File Handling

PHP File Handling

University

12 Qs

A4 IIB - Estructuras Condicionales II

A4 IIB - Estructuras Condicionales II

10th Grade - University

10 Qs

CSC301 Chapter 2

CSC301 Chapter 2

University

10 Qs

CSC1003-QUIZ-1

CSC1003-QUIZ-1

Assessment

Quiz

Computers

University

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?