
Ôn Thi FINAL EXAM môn PRF192
Authored by Vương Đức Huy
Other
University
Used 17+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Once the function ends, the control is returned back to the ... function and execution continues from the statement immediately after the function call
a. executing
b.called
c.declared
A
B
C
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what number is equivalent to -4e3?
a.-4000
b.-400
c..004
d..0004
e.-40
A
B
C
D
E
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the output when the sample code below executed?
#include<stdio.h>
int fn(int v){
if(v==1||v==0)
return 1;
if(v%2==0)
return (fn(v/2)+2);
else
return(fn(v-1)+3);
}
int main()
{
printf("%d\n",fn(5));
return (0);
}
a.6
b.9
c.8
d.7
e.5
A
B
C
D
E
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
which 2 options are correct about the function scanf?
a.EOF indicates that scanf filled all addresses successfully
b. scanf returns the number of addresses successfully filled of EOF
c.return avoid type
d.EOF indicates that scanf did not fill any address AND encountered an end of data character.
A
B
C
D
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the output when the sample code below is executed?
int s=35;
printf("%d%d%d",s==35,s+20,s>40)
a.1 35 1
b.1 55 1
c.0 55 0
d.1 55 0
A
B
C
D
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
according to the standard C specification, what are the respective minimum sizes (in bytes) of the following two data type: int and long?
a.2,8
b.4,8
c.2,4
d.2,2
A
B
C
D
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what does the following declaration mean (if there are more than one correct answers, choose the best one)
int *ptr[10];
a.array of 10 integer pointers
b.pointed to the array of 10 elements
c.array of 10 pointers
A
B
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
25 questions
Quiz Mekanika Tanah
Quiz
•
University - Professi...
25 questions
Electrical Computation
Quiz
•
University
25 questions
REPÀS PN1
Quiz
•
University
26 questions
Ouat Quiz
Quiz
•
5th Grade - Professio...
25 questions
LEA I
Quiz
•
University - Professi...
25 questions
FINANCIAL MARKET
Quiz
•
University
25 questions
Inter School Quiz (Sinhala Medium) Paper 02
Quiz
•
1st Grade - University
25 questions
Intr. a la Gastro parc 1
Quiz
•
University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Other
20 questions
Disney Trivia
Quiz
•
University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
14 questions
Ch.3_TEACHER-led
Quiz
•
University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University