
PRF192

Quiz
•
Information Technology (IT)
•
University
•
Medium
Giyuu undefined
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the proper declaration of a string named str which stores the value "Melodies"
char str[]="Melodies";
char str[7]="Melodies";
char str[9]= 'Melodies';
char str[]=Melodies;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What can NOT be included in the variable name in C?
Digits
Underscore (_)
Letters
Dash (-)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data type occupied 1 byte?
float
double
char
int
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What is the correct prototype in C? (choose 3)
doFunc(); char;
int doFunc(int, int);
void doFunc(int x, int y);
char doFunc()
float doFunc(void);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output when the sample code below is executed?
int y = 30;
void foo(int *x){
x= &y;
*x=12;
}
int main(){
int v=10;
foo(&v);
printf("%d",v);
printf("\n");
return 0;
}
10
8
14
address of x
12
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the only function all C programs must contain?
system()
start()
main()
program()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
puts() function can display only one string at a time where as gets() is capable of receiving only one string at a time and can receive a multi-word string.
True
False
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Code Twisters Round 1 Demo

Quiz
•
University
6 questions
Quiz Pengetahuan Tipe Data

Quiz
•
10th Grade - University
8 questions
Lab 4

Quiz
•
University
15 questions
CMDP2063 Unix and C Programming (Revision)

Quiz
•
University
10 questions
C-Volution (Hard)

Quiz
•
University
5 questions
Revisão linguagem C - questões abertas

Quiz
•
University
12 questions
Java_Quiz_Part_2

Quiz
•
University
10 questions
Quiz CG - Code V2

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade