
CSC126_Quiz7: Chapter 5.1

Quiz
•
Computers
•
University
•
Hard
TS ZAKARIA
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in programming?
A type of variable
A block of code designed to perform a specific task
A data structure
A library of predefined functions
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a characteristic of user-defined functions?
They are predefined in libraries
They are written by the programmer
They cannot return values
They are always void functions
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a function prototype?
To call the function
To execute the function immediately
To declare the function's name, return type, and parameters
To define the body of the function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'setprecision' function do?
Copies one string to another
Controls the number of digits displayed for floating-point numbers
Compares two strings character by character
Sets the width of the output field
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++, what is the difference between actual and formal parameters?
Actual parameters are passed during function definition, formal parameters are used in function calls
Actual parameters are always integers, formal parameters can be any type
Formal parameters are passed during function definition, actual parameters are used in function calls
Both are the same
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of a void function?
It can return multiple values
It returns a string
It does not return a value
It returns a value
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which header file is used for mathematical functions in C++?
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
PHP Quiz 1

Quiz
•
University
10 questions
Quiz6

Quiz
•
University
10 questions
IMPERATIVE PROGRAMMING WITH C

Quiz
•
University
10 questions
Understanding Procedures in Python

Quiz
•
9th Grade - University
10 questions
ANN and Application

Quiz
•
University
10 questions
CSC126_Chapter3.1

Quiz
•
University
20 questions
JDBC

Quiz
•
University
13 questions
INTO AP

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University