F4 ComProg
Quiz yourself by thinking what should be in
each of the black spaces below before clicking
on it to display the answer.
Help!
|
|
||||
---|---|---|---|---|---|
show | isdigit()
🗑
|
||||
Compares the C string str1 to the C string str2 | show 🗑
|
||||
show | isprint()
🗑
|
||||
show | toupper()
🗑
|
||||
show | isupper()
🗑
|
||||
show | String
🗑
|
||||
What is the output of the following? #include <iostream> #include <string> using namespace std; int main () { string str1 = "Hello"; string str2 = "World"; if (str1==str2) cout << "Equal"; else co | show 🗑
|
||||
show | 0
🗑
|
||||
show | + operator
🗑
|
||||
show | #####
🗑
|
||||
show | 3
🗑
|
||||
show | Structure
🗑
|
||||
A keyword used to define a structure? | show 🗑
|
||||
Can you place an array inside a structure? | show 🗑
|
||||
show | Function
🗑
|
||||
show | C++ PROGRAMMING
🗑
|
||||
show |
char str[80];
🗑
|
||||
show | strcmp()
🗑
|
||||
show | Blank output
🗑
|
||||
show | to_string
🗑
|
||||
What is the output of the given program? #include <iostream> #include <string> #include <cmath> using namespace std; int main () { string s ="79"; int n = stoi(s); cout << n; return 0; } | show 🗑
|
||||
show | -
🗑
|
||||
The data elements in the structure are also known as what? | show 🗑
|
||||
What operator is used to access the members of a structure? | show 🗑
|
||||
show | error
🗑
|
||||
show | All of the mentioned
🗑
|
||||
show | doesn't have any parameters
🗑
|
||||
show | Semicolon is missing
🗑
|
||||
It is a sequence of characters | show 🗑
|
||||
What is the output of the program? #include <cstring> #include <iostream> int main () { char str[80]; strcpy (str,"these "); strcat (str,"strings "); strcat (str,"are "); strcat (str,"concatenated."); puts (str); | show 🗑
|
||||
What is the output of the given program? #include <iostream> #include <ctype.h> int main () { int i=0; char str[]="first line "; return 0; } | show 🗑
|
||||
Compares up to num characters of the C string str1 to those of the C string str2 | show 🗑
|
||||
show | Word is found at index 10
🗑
|
||||
If two strings are identical, then the strcmp() function returns: | show 🗑
|
||||
The append operator is denoted by: | show 🗑
|
||||
Which of the following function converts a numerical value to string? | show 🗑
|
||||
show |
Person s1, s2;
🗑
|
||||
show | employee.hourlyWage = 75.00;
🗑
|
||||
show | s1.salary
🗑
|
||||
show | Students stud[3];
🗑
|
||||
show | students.age = 22;
🗑
|
||||
show | Void Function
🗑
|
||||
The function body is written inside ___________ | show 🗑
|
||||
Complete the following: struct Person { string name = "Ronel Ramos"; int age = 34; ________ salary = 70514.55; }; | show 🗑
|
Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.
Normal Size Small Size show me how
Normal Size Small Size show me how
Created by:
crystallll