Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CSC 404 Test 1 Answer scheme Latest 2025 Update Complete|UiTM

Rating
-
Sold
-
Pages
11
Grade
A+
Uploaded on
02-01-2025
Written in
2024/2025

CSC 404 Test 1 Answer scheme Latest 2025 Update Complete|UiTM

Institution
CSC 404
Course
CSC 404

Content preview

CONFIDENTIAL CS/MAC 2024CSC404




UNIVERSITI TEKNOLOGI MARA

TEST 1

COURSE : PROGRAMMING II

COURSE CODE : CSC404


DATE : MARCH 2024

TIME : 1.45 HOURS




INSTRUCTIONS TO CANDIDATES

1. Answer ALL questions.

2. This question paper consists of two(3) parts: PART A (5 Questions)
PART B (3 Questions)
PART C (2 Questions)

3. Do not bring any material into the examination room unless permission is given by
the invigilator.


NAME :

MATRIC NO :

GROUP :

LECTURER :



DO NOT TURN THIS PAGE UNTIL
This examination paper consists of 6 printed
pages

, PART A (10 marks)
1. The declaration
int (*p) [10];
means

A. p is a pointer to a 10 elements integer array.
B. p is a one dimensional array of size 10, of pointers to integers.
C. The same as int *p[
D. None of these.

2. Which of the following is a complete function?

A. int funct();
B. int funct(int x) { return x=x+1; }
C. void funct(int) { cout<<“Hello"; }
D. void funct(x) { cout<<“Hello"; }

3. Choose a correct statement with array pointers.

A. It is valid to add an integer number to an array pointer. Result can be anything
B. It is valid to subtract an integer number from an array pointer. Results can be
anything.
C. Difference of pointers to two elements of an array gives the difference between
their indexes.
D. All the above

4. What will be the output of the following program ?




A. 0
B. 4
C. 5
D. 6




5. An entire array is always passed by to a called function.

Written for

Institution
CSC 404
Course
CSC 404

Document information

Uploaded on
January 2, 2025
Number of pages
11
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$15.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Wiseman NURSING
Follow You need to be logged in order to follow users or courses
Sold
7689
Member since
4 year
Number of followers
3871
Documents
28771
Last sold
7 hours ago
Premier Academic Solutions

3.9

1563 reviews

5
764
4
284
3
243
2
87
1
185

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions