
coding 1
Authored by svh almas
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question: What is the output of the following code snippet?
int a = 5, b = 10;
int result = a & b;
printf("%d", result);
Question: What is the output of the following code snippet?
int a = 5, b = 10;
int result = a & b;
printf("%d", result);
a) 0
b) 5
c) 10
d) 15
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question: Which of the following operators is used for floor division in Python?
Question: Which of the following operators is used for floor division in Python?
a) /
b) //
c) %
c) %
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question: What is the output of the following code snippet?
int a = 10; int b = 20; int result = a + b * 2; System.out.println(result);
Question: What is the output of the following code snippet?
int a = 10; int b = 20; int result = a + b * 2; System.out.println(result);
a) 60
b) 50
c) 30
d) 40
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question: What is the difference between a++ and ++a?
Question: What is the difference between a++ and ++a?
a) No difference
b) a++ increments a by 2, ++a increments a by 1
c) a++ returns the current value and then increments, whereas ++a increments first and then returns the new value.
d) Both decrement a
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question: What will be the output of the following code snippet?
int a = 5;
int b = ++a * 2;
printf("%d\n", b);
Question: What will be the output of the following code snippet?
int a = 5;
int b = ++a * 2;
printf("%d\n", b);
a) 10
b) 12
c) 8
d) 6
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question: What is the result of 5 | 3 in binary?
Question: What is the result of 5 | 3 in binary?
A) 101
B) 110
C) 111
D) 100
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question: Which of the following statements about the modulo operator (%) is true?
Question: Which of the following statements about the modulo operator (%) is true?
A) It returns the quotient of a division operation.
B) It returns the remainder of a division operation.
C) It returns the product of a multiplication operation.
D) It returns the result of a subtraction operation.
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
10 questions
Quiz Informatica Jornadas Orientación Asunción
Quiz
•
12th Grade - University
8 questions
Cha-ching 2
Quiz
•
1st Grade - University
10 questions
Teste python- Unesp-Jaboticabal
Quiz
•
University
12 questions
Đề Kiểm Tra Tin Học Lớp 4
Quiz
•
5th Grade - University
12 questions
PSSI Chp 1 dan 2
Quiz
•
University
10 questions
Excel 2016 Formato de celda
Quiz
•
University
10 questions
Server Administration- Quiz 1
Quiz
•
12th Grade - University
11 questions
Computer Science (1-9) - Identifying & Preventing Threats
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