Quiz 5 Review
Quiz
•
Science
•
University
•
Medium
Anastasiya Masalava
Used 25+ times
FREE Resource
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will the result of DIVIDE(9 + 6, 3) be if DIVIDE is defined as follows?
#define DIVIDE(A, B) A / B
2
5
11
DIVIDE(9 + 6, 3) would cause a compiler error.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will the following code print
#define FOO -3
#if FOO
printf("Oranges ");
#else
printf("Bananas ");
#endif
Oranges
Bananas
Oranges Bananas
This code will not compile
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What lines of code will prevent contents of header file "stuff" from being included more than once?
#ifdef STUFF_H
#define STUFF_H
#endif
Contents of stuff.h
#ifndef STUFF_H
#define STUFF_H
#endif
Contents of stuff.h
#ifdef STUFF_H
#define STUFF_H
Contents of stuff.h
#endif
#ifndef STUFF_H
#define STUFF_H
Contents of stuff.h
#endif
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print?
char myChar = 'A';
printf("%d", myChar);
'A'
The ASCII value of A
The address of 'A'
This code will cause a compiler error.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will the following code print?
int a = 0x22;
a += 7
printf("%d", a);
29
0x29
41
It will not compile
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will the following code print?
int gpa =4;
gpa <<= 1;
gpa = gpa ^ (gpa - 4);
printf("%d", gpa);
0
4
8
12
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
(T/F) If we had an integer a, ++a and a++ are functionally identical.
True
False
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
25 questions
Ribosomes and Protein Synthesis
Quiz
•
10th Grade - University
17 questions
DNA and RNA Concepts Assessment
Quiz
•
University
20 questions
Sylhet- Mobile App Game & Job Festival 2023 - QUIZ
Quiz
•
University
20 questions
C Programming Quiz
Quiz
•
University
20 questions
Spine and Thorax
Quiz
•
University
19 questions
Theature practice - Surgical needles
Quiz
•
University
22 questions
DL: Statistical Illiteracy Among medical prof....
Quiz
•
University
25 questions
Codon Chart Practice
Quiz
•
9th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Science
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
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
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University