
PRF192 - FE2

Quiz
•
Computers
•
University
•
Medium
Nguyen Duc Chinh - HE150974
Used 62+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output when the sample code below is executed?
void foo(int *z) {
return(m+2);
}
int main() {
int a-45. *b. m-10;
b-foo(a);
printf("\n%d %b".a;b);
return 0;
}
45 12
45 10
compile error
10 45
12 12
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output when the sample code below is executed?
intx=1000
while (x++ < 1003)
printf("%d ".x);
printf("%d\n".x);
1000 1001 1002 1003
1000 1001 1002
1001 1002 1003 1004
1001 1002 1003
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct statement for input data?
note: scanf( "%d". age); thiếu &
scanf( "%d". age);
Scanf( "%d". age);
scanf( age);
scanf( "%d". age);
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the gets() function do?
This fuction fetches a single character from the standard input file
This fuction fetches a string from the standard input stdin (keyboard) and places it into a string which the programmer must provide
This fuction fetches an argument from the standard input file
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which value can not be assigned to an unsigned-short type?
10000
-3
1
0
59876
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Given x,y,z are of floating-point type, which of the following C expressions is INCORRECT?
x-y.z
all of the others
x=y^z
x=y->z
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Assume that the size of int data type is 4 bytes
What is the output when the sample code below is executed?
int a[5]-{0}.x - 2111223;
while (x>10) {
a[x%10-1]++;
x/-10;
}
printf("%d".a[1]);
2
1
6
3
Create a free account and access millions of resources
Similar Resources on Wayground
52 questions
OOP Using CPP Quiz 1

Quiz
•
University
50 questions
Orientation Quiz

Quiz
•
University - Professi...
50 questions
ITC 112 - Topic 2 Quiz

Quiz
•
University
50 questions
C Language

Quiz
•
University
50 questions
lập trình C2

Quiz
•
University
50 questions
Quiz

Quiz
•
University
50 questions
JavaScript-ITELECTIVE

Quiz
•
University
50 questions
Module 9

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University