
C QUIZZ

Quiz
•
Computers
•
University
•
Medium
Nalini Bharath
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. What will be the output of the following C code?
#include <stdio.h>
void main()
{
int a[3] = {1, 2, 3};
int *p = a;
printf("%p\t%p", p, a);
}
A. Same address is printed
B. Different address is printed
C.Compile time error
D. None of these
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to output "Hello World" in C?
A. printf("Hello World");
B. cout << "Hello World";
C. Console.WriteLine("Hello World");
D. System.out.printline("Hello World");
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert COMMENTS in C code?
A. -- This is a comment
B. # This is a comment
C. // This is a comment
D. * This is a comment
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When a variable is created in C, a memory address is assigned to the variable.?
A. TRUE
B. FALSE
C. None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C, code statements must end with a semicolon (;)
A. FALSE
B. TRUE
C. NONE
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you create a variable with the numeric value 5?
A. Num=5 int;
B. Num=5;
C. int Num=5;
D. val Num=5;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you create a variable with the floating number 2.8?
A. float num=2.8;
B. val num=2.8;
C. num=2.8 float;
D. num=2.8 double;
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
C Programing

Quiz
•
University
20 questions
PYTHON PROGRAMMING FILES Q7

Quiz
•
University
20 questions
ĐC CNTT_CHƯƠNG 2

Quiz
•
University
20 questions
Data Comms Reviewer for UT2

Quiz
•
University
20 questions
Bài tập tổng hợp 1_K3

Quiz
•
3rd Grade - University
20 questions
QUIZ-1 PTIK

Quiz
•
University
20 questions
KJDSI PERT 9

Quiz
•
University
20 questions
SQL QUIZ -20 Q

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
9/11 Experience and Reflections

Interactive video
•
10th - 12th 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
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University