
Basics of C

Quiz
•
Computers
•
University
•
Easy
SUDHARSAN S
Used 19+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose correct syntax to output "Hello World" in c?
printf("Hello World");
Console.WriteLine("Hello World");
System.out.printline("Hello World");
cout << "Hello World";
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert COMMENTS in C code?
# This is a comment
-- This is a comment
// This is a comment
* This is a comment
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When a variable is created in C, a memory address is assigned to the variable.
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C, code statements must end with a semicolon (;)
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you create a variable with the numeric value 5?
val num = 5;
num = 5;
num = 5 int;
int num = 5;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you create a variable with the floating number 2.8?
num = 2.8 float;
num = 2.8 double;
float num = 2.8;
val num = 2.8;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to add together two values?
The + sign
The & sign
The * sign
The ADD keyword
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Quiz 1 Review - CS125

Quiz
•
University
30 questions
Think Tank Tuesday

Quiz
•
University
28 questions
C# 1ST EXAM

Quiz
•
University
30 questions
C Programming Quiz (Entry for Data Structures)

Quiz
•
University
30 questions
QUIZ 1 - HTML & Javascript

Quiz
•
University
25 questions
Algoritma 2

Quiz
•
University
27 questions
SQL_kartkowka

Quiz
•
1st Grade - University
26 questions
C Language Basics

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade