C Language

Quiz
•
Other
•
University
•
Medium
Aymane Benhima
Used 1+ times
FREE Resource
32 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What information would an error message probably not supply.
A corrected line of code.
The line number of the error.
The file the error occured in.
A description of the error.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given a code file calld main.c, which command would compile the code into an executable named main.
gcc main.c main
gcc main.c
gcc main.c -o main
gcc main -o main.c
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid declaration for a variable in C?
int 1example;
int example value;
int example;
int goto;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False: variables in C can be initialized with values only at their declaration.
True, variables must be set at declaration and can not be changed after that.
False, variables in C can also have their values updated later in the code.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What value would be outputted for x in the printf() statement after casting to it in the below code?
int x = 5;
double y = 32.23;
x = (int)y;
printf("x is now: %d", x);
Will error, you can not cast a double to an int
32
You can not cast a double to an int without rounding it to a whole number first.
5
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Fill in the blank below
The main data types in C are: int, float, double, and ___________ .
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The main data types in C are:
integer, decimal, and letter.
int, float, double and char
if, else, do, while, break, continue
int, str, def, switch, if
Create a free account and access millions of resources
Similar Resources on Wayground
27 questions
RCC - Title I (General Provisions)

Quiz
•
University
33 questions
xfyj

Quiz
•
1st Grade - University
35 questions
FOOD AND BEVERAGE SERVICE

Quiz
•
KG - Professional Dev...
29 questions
ITE 300 - SOUTH2

Quiz
•
University
30 questions
Introduction to Programming - COIT20245 - PASS Session

Quiz
•
University
30 questions
Arduino Aptitude

Quiz
•
University
32 questions
C# Skill Review

Quiz
•
12th Grade - Professi...
28 questions
UAS ALPRO A

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University