
CSC126_Quiz7: Chapter 5.1
Authored by TS ZAKARIA
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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++?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
10 questions
Microcontroller
Quiz
•
11th Grade - University
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
15 questions
IT 209
Quiz
•
University
20 questions
PHP First Internal Practical Viva
Quiz
•
University
10 questions
Living in the IT Era
Quiz
•
University
15 questions
Assessment 08
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University