Which is the proper declaration of a string named str which stores the value "Melodies"
PRF192

Quiz
•
Fun
•
KG
•
Medium
Duy Phong chuyên toán
Used 31+ times
FREE Resource
55 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
char str[7]="Melodies";
char str[9]= 'Melodies';
char str[]=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 variable names are NOT valid?
go_cart
go4it
4season
run4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the followings can be passed to the functions?
Data type
Loop
Value
Operator
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the followings is TRUE about array
An array is data type, which represents different types of data within a single group.
An array is group of elements, which are of the same size and data type and have the same name.
Array bound specifies the minimum size of data that can be stored.
An array is special variable which contains the address of the memory location of the another variable.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose age is an integer variable. Select correct statements which declare a pointer of type integer and assign an address of the variable age to it.
*int p; p = &age;
int *p; p = &age;
int *p; p = age;
int p*; p = &age;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Function strlen() is for finding the number of characters in a string
True
False
Create a free account and access millions of resources
Similar Resources on Quizizz
51 questions
Riddles

Quiz
•
5th Grade
50 questions
Nickelodeon Shows

Quiz
•
4th - 12th Grade
50 questions
SELASAR WEEK 6

Quiz
•
Professional Development
60 questions
TLE 10 - Q3 Computer Programming

Quiz
•
10th Grade
55 questions
Disney finish the lyrics

Quiz
•
KG
51 questions
Happy Pi Day!

Quiz
•
6th Grade
52 questions
Functions

Quiz
•
7th - 9th Grade
50 questions
Chess

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade