
C QUIZZ
Authored by Nalini Bharath
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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;
Access all questions and much more by creating a free account
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
22 questions
1.1.3 Input, output and storage
Quiz
•
11th Grade - University
20 questions
Digital and Analog transmission
Quiz
•
University
20 questions
Soal AIJ bulan Agustus 2019 kls xii
Quiz
•
University
20 questions
Quiz Harian Gdevelop MPK
Quiz
•
University
20 questions
Algoritma Pemrograman
Quiz
•
University
20 questions
UTS Genap Informatika Kelas IX
Quiz
•
9th Grade - University
20 questions
INFO MNGT MIDTERM EXAM P4
Quiz
•
University
20 questions
KIDJK Pert 10
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade