
LZECE431_WK10A
Authored by Dr Zaini
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this code?
a) Value after squareByValue: 5
b) Value after squareByValue: 10
c) Value after squareByValue: 25
d) Compilation error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this code?
a) Value after squareByPointer: 5
b) Value after squareByPointer: 10
c) Value after squareByPointer: 25
d) Compilation error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the above code?
a) Value after squareByReference: 5
b) Value after squareByReference: 10
c) Value after squareByReference: 25
d) Compilation error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the above code?
a) Value at index 0 after modifyArrayByValue: 1
b) Value at index 0 after modifyArrayByValue: 10
c) Value at index 0 after modifyArrayByValue: 2
d) Compilation error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the above code?
a) Value at index 0 after modifyArrayByReference: 1
b) Value at index 0 after modifyArrayByReference: 10
c) Value at index 0 after modifyArrayByReference: 2
d) Compilation error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the above C++ code do?
a) Reads data from the file "data.txt"
b) Appends data to the file "data.txt"
c) Creates and writes "Hello, File Processing!" to the file "data.txt"
d) Opens the file "data.txt" for reading
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the above C++ code?
a) Reads a single character from the file "numbers.txt"
b) Reads an integer from the file "numbers.txt" and prints it
c) Appends an integer to the file "numbers.txt"
d) Creates a new file "numbers.txt"
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
15 questions
Uji Pengetahuan TIK untuk Siswa Kelas 7
Quiz
•
7th Grade - University
9 questions
CHAPTER 5 ONLINE QUIZ
Quiz
•
University
16 questions
Quiz on List and Tuples
Quiz
•
University
15 questions
Digital Etiquette
Quiz
•
4th Grade - University
15 questions
Data Mining - Classification Mining
Quiz
•
University
10 questions
Quiz CodeIgniter 4
Quiz
•
University
15 questions
PROBLEM SOLVING USING R UNIT I MCQS
Quiz
•
University
17 questions
Week #7 - Time Machine
Quiz
•
8th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade