c-basics-1
Quiz
•
Computers
•
10th Grade - Professional Development
•
Medium
Viv viv
Used 4+ times
FREE Resource
Enhance your content in a minute
24 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
char userInput [3] ;
int difference = strcmp(userInput, "yes");
Given that userInput is set to "yes", what is the value of difference?
Enter a number below:
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do we compare two strings?
strcmp(str1, str2)
str1 = str2
str1 == str2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a declaration?
Saying what a variable or function is equal to
Saying that a variable or function exists
An error statement
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following :
int age = 12;
How do we print the variable age?
print("%d", age);
printf("%d", age);
printf("%s", age);
printf(age);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following string declaration:
char userInput[30];
How do we get input and store it in userInput?
fscanf(stdin, "%d", userInput);
fscanf(stdin, userInput);
input(stdin, userInput);
fscanf(stdin, "%s", userInput);
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do end the program programmatically?
Hint: Programmatically means through the c code
exit(0);
break;
end;
exit;
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Define a boolean type variable called isUgly and set it equal to true
Create a free account and access millions of resources
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
19 questions
Bases de Datos
Quiz
•
University
20 questions
Basic of Computer and Network
Quiz
•
8th Grade - University
20 questions
ภาษาC++ ม.5/2
Quiz
•
9th - 12th Grade
20 questions
QUIS Animasi
Quiz
•
9th - 12th Grade
20 questions
Visualisasi data
Quiz
•
8th Grade - University
20 questions
Introducción a las bases de datos
Quiz
•
12th Grade
20 questions
WML & WAP
Quiz
•
University
20 questions
ข้อสอบปลายภาควิชาเทคโนโลยี ม.3
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
