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)

CNIT 105 MIDTERM QUESTIONS & ANSWERS

Rating
-
Sold
-
Pages
4
Grade
A+
Uploaded on
24-01-2026
Written in
2025/2026

CNIT 105 MIDTERM QUESTIONS & ANSWERS

Institution
Course

Content preview

CNIT 105 MIDTERM QUESTIONS & ANSWERS


int division 3. = ____ - Answers -.75

Function's output data type - Answers -Data type of the function's output.

Void means no output

"C" is NOT an object __________ language, it is a ___________ language - Answers -
oriented
procedural

Life cycle of the C language - Answers -i. Preprocessor, compiler, Linker

ii. Preprocessor directive: #include <stdio.h>

iii. Preprocessor goes through the program before the compiler

Extension of the source file in "C" - Answers -.c

'a' is a single character, takes one byte in memory - Answers -N/A

"a" is a string - It takes 2 bytes in memory - Answers -N/A

Global scope - Answers -a. variables declared outside the functions have global scope
- can be used in the code that comes after their declaration.

Cascading if - else if - Answers -Only one of the branches get executed

Function's input parameters - Answers -i. Have local scope in the function

ii. The function receives the input information via the input parameters.

do - while loop (4) - Answers -i. Will get executed at least once.

ii. Condition is checked at the end of the cycle

iii. Ideal loop to rerun the program

iv. Ideal loop for validating the range

Fill array with random numbers - Answers -int k;
for (k = 0; k < 100; k++)

Written for

Course

Document information

Uploaded on
January 24, 2026
Number of pages
4
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.99
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.
GEEKA YALA UNIVERSITY
Follow You need to be logged in order to follow users or courses
Sold
2107
Member since
4 year
Number of followers
1446
Documents
53920
Last sold
19 hours ago

3.8

358 reviews

5
177
4
61
3
48
2
17
1
55

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