C- Geniusia

Quiz
•
Computers
•
University
•
Hard
Sanjeevrajan . E
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one in this code is literal?
int age = 25;
int
int age
25
=
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way to get input from user?
scanf ("%d", &var)
printf("%d", var)
printf (var)
scanf("%d", var)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Format specifier for double:
%d
%c
%f
%lf
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code?
#include<stdio.h>
intmain() {
int x=10;
printf("%d", x) ;
x=x+10;
printf("%d", x) ;
}
10 10
10 0
0 10
10 20
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of variable x?
int = x;
float a=x;
Integer
Float
Both Integer and float
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
#include <stdio.h>
int main() {
int a = 5;
printf("%d\n", a > -1);
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to represent logical AND operator in C?
And
and
&&
&
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Examen P1 de Programación Estructurada

Quiz
•
University
20 questions
Set - 2

Quiz
•
University
20 questions
TECHFEST QUALIFYING ROUND

Quiz
•
University
25 questions
Programming Skills C/C++

Quiz
•
University
25 questions
Code Carnival

Quiz
•
University
20 questions
Programming Lab Quiz

Quiz
•
University
20 questions
JAVA Basics Quiz

Quiz
•
University
20 questions
Computer Basics Quiz

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